lib/geet/commandline/configuration.rb in geet-0.3.17 vs lib/geet/commandline/configuration.rb in geet-0.3.18
- old
+ new
@@ -96,10 +96,19 @@
PR_OPEN_OPTIONS = [
long_help: 'Open in the browser the PR for the current branch'
]
+ REPO_ADD_UPSTREAM_OPTIONS = [
+ long_help: 'Add the upstream repository to the current repository (configuration).'
+ ]
+
+ REPO_OPEN_OPTIONS = [
+ ['-u', '--upstream', 'Open the upstream repository'],
+ long_help: 'Open the current repository in the browser'
+ ]
+
# Commands decoding table
COMMANDS_DECODING_TABLE = {
'gist' => {
'create' => GIST_CREATE_OPTIONS,
@@ -121,9 +130,13 @@
'comment' => PR_COMMENT_OPTIONS,
'create' => PR_CREATE_OPTIONS,
'list' => PR_LIST_OPTIONS,
'merge' => PR_MERGE_OPTIONS,
'open' => PR_OPEN_OPTIONS,
+ },
+ 'repo' => {
+ 'add_upstream' => REPO_ADD_UPSTREAM_OPTIONS,
+ 'open' => REPO_OPEN_OPTIONS,
},
}
# Public interface