Sha256: 1ab9cac473f076c5a1878545696a144ac8f7ec52175c6364c41f903b37f84a60

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

class TechcorCli
  desc "Describes current state of the project"
  long_desc "Displays current metrics of the project, date and author of last modification"
  arg_name '{project_name}'
  command :describe do |command|
    command.arg_name 'date format'
    command.desc 'ruby date format to display time of change'
    command.default_value "%d-%m-%Y"
    command.flag :df, :date_format

    command.action do |global, options, args|
      puts DescribeProject.new(args.first, options[:date_format]).call ConsoleFormatter
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
techcor-0.0.10 lib/commands/gli/describe.rb
techcor-0.0.9 lib/commands/gli/describe.rb