class Sshify::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
config(*)
click to toggle source
# File lib/sshify/cli.rb, line 37 def config(*) if options[:help] invoke :help, ['config'] else require_relative 'commands/config' Sshify::Commands::Config.new(options).execute end end
connect(*)
click to toggle source
# File lib/sshify/cli.rb, line 24 def connect(*) if options[:help] invoke :help, ['connect'] else require_relative 'commands/connect' Sshify::Commands::Connect.new(options).execute end end
version()
click to toggle source
# File lib/sshify/cli.rb, line 15 def version require_relative 'version' puts "v#{Sshify::VERSION}" end