Module: Castkit::CLI

Defined in:
lib/castkit/cli.rb,
lib/castkit/cli/list.rb,
lib/castkit/cli/main.rb,
lib/castkit/cli/generate.rb

Overview

Entrypoint for Castkit’s command-line interface.

Delegates to the ‘Castkit::CLI::Main` Thor class, which defines all CLI commands.

Examples:

Executing from a binstub

Castkit::CLI.start(ARGV)

Defined Under Namespace

Classes: Generate, List, Main

Class Method Summary collapse

Class Method Details

.start(*args, **kwargs) ⇒ void

This method returns an undefined value.

Starts the Castkit CLI.

Parameters:

  • args (Array<String>)

    the command-line arguments

  • kwargs (Hash)

    additional keyword arguments passed to Thor



20
21
22
# File 'lib/castkit/cli.rb', line 20

def self.start(*args, **kwargs)
  Castkit::CLI::Main.start(*args, **kwargs)
end