lib/lbrt/cli/alert.rb in lbrt-0.1.8 vs lib/lbrt/cli/alert.rb in lbrt-0.1.9
- old
+ new
@@ -1,10 +1,19 @@
class Lbrt::CLI::Alert < Thor
include Lbrt::Utils::CLIHelper
class_option :target
+ desc 'list', 'Show alerts'
+ option :'status'
+ option :'concurrency', :type => :numeric, :default => 32
+ def list
+ client(Lbrt::Alert).list
+ end
+
desc 'peco', 'Show alert by peco'
+ option :'status'
+ option :'concurrency', :type => :numeric, :default => 32
def peco
client(Lbrt::Alert).peco
end
desc 'apply FILE', 'Apply alerts'