class Sutty::Cli::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
container(name)
click to toggle source
# File lib/sutty/cli/cli.rb 73 def container(name) 74 if options[:help] 75 invoke :help, ['container'] 76 else 77 require_relative 'commands/container' 78 Sutty::Cli::Commands::Container.new(name, options).execute 79 end 80 end
field(name)
click to toggle source
# File lib/sutty/cli/cli.rb 137 def field(name) 138 if options[:help] 139 invoke :help, ['field'] 140 else 141 Sutty::Cli::Commands::Field.new(name, options).execute 142 end 143 end
layout(name)
click to toggle source
# File lib/sutty/cli/cli.rb 148 def layout(name) 149 if options[:help] 150 invoke :help, ['layout'] 151 else 152 Sutty::Cli::Commands::Layout.new(name, options).execute 153 end 154 end
post()
click to toggle source
# File lib/sutty/cli/cli.rb 61 def post 62 if options[:help] 63 invoke :help, ['post'] 64 else 65 require_relative 'commands/post' 66 Sutty::Cli::Commands::Post.new(options).execute 67 end 68 end
theme(name)
click to toggle source
# File lib/sutty/cli/cli.rb 159 def theme(name) 160 if options[:help] 161 invoke :help, ['theme'] 162 else 163 require_relative 'commands/theme' 164 Sutty::Cli::Commands::Theme.new(name, options).execute 165 end 166 end
version()
click to toggle source
# File lib/sutty/cli/cli.rb 19 def version 20 require_relative 'version' 21 puts "v#{Sutty::Cli::VERSION}" 22 end