Class: VCLog::CLI::Formats

Inherits:
Abstract show all
Defined in:
lib/vclog/cli/formats.rb

Overview

Command to display a list of available formats.

Instance Attribute Summary

Attributes inherited from Abstract

#arguments

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

inherited, #initialize, #options, #repo, run, #run

Constructor Details

This class inherits a constructor from VCLog::CLI::Abstract

Class Method Details

.termsObject



10
11
12
# File 'lib/vclog/cli/formats.rb', line 10

def self.terms
  ['formats', 'templates']
end

Instance Method Details

#executeObject



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

def execute
  puts "  ansi  gnu  rdoc  markdown  xml  html  atom  rss  json  yaml"
end

#parserObject



15
16
17
18
19
# File 'lib/vclog/cli/formats.rb', line 15

def parser
  super do |opt|
    opt.banner = "Usage: vclog-formats"
  end
end