Class: Pgai::Cli::Env

Inherits:
Base
  • Object
show all
Defined in:
lib/pgai/cli/env.rb

Instance Method Summary collapse

Methods inherited from Base

exit_on_failure?

Instance Method Details

#addObject



7
8
9
# File 'lib/pgai/cli/env.rb', line 7

def add
  configuration.add_env(**options)
end

#listObject



18
19
20
# File 'lib/pgai/cli/env.rb', line 18

def list
  puts JSON.pretty_generate(configuration.enviroments)
end

#removeObject



13
14
15
# File 'lib/pgai/cli/env.rb', line 13

def remove
  configuration.remove_env(options[:alias])
end