bin/dw in dev_flow-0.3.1 vs bin/dw in dev_flow-0.4.0
- old
+ new
@@ -24,10 +24,11 @@
opts.separator " p <percentage> : alias of progress"
opts.separator " complete : complete a task, raise progress to 99"
opts.separator " close : close the task as a leader"
opts.separator " release : close a release task"
opts.separator " clean[up] : delete local branches that already completed"
+ opts.separator " gantt : create gantt chart html files under docs folder"
opts.separator ""
opts.separator "Options:"
options[:roadmap] = 'ROADMAP' # the roadmap file
opts.on('-r FILE', '--roadmap FILE', 'use an other roadmap file') do |roadmap|
@@ -48,10 +49,15 @@
opts.on('-o', '--offline', 'do not use remote git server') do
options[:offline] = true
end
+ options[:docs] = 'docs'
+ opts.on('-d DIR', '--docs DIR', 'document directory for gantt chart') do |dir|
+ options[:docs] = dir
+ end
+
opts.on('-v', '--verbose', 'print more messages') do
options[:verbose] = true
end
opts.on_tail('-h', '--help', 'Display this screen') do
@@ -65,10 +71,10 @@
# determine the command
command = ARGV[0] || 'info'
cmd_alias = {'pg' => 'progress', 'update-roadmap' => 'ur', 'clean' => 'cleanup', 's' => 'switch'}
command = cmd_alias[command] if cmd_alias[command]
-if %w[info init complete progress close release ur update-roadmap cleanup clean switch].include? command
+if %w[info init complete progress close release ur update-roadmap cleanup clean switch gantt].include? command
options[:command] = command
else
puts "Unknown command #{command}".red
exit
end