struct

Logarithm::CLI::Arguments

Inherits Iterable < Enumerable < Struct < Value < Object

Main command-line interface for Logarithm.

This class defines the root command and subcommands for the Logarithm anomaly detection agent. It handles global configuration and delegates to specific subcommands for training and monitoring operations.

Generated Structs

Admiral automatically generates the following struct from the flag definitions:

CLI::Flags

Contains global command-line flags that apply to all Logarithm subcommands.

Global Flags:

  • config: Path to YAML configuration file that overrides defaults
    • Applied to all subcommands (train, monitor)
    • Merged with subcommand-specific configuration
    • Must be readable YAML file if specified

Usage in Code

# Access global config flag
config_file = flags.config
if !config_file.empty?
  Logarithm::Log.info("Using custom config: #{config_file)" }
end

Inheritance

Global flags are inherited by all subcommands and can be overridden by subcommand-specific flags with the same name.

Constants

SPECS = {} of String => NamedTuple(type: String, description: Tuple(String, String | ::Nil), default: String, is_required: Bool)

Constructors

new(command : Admiral::Command)

Instance methods

[](*args, **options)
[](*args, **options, &)
each(*args, **options)
each(*args, **options, &)
exists?(name : Symbol)
get(name : Symbol)
get?(name : Symbol)
inspect(io)
Source
rest
validate!(command : Admiral::Command)
value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool)
Source