Class: GitAuto::Commands::ConfigCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/git_auto/commands/config_command.rb

Instance Method Summary collapse

Constructor Details

#initializeConfigCommand

Returns a new instance of ConfigCommand.



9
10
11
12
13
# File 'lib/git_auto/commands/config_command.rb', line 9

def initialize
  @prompt = TTY::Prompt.new
  @credential_store = Config::CredentialStore.new
  @settings = Config::Settings.new
end

Instance Method Details

#execute(args = []) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/git_auto/commands/config_command.rb', line 15

def execute(args = [])
  if args.empty?
    interactive_config
  else
    handle_config_args(args)
  end
end