OmnyStoreCliRunner class
The omnystore command-line interface.
omnystore server --data /var/lib/omnystore
omnystore node --hub wss://store.example.com/_node --id node-eu --org acme
omnystore org create acme
omnystore project create agent --org acme
omnystore package create omnyagent --project <project-id>
omnystore release publish --package omnyagent --version 1.0.0 \
--asset build/omnyagent-linux-x64.tar.gz:linux-x64
omnystore release latest --package omnyagent --channel beta
omnystore release promote <release-id> --to release
omnystore asset upload --release <id> --file dist/agent.tar.gz
omnystore download --package omnyagent --platform linux-x64 -o /tmp
omnystore check-update --package omnyagent --current 1.0.0
Every command works against a remote server (--server) or a local data
directory (--data); the same code path drives both, so a workflow
developed locally runs unchanged against production.
Constructors
-
OmnyStoreCliRunner({Map<
String, String> ? environment, StringSink? out, StringSink? err}) - Creates the runner.
Properties
- argParser → ArgParser
-
The top-level argument parser.
no setterinherited
-
commands
→ Map<
String, Command< int> > -
An unmodifiable view of all top-level commands defined for this runner.
no setterinherited
- description → String
-
A short description of this executable.
finalinherited
-
environment
→ Map<
String, String> -
The environment options fall back to.
final
- err → StringSink
-
Where errors go.
final
- executableName → String
-
The name of the executable being run.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- invocation → String
-
A single-line template for how to invoke this executable.
no setterinherited
- out → StringSink
-
Where normal output goes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suggestionDistanceLimit → int
-
The maximum edit distance allowed when suggesting possible intended
commands.
finalinherited
- usage → String
-
Generates a string displaying usage information for the executable.
no setterinherited
-
An optional footer for
usage.no setterinherited
Methods
-
addCommand(
Command< int> command) → void -
Adds
Commandas a top-level command to this runner.inherited -
execute(
List< String> arguments) → Future<int> -
Runs
arguments, returning the process exit code. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Iterable< String> args) → ArgResults -
Parses
argsand returns the result, converting anArgParserExceptionto aUsageException.inherited -
printUsage(
) → void -
Prints the usage information for this runner.
inherited
-
run(
Iterable< String> args) → Future<int?> -
Parses
argsand invokesCommand.runon the chosen command.inherited -
runCommand(
ArgResults topLevelResults) → Future< int?> -
Runs the command specified by
topLevelResults.override -
toString(
) → String -
A string representation of this object.
inherited
-
usageException(
String message) → Never -
Throws a
UsageExceptionwithmessage.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited