Sha256: 262f4dac9d6d0ee5b4ed209562694d711ec055bfa7b7c6d10d79e9b1173fba94

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

class TcCli
  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
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
techcor-0.0.1 lib/commands/gli/describe.rb