Module: Ace::Lint::CLI

Defined in:
lib/ace/lint/cli.rb,
lib/ace/lint/cli/commands/lint.rb

Overview

CLI namespace for ace-lint single-command entrypoint.

ace-lint uses a single-command ace-support-cli entrypoint that calls CLI::Commands::Lint directly from the executable.

Defined Under Namespace

Modules: Commands

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object

Entry point for CLI invocation (used by tests via cli_helpers)

Mirrors exe behavior: empty args show help.

Parameters:

  • args (Array<String>)

    Command-line arguments



19
20
21
22
# File 'lib/ace/lint/cli.rb', line 19

def self.start(args)
  args = ["--help"] if args.empty?
  Ace::Support::Cli::Runner.new(Commands::Lint).call(args: args)
end