bin/dw in dev_flow-0.4.2 vs bin/dw in dev_flow-0.5.0
- old
+ new
@@ -71,11 +71,11 @@
# 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 gantt].include? command
+if %w[info init complete progress close release ur update-roadmap cleanup clean switch gantt tm timer].include? command
options[:command] = command
else
puts "Unknown command #{command}".red
exit
end
@@ -96,9 +96,11 @@
# release is just a alias of command close buth with a option flag set
if command == 'release'
options[:release] = true
command = 'close'
end
+
+command = 'timer' if command == 'tm'
if command == 'switch'
options[:switch] = true
options[:branch] = ARGV[1]
command = 'info'