Module: Ace::Support::Models::ProvidersCLI

Extended by:
Cli::RegistryDsl
Defined in:
lib/ace/support/models/cli/providers_cli.rb

Overview

Flat CLI registry for ace-llm-providers (LLM provider management).

Replaces the nested ‘ace-models providers <subcommand>` pattern with flat `ace-llm-providers <command>` invocations.

Constant Summary collapse

PROGRAM_NAME =
"ace-llm-providers"
REGISTERED_COMMANDS =

Application commands with descriptions (for help output)

[
  ["list", "List all available LLM providers"],
  ["show", "Show detailed information for a provider"],
  ["sync", "Synchronize provider configurations"]
].freeze
HELP_EXAMPLES =
[
  "ace-llm-providers",
  "ace-llm-providers show openai",
  "ace-llm-providers sync --apply",
  "ace-llm-providers sync -p anthropic"
].freeze

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Integer

Entry point for CLI invocation (used by tests and exe/)

Parameters:

  • args (Array<String>)

    Command-line arguments

Returns:

  • (Integer)

    Exit code (0 for success, non-zero for errors)



66
67
68
# File 'lib/ace/support/models/cli/providers_cli.rb', line 66

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