class

Thyme::Option

Inherits Reference / Object

Wraps the option extension in THYMERC_FILE configuration. Used by end users to extend Thyme with their own options and commands.

Constructors

new(name : String, flag : String, flag_long : String, description : String, command : String)

Class methods

parse(name, yaml)

Parses YAML and returns a Thyme::Option. All fields are required.

validate!(yaml, name, key)

Verifies key is available and is a String.

Instance methods

call(option_args : NamedTuple)

Calls #command as a system command. Replaces placeholders with actual values: #{flag} - value given to a flag #{args} - additional arguments given to the thyme command

description
flag
flag_long
name