Getting Started A simple Thor class exposes an executable with a number of subcommands, like git or bundler. In a Thor class, public methods become commands. class MyCLI < Thor desc "hello NAME", "say hello to NAME" def hello(name) puts "Hello #{name}" end end You can start the CLI with a call to MyCLI.start(ARGV). Typically, you would do this in an executable in the bin directory of your gem. If
{{#tags}}- {{label}}
{{/tags}}