class Rlt::CLI
Public Class Methods
command_name(klass)
click to toggle source
# File lib/rlt/cli.rb, line 16 def self.command_name(klass) Utils::StringUtil.underscore(klass.name.split('::').last) end
handle_no_command_error(command)
click to toggle source
Calls superclass method
# File lib/rlt/cli.rb, line 11 def self.handle_no_command_error(command) raise GitNativeCommandError if Utils::GitUtil::NATIVE_COMMANDS.include? command super end
run(klass, *arguments)
click to toggle source
# File lib/rlt/cli.rb, line 20 def self.run(klass, *arguments) config = Rlt.config('command', command_name(klass)) klass.send(:run, config, *arguments) end
Public Instance Methods
close()
click to toggle source
# File lib/rlt/cli.rb, line 40 def close CLI.run Rlt::Commands::Close end
cmt()
click to toggle source
# File lib/rlt/cli.rb, line 30 def cmt CLI.run Rlt::Commands::Cmt, options.add_all? end
rst()
click to toggle source
# File lib/rlt/cli.rb, line 45 def rst CLI.run Rlt::Commands::Rst end
switch(branch_name)
click to toggle source
# File lib/rlt/cli.rb, line 35 def switch(branch_name) CLI.run Rlt::Commands::Switch, branch_name end