Class: KBSecret::CLI::Command::Types

Inherits:
Abstract
  • Object
show all
Defined in:
lib/kbsecret/cli/command/types.rb

Overview

The implementation of kbsecret types.

Instance Attribute Summary

Attributes inherited from Abstract

#cli

Instance Method Summary collapse

Methods inherited from Abstract

command_name, config, #setup!, #validate!

Constructor Details

#initialize(argv) ⇒ Types

Returns a new instance of Types.



8
9
10
11
12
13
14
15
16
17
# File 'lib/kbsecret/cli/command/types.rb', line 8

def initialize(argv)
  super(argv) do |cli|
    cli.slop do |o|
      o.banner = <<~HELP
        Usage:
          kbsecret types
      HELP
    end
  end
end

Instance Method Details

#run!Object

See Also:



20
21
22
# File 'lib/kbsecret/cli/command/types.rb', line 20

def run!
  puts KBSecret::Record.record_types.join("\n")
end