File Stats
- Last Modified
- Sun Oct 10 21:46:23 -0400 2010
- Requires
-
- executioner/errors
- executioner/help
- shellwords
- shellwords
Information
Method Index
- Executioner ::attr_switch
- Executioner ::descriptions
- Executioner ::execute
- Executioner ::find_longer_option
- Executioner ::footer
- Executioner ::header
- Executioner ::help
- Executioner ::inspect
- Executioner ::invoke
- Executioner ::method_added
- Executioner::NoCommandError ::new
- Executioner::Help ::new
- Executioner::NoOptionError ::new
- Executioner ::parse
- Executioner ::parse_arguments
- Executioner ::parse_equal
- Executioner ::parse_flags
- Executioner ::parse_option
- Executioner ::parse_subcommand
- Executioner ::run
- Executioner ::subcommands
- Executioner ::to_s
- Executioner::Help #help_text
- Executioner #main
- Executioner #option_missing
- Executioner::Help #to_manpage
Executioner
class MyCLI < Executioner
# cmd --debug
def debug?
$DEBUG
end
def debug=(bool)
$DEBUG = bool
end
# $ foo remote
class Remote < Executioner
# $ foo remote --verbose
def verbose?
@verbose
end
def verbose=(bool)
@verbose = bool
end
# $ foo remote --force
def force?
@force
end
def remote=(bool)
@force = bool
end
# $ foo remote --output <path>
def output=(path)
@path = path
end
# $ foo remote -o <path>
alias_method :o=, :output=
# $ foo remote add
class Add < self
def main(name, branch)
# ...
end
end
# $ foo remote show
class Show < self
def main(name)
# ...
end
end
end
end