Class: AwsLogs::CLI

Inherits:
Command show all
Defined in:
lib/aws_logs/cli.rb

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#completion(*params) ⇒ Object


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

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject


24
25
26
# File 'lib/aws_logs/cli.rb', line 24

def completion_script
  Completer::Script.generate
end

#tail(log_group_name) ⇒ Object


12
13
14
# File 'lib/aws_logs/cli.rb', line 12

def tail(log_group_name)
  Tail.new(options.merge(log_group_name: log_group_name)).run
end

#versionObject


29
30
31
# File 'lib/aws_logs/cli.rb', line 29

def version
  puts VERSION
end