Class: DirCat::CliDirCat

Inherits:
OptParseCommand::CliMain
  • Object
show all
Defined in:
lib/dircat/cat_on_yaml_cli/cli_dircat.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.commandObject



6
7
8
# File 'lib/dircat/cat_on_yaml_cli/cli_dircat.rb', line 6

def self.command
  "dircat"
end

.descriptionObject



10
11
12
13
# File 'lib/dircat/cat_on_yaml_cli/cli_dircat.rb', line 10

def self.description
  "Simple set of command to build catalogs of files.\n" +
      "Code https://github.com/tokiro/dircat. Feedback to [email protected]"
end

.versionObject



15
16
17
# File 'lib/dircat/cat_on_yaml_cli/cli_dircat.rb', line 15

def self.version
  DirCat::VERSION
end

Instance Method Details

#defaults(options) ⇒ Object



19
20
21
22
23
24
# File 'lib/dircat/cat_on_yaml_cli/cli_dircat.rb', line 19

def defaults(options)
  OpenStruct.new(
      :verbose => true,
      :force   => false
  )
end