Class: Shai::CLI
- Inherits:
-
Thor
- Object
- Thor
- Shai::CLI
- Includes:
- Shai::Commands::Auth, Shai::Commands::Config, Shai::Commands::Configurations, Shai::Commands::Skills, Shai::Commands::Sync
- Defined in:
- lib/shai/cli.rb
Constant Summary
Constants included from Shai::Commands::Config
Shai::Commands::Config::SHAIRC_FILE
Constants included from Shai::Commands::Sync
Shai::Commands::Sync::SHAIRC_FILE
Constants included from Shai::Commands::Auth
Shai::Commands::Auth::DEVICE_FLOW_TIMEOUT
Class Method Summary collapse
- .exit_on_failure? ⇒ Boolean
-
.help(shell, subcommand = false) ⇒ Object
Custom help to group commands by category.
Instance Method Summary collapse
Methods included from Shai::Commands::Skills
Methods included from Shai::Commands::Config
Methods included from Shai::Commands::Sync
Methods included from Shai::Commands::Configurations
Methods included from Shai::Commands::Auth
Class Method Details
.exit_on_failure? ⇒ Boolean
19 20 21 |
# File 'lib/shai/cli.rb', line 19 def self.exit_on_failure? true end |
.help(shell, subcommand = false) ⇒ Object
Custom help to group commands by category
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/shai/cli.rb', line 24 def self.help(shell, subcommand = false) shell.say "shai - Manage AI agent configurations" shell.say "" shell.say "USAGE:" shell.say " shai <command> [options]" shell.say "" shell.say "AUTHENTICATION:" shell.say " login Log in via browser (device flow)" shell.say " login --password Log in with email/password directly" shell.say " logout Log out and remove stored credentials" shell.say " whoami Show current authentication status" shell.say "" shell.say "DISCOVERY:" shell.say " list List your configurations" shell.say " search <query> Search public configurations" shell.say " open <config> Open a configuration in the browser" shell.say "" shell.say "USING CONFIGURATIONS:" shell.say " install <config> Install a configuration (--global, --local, or --path)" shell.say " uninstall <config> Remove an installed configuration" shell.say "" shell.say "SKILLS:" shell.say " skills List all AI agent skills and their status" shell.say " skills enable <n> Enable a disabled skill (--global, --local, --agent)" shell.say " skills disable <n> Disable an enabled skill (--global, --local, --agent)" shell.say "" shell.say "AUTHORING CONFIGURATIONS (create and publish):" shell.say " init Initialize a new configuration" shell.say " push Push local changes to remote" shell.say " status Show local changes vs remote" shell.say " diff Show diff between local and remote" shell.say " config show Show configuration details" shell.say " config set <k> <v> Update configuration metadata" shell.say " delete <slug> Delete a configuration from remote" shell.say "" shell.say "OPTIONS:" shell.say " -h, --help Show help for a command" shell.say " -v, --version Show version" shell.say " --verbose Enable verbose output" shell.say " --no-color Disable colored output" shell.say "" shell.say "EXAMPLES:" shell.say " shai login" shell.say " shai search \"claude code\"" shell.say " shai open anthropic/claude-expert" shell.say " shai install anthropic/claude-expert" shell.say " shai init" shell.say " shai push" shell.say "" shell.say "Run 'shai help <command>' for more information on a command." end |