Sha256: d30499a990c0e3753798b36c4230d844a0a0f758e1684403a3db0f016e9fb285

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

require 'vclog/cli/abstract'

module VCLog::CLI

  # Display the current version.
  #
  class Version < Abstract

    #
    def self.terms
      ['version']
    end

    #
    def parser
      super do |opt|
        opt.banner = "Usage: vclog version"
        opt.separator(" ")
        opt.separator("Display the current version number.")
      end
    end

    #
    def execute
      puts repo.version
    end

  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rubycut-vclog-1.9.5.1 lib/vclog/cli/version.rb
rubycut-vclog-1.9.5 lib/vclog/cli/version.rb
rubycut-vclog-1.9.4 lib/vclog/cli/version.rb
vclog-1.9.2 lib/vclog/cli/version.rb
vclog-1.9.1 lib/vclog/cli/version.rb
vclog-1.9.0 lib/vclog/cli/version.rb