lib/renuo/cli.rb in renuo-cli-1.6.0 vs lib/renuo/cli.rb in renuo-cli-1.7.0

- old
+ new

@@ -1,24 +1,27 @@ require 'renuo/cli/version' require 'rubygems' require 'gems' require 'colorize' +require 'renuo/cli/app/services/renuo_cli_config' require 'renuo/cli/app/name_display' require 'renuo/cli/app/local_storage' require 'renuo/cli/app/list_large_git_files' require 'renuo/cli/app/generate_password' require 'renuo/cli/app/upgrade_laptop.rb' require 'renuo/cli/app/create_aws_project' require 'renuo/cli/app/create_heroku_app' require 'renuo/cli/app/configure_sentry' require 'renuo/cli/app/create_new_logins' -require 'renuo/cli/app/release_project.rb' -require 'renuo/cli/app/fetch_emails.rb' -require 'renuo/cli/app/heroku_users.rb' +require 'renuo/cli/app/work' +require 'renuo/cli/app/release_project' +require 'renuo/cli/app/fetch_emails' +require 'renuo/cli/app/heroku_users' require 'renuo/cli/app/setup_uptimerobot' require 'renuo/cli/app/release_xing' require 'renuo/cli/app/configure_semaphore' +require 'renuo/cli/app/toggl_redmine_comparator' module Renuo class CLI def start require 'commander/import' @@ -127,10 +130,23 @@ c.action do |_args, _options| CreateAwsProject.new.run end end + command 'work' do |c| + c.syntax = 'renuo work' + c.summary = 'A utility command to start working on a ticket.' + c.description = 'When you start working on a feature, it will jump to the project folder, '\ + 'start a new feature with the ticket number,'\ + 'move the ticket in "In progress" state on Redmine and start Toggl with the '\ + 'ticket number or add the ticket number to the running one if there was none.' + c.example 'renuo work start kinova 1234', 'start working on ticket 1234 on kinova project' + c.action do|args| + Work.new.run(args) + end + end + command 'release' do |c| c.syntax = 'renuo release' c.summary = 'Release a projects state of develop (on github) to master in one command.' c.description = 'Creates a new release version of a project on master as either a Major, Minor, '\ 'Patch or Custom release based on the current state of develop on Github' @@ -210,9 +226,19 @@ c.summary = 'Adds standard semaphore configuration files to a project and creates the notifications' c.description = 'Run this command with a project, to add the semaphore configuration files '\ 'and create notifications.' c.action do |args| ConfigureSemaphore.new.call + end + end + + command 'toggl-redmine' do |c| + c.syntax = 'renuo toggl-redmine' + c.summary = 'Compares your time entries between Toggl and Redmine' + c.description = 'This command extracts your time entries in Toggl and in Redmine and checks if they are'\ + ' consistant. It can help you in your time booking to find if you booked something wrong' + c.action do |args| + TogglRedmineComparator.call end end end end end