Logarithm::CLI::Model::Flags
Extend the flags struct to include the flag
Constants
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "data_dir" => {kind: "nil", type: "String", default: "\"\"", description: {"--data-dir, -D (default: \"\")", "Directory containing trained models (overrides LOGARITHM_DATA_DIR)"}, short: "D", long: "data-dir", is_required: true}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose, -v", "Enable verbose output"}, short: "v", long: "verbose", is_required: true}, "config" => {kind: "nil", type: "String", default: "\"\"", description: {"--config, -c (default: \"\")", "Config file path"}, short: "c", long: "config", is_required: true}, "stdin" => {kind: "bool", type: "Bool", default: "false", description: {"--stdin, -s", "Read logs from stdin instead of files"}, short: "s", long: "stdin", is_required: true}, "output_format" => {kind: "nil", type: "String", default: "\"human\"", description: {"--output-format, -f (default: \"human\")", "Output format: human, json, csv"}, short: "f", long: "output-format", is_required: true}, "filter" => {kind: "nil", type: "String", default: "\"\"", description: {"--filter, -F (default: \"\")", "Filter logs containing this text"}, short: "F", long: "filter", is_required: true}, "encryption_key" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-key, -K (default: \"\")", "Encryption key for model files"}, short: "K", long: "encryption-key", is_required: true}, "encryption_fingerprint" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-fingerprint, -P (default: \"\")", "Encryption key fingerprint (e.g., SHA-256 hash of the key)"}, short: "P", long: "encryption-fingerprint", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)
Constructors
new(command : Admiral::Command)
Instance methods
__help__
config
Sourcedata_dir
Sourceencryption_fingerprint
Sourceencryption_key
Sourcefilter
Sourceinspect(io)
Sourceoutput_format
Sourcestdin
Sourcevalidate!(command)
verbose
Source