Class: Luciq::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/luciq/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/luciq/cli.rb', line 11

def self.exit_on_failure?
  true
end

Instance Method Details

#infoObject



37
38
39
# File 'lib/luciq/cli.rb', line 37

def info
  Commands::Auth.new(options).info
end

#insightsObject



84
85
86
# File 'lib/luciq/cli.rb', line 84

def insights
  Commands::Query.new(options).insights
end

#loginObject



22
23
24
# File 'lib/luciq/cli.rb', line 22

def 
  Commands::Auth.new(options).
end

#logoutObject



27
28
29
# File 'lib/luciq/cli.rb', line 27

def logout
  Commands::Auth.new(options).logout
end

#versionObject



89
90
91
# File 'lib/luciq/cli.rb', line 89

def version
  puts "luciq-cli #{Luciq::VERSION}"
end

#whoamiObject



32
33
34
# File 'lib/luciq/cli.rb', line 32

def whoami
  Commands::Auth.new(options).whoami
end