Maps external commands and options to Ruby classes
MIT License
Bot releases are hidden (Show)
require_relative
to improve load-times.sudo
specific keyword arguments inCommandMapper::Command#sudo_command
to CommandMapper::Sudo.run
.CommandMapper::Sudo
's preserve_env
attribute to accept an optionalPublished by postmodern 9 months ago
File.exist?
in CommandMapper::Types::InputPath#validate
for Ruby 3.2.0.Published by postmodern 9 months ago
CommandMapper::Types::Dec
.Published by postmodern 9 months ago
CommandMapper::OptionValue#validate
when an option,true
.nil
arguments from CommandMapper::Command#command_argv
if theCommandMapper::Types::Num
whenrange:
value.CommandMapper::Types::Map
andCommandMapper::Types::Enum
.CommandMapper::Command.spawn
and CommandMapper::Command#spawn_command
.CommandMapper::Command.option
, CommandMapper::Command.argument
, andCommandMapper::Command.subcommand
to avoid overwriting an existing option/argument/subcommandvalue_in_flag:
keyword argument toCommandMapper::Command.option
which indicates an option's value-Fvalue
).range:
keyword argument to CommandMapper::Types::Num#initialize
equals: true
(aka --opt=...
) or value_in_flag: true
-Fvalue
) to accept values that start with a -
character.Published by postmodern 9 months ago
CommandMapper::Command.command_name
was not checking thecommand_name
, if no command "..."
was defined in the subclass.Published by postmodern 9 months ago
CommandMapper::Types::Num
, CommandMapper::Types::Hex
,CommandMapper::Types::Enum
, CommandMapper::Types::InputPath
,CommandMapper::Types::InputFil
, and CommandMapper::Types::InputDir
wereCommandMapper::Types::Map
to accept values that have already beenPublished by postmodern 9 months ago
CommandMapper::Error
.CommandMapper::ValidationError
.CommandMapper::ArgumentRequired
.CommandMapper::Types::Type
.CommandMapper::Types::Str
.CommandMapper::Types::Num
.CommandMapper::Types::Hex
.CommandMapper::Types::Map
.CommandMapper::Types::Enum
.CommandMapper::Types::InputPath
.CommandMapper::Types::InputFile
.CommandMapper::Types::InputDir
.CommandMapper::Types::List
.CommandMapper::Types::KeyValue
.CommandMapper::Types::KeyValueList
.CommandMapper::Arg
.CommandMapper::Argument
.CommandMapper::OptionValue
.CommandMapper::Option
.CommandMapper::Command
.CommandMapper::Sudo
.