Sha256: ce7fa227c55b63ade13c9d6abefea31a5a6439958c0d12efae401cc69e419cfb

Contents?: true

Size: 707 Bytes

Versions: 9

Compression:

Stored size: 707 Bytes

Contents

class TechcorCli
  desc "Displays property history"
  long_desc "Displays one or more properties history (list of values over time)"
  arg_name '[{property}],[{another_property}],[...]'
  command :history do |command|
    command.arg_name 'project name'
    command.desc 'name of the project, property of which you want to edit'
    command.flag :pn, :project_name

    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 ViewHistory.new(options[:project_name], options[:date_format], args.first.try(:split, ',')).call
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
techcor-0.0.10 lib/commands/gli/history.rb
techcor-0.0.9 lib/commands/gli/history.rb
techcor-0.0.8 lib/commands/gli/history.rb
techcor-0.0.7 lib/commands/gli/history.rb
techcor-0.0.6 lib/commands/gli/history.rb
techcor-0.0.5 lib/commands/gli/history.rb
techcor-0.0.4 lib/commands/gli/history.rb
techcor-0.0.3 lib/commands/gli/history.rb
techcor-0.0.2 lib/commands/gli/history.rb