Method: Jets::CLI#full_command

Defined in:
lib/jets/cli.rb

#full_commandObject



120
121
122
123
124
125
126
127
# File 'lib/jets/cli.rb', line 120

def full_command
  # Removes any args that starts with -, those are option args.
  # Also remove "help" flag.
  args = @given_args.reject {|o| o =~ /^-/ } - help_flags
  command = args[0] # first argument should always be the command
  command = ALIASES[command] || command
  Jets::Commands::Base.autocomplete(command)
end