Sha256: 1b1a83b5e5ea7523b2d9cc46ccf354fe57b35edba9566e3530c3dd3df1fc5d48
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
class Gitmine::CLI def self.run case ARGV[0] when "log" list when "branch", "br" branch when "checkout", "co" checkout when "delete", "del" delete when "for_deploy", "reviewed" reviewed else puts <<-EOS Usage: gitmine branch BRANCH_NAME Create a new branch, push to origin, add github links to gitmine ticket Example: gitmine branch 1234-my-branch gitmine checkout ISSUE_ID Checkout remote/local branch starting with ISSUE_ID Example: gitmine checkout 1234 gitmine reviewed ISSUE_ID Merge the branch to master, delete remote branch, delete hudson jobs (if any), update redmine issue status Example: gitmine reviewed 1234 gitmine delete ISSUE_ID Delete remote branch starting with ISSUE_ID Example: gitmine delete 1234 gitmine log Displays latest 10 commits and the status of their associated Redmine tickets EOS end end def self.list Gitmine.list end def self.branch Gitmine.branch(ARGV[1]) end def self.checkout Gitmine.checkout(ARGV[1]) end def self.delete Gitmine.delete(ARGV[1]) end def self.reviewed Gitmine.reviewed(ARGV[1]) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gitmine-0.1.12 | lib/gitmine/cli.rb |
gitmine-0.1.11 | lib/gitmine/cli.rb |
gitmine-0.1.10 | lib/gitmine/cli.rb |
gitmine-0.1.9 | lib/gitmine/cli.rb |
gitmine-0.1.8 | lib/gitmine/cli.rb |