Class: Pvectl::CLI
- Inherits:
-
Object
- Object
- Pvectl::CLI
- Extended by:
- GLI::App
- Defined in:
- lib/pvectl/cli.rb,
sig/pvectl/cli.rbs
Overview
Main CLI class using the GLI framework.
The CLI class is the entry point for the pvectl command line interface. It is responsible for:
- Defining global flags and options
- Loading commands via PluginLoader (built-in + plugins)
- Error handling and system signal handling
Uses the GLI (Git-Like Interface) framework to create commands in kubectl/git style.
Class Method Summary collapse
- .arg_name ⇒ void
- .default_value ⇒ void
- .desc ⇒ void
- .flag ⇒ void
- .on_error {|arg0| ... } ⇒ void
-
.program_desc ⇒ void
GLI::App methods provided via extend.
- .run ⇒ Integer
- .subcommand_option_handling ⇒ void
- .switch ⇒ void
- .trap { ... } ⇒ void
- .version ⇒ void
Class Method Details
.arg_name ⇒ void
This method returns an undefined value.
12 |
# File 'sig/pvectl/cli.rbs', line 12 def self.arg_name: (String name) -> void |
.default_value ⇒ void
This method returns an undefined value.
14 |
# File 'sig/pvectl/cli.rbs', line 14 def self.default_value: (untyped value) -> void |
.desc ⇒ void
This method returns an undefined value.
10 |
# File 'sig/pvectl/cli.rbs', line 10 def self.desc: (String description) -> void |
.flag ⇒ void
This method returns an undefined value.
16 |
# File 'sig/pvectl/cli.rbs', line 16 def self.flag: (Array[Symbol] names, **untyped ) -> void |
.on_error {|arg0| ... } ⇒ void
This method returns an undefined value.
20 |
# File 'sig/pvectl/cli.rbs', line 20 def self.on_error: () { (Exception) -> void } -> void |
.program_desc ⇒ void
This method returns an undefined value.
GLI::App methods provided via extend
4 |
# File 'sig/pvectl/cli.rbs', line 4 def self.program_desc: (String desc) -> void |
.run ⇒ Integer
22 |
# File 'sig/pvectl/cli.rbs', line 22 def self.run: (Array[String] argv) -> Integer |
.subcommand_option_handling ⇒ void
This method returns an undefined value.
8 |
# File 'sig/pvectl/cli.rbs', line 8 def self.subcommand_option_handling: (Symbol mode) -> void |
.switch ⇒ void
This method returns an undefined value.
18 |
# File 'sig/pvectl/cli.rbs', line 18 def self.switch: (Array[Symbol] names, **untyped ) -> void |
.trap { ... } ⇒ void
This method returns an undefined value.
24 |
# File 'sig/pvectl/cli.rbs', line 24 def self.trap: (String signal) { () -> void } -> void |
.version ⇒ void
This method returns an undefined value.
6 |
# File 'sig/pvectl/cli.rbs', line 6 def self.version: (String version) -> void |