cli/cli.g
library
Functions
fmtBytes (int bytes )
→ String
Formats bytes as a human-readable string with one decimal place.
formatAppDied (AppDiedException e )
→ void
parseXY (String raw )
→ (double , double )?
Parses an "x,y" coordinate string into a (double, double) tuple, or
returns null if the input is malformed.
runCliAdapter (ArgParser parser , List <String > args , Future <int > execute (ArgResults ) )
→ Future <int >
Runs a CLI adapter end-to-end:
runFdbCommand (CliCommand command , List <String > args )
→ Future <int >
runFdbCommandName (String command , List <String > args )
→ Future <int >
runInteractiveRepl ()
→ Future <int >
runSimpleCliAdapter (List <String > args , Future <int > execute (List <String > ), {String helpText = 'No options for this command.' })
→ Future <int >
Runs a CLI adapter that accepts no options. Skips ArgParser construction
entirely; just intercepts --help/-h and otherwise calls execute with
the raw args (allowing the executor to inspect positional arguments).
splitCommandLine (String input )
→ List <String >