buildRunner function
CommandRunner<void>
buildRunner()
Builds the OmnyServer CommandRunner with every command wired to the public
runtimes and the Hub HTTP API.
Implementation
CommandRunner<void> buildRunner() {
final runner =
CommandRunner<void>(
'omnyserver',
'OmnyServer v$omnyServerVersion — distributed server orchestration.',
)
..argParser.addFlag(
'version',
abbr: 'V',
negatable: false,
help: 'Print the omnyserver version and exit.',
)
..addCommand(HubCommand())
..addCommand(NodeCommand())
..addCommand(ServiceCommand())
..addCommand(AiCliCommand())
..addCommand(NodesCommand())
..addCommand(PresetCommand())
..addCommand(FormulaCommand())
..addCommand(StateCommand())
..addCommand(GrantCommand())
..addCommand(EventsCommand())
..addCommand(OpsCommand())
..addCommand(AlertsCommand())
..addCommand(AuditCommand())
..addCommand(WhoamiCommand())
..addCommand(CertCommand());
return runner;
}