Module: Ace::Hitl::HitlCLI

Extended by:
Support::Cli::RegistryDsl
Defined in:
lib/ace/hitl/cli.rb

Constant Summary collapse

PROGRAM_NAME =
"ace-hitl"
REGISTERED_COMMANDS =
[
  ["create", "Create HITL event"],
  ["show", "Show HITL event details"],
  ["list", "List HITL events"],
  ["update", "Update HITL event metadata or answer"],
  ["wait", "Wait for an answer on a specific HITL event"]
].freeze
HELP_EXAMPLES =
[
  "ace-hitl list --status pending",
  "ace-hitl show abc123 --content",
  "ace-hitl create \"Which auth strategy?\" --kind decision",
  "ace-hitl update abc123 --answer \"Use JWT with refresh tokens\"",
  "ace-hitl wait abc123 --poll-every 600 --timeout 14400"
].freeze

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object



57
58
59
# File 'lib/ace/hitl/cli.rb', line 57

def self.start(args)
  Ace::Support::Cli::Runner.new(self).call(args: args)
end