Module: Ace::Demo::CLI

Extended by:
Support::Cli::RegistryDsl
Defined in:
lib/ace/demo/cli.rb,
lib/ace/demo/cli/commands/list.rb,
lib/ace/demo/cli/commands/show.rb,
lib/ace/demo/cli/commands/attach.rb,
lib/ace/demo/cli/commands/create.rb,
lib/ace/demo/cli/commands/record.rb,
lib/ace/demo/cli/commands/retime.rb,
lib/ace/demo/cli/commands/verify.rb

Defined Under Namespace

Modules: Commands

Constant Summary collapse

PROGRAM_NAME =
"ace-demo"
REGISTERED_COMMANDS =
[
  ["list", "List available demo tapes"],
  ["show", "Show metadata and contents for a demo tape"],
  ["record", "Record a VHS tape to gif/mp4/webm"],
  ["verify", "Verify an existing asciinema cast against a YAML tape"],
  ["retime", "Post-process recording speed for gif/mp4/webm"],
  ["attach", "Attach an existing demo GIF to a PR"],
  ["create", "Create a new demo tape from shell commands"]
].freeze
HELP_EXAMPLES =
[
  "ace-demo list",
  "ace-demo show hello",
  "ace-demo record hello",
  "ace-demo record ./custom.tape --format mp4",
  "ace-demo record hello --output /tmp/demo.gif",
  "ace-demo record my-demo -- \"git status\" \"make deploy\"",
  "ace-demo record my-demo --timeout 3s --width 1200 -- \"git status\"",
  "ace-demo verify .ace-local/demo/hello.cast --tape ./hello.tape.yml",
  "ace-demo attach .ace-local/demo/hello.gif --pr 123",
  "ace-demo record hello --pr 123 --dry-run",
  "ace-demo retime .ace-local/demo/hello.gif --playback-speed 4x",
  "ace-demo create my-demo",
  "ace-demo create my-demo --desc \"Deploy flow\" --dry-run",
  "ace-demo create my-demo --timeout 3s --width 1200"
].freeze