Class: Pvectl::CLI

Inherits:
Object
  • Object
show all
Extended by:
GLI::App
Defined in:
lib/pvectl/cli.rb

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.

Examples:

Running CLI

Pvectl::CLI.run(ARGV)

Typical command line usage

pvectl get nodes                    # List nodes
pvectl get vms -o json              # List VMs in JSON format
pvectl describe vm 100 --verbose    # VM details with debugging

See Also: