|
|
@ -16,8 +16,7 @@ fn main() {
|
|
|
|
let matches = Command::new("git-view")
|
|
|
|
let matches = Command::new("git-view")
|
|
|
|
.version(crate_version!())
|
|
|
|
.version(crate_version!())
|
|
|
|
.author(crate_authors!())
|
|
|
|
.author(crate_authors!())
|
|
|
|
.about(crate_description!())
|
|
|
|
.about(
|
|
|
|
.long_about(
|
|
|
|
|
|
|
|
"A git sub-command to view your git repository in the browser.
|
|
|
|
"A git sub-command to view your git repository in the browser.
|
|
|
|
|
|
|
|
|
|
|
|
This currently supports the following URLs:
|
|
|
|
This currently supports the following URLs:
|
|
|
@ -27,7 +26,6 @@ This currently supports the following URLs:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("remote")
|
|
|
|
Arg::new("remote")
|
|
|
|
.help("The remote to view git repository on [default: default remote]")
|
|
|
|
|
|
|
|
.long_help("The remote to view git repository on\n[default: default remote]")
|
|
|
|
.long_help("The remote to view git repository on\n[default: default remote]")
|
|
|
|
.short('r')
|
|
|
|
.short('r')
|
|
|
|
.long("remote")
|
|
|
|
.long("remote")
|
|
|
@ -37,7 +35,6 @@ This currently supports the following URLs:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("branch")
|
|
|
|
Arg::new("branch")
|
|
|
|
.help("The branch to view git repository on [default: current branch]")
|
|
|
|
|
|
|
|
.long_help("The branch to view git repository on\n[default: current branch]")
|
|
|
|
.long_help("The branch to view git repository on\n[default: current branch]")
|
|
|
|
.short('b')
|
|
|
|
.short('b')
|
|
|
|
.long("branch")
|
|
|
|
.long("branch")
|
|
|
@ -47,7 +44,6 @@ This currently supports the following URLs:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("commit")
|
|
|
|
Arg::new("commit")
|
|
|
|
.help("The commit to view git repository on [default: latest]")
|
|
|
|
|
|
|
|
.long_help("The commit to view git repository on\n[default: latest]")
|
|
|
|
.long_help("The commit to view git repository on\n[default: latest]")
|
|
|
|
.short('c')
|
|
|
|
.short('c')
|
|
|
|
.long("commit")
|
|
|
|
.long("commit")
|
|
|
@ -58,7 +54,7 @@ This currently supports the following URLs:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("suffix")
|
|
|
|
Arg::new("suffix")
|
|
|
|
.help("A suffix to append onto the git repository URL")
|
|
|
|
.long_help("A suffix to append onto the git repository URL")
|
|
|
|
.short('s')
|
|
|
|
.short('s')
|
|
|
|
.long("suffix")
|
|
|
|
.long("suffix")
|
|
|
|
.value_name("suffix")
|
|
|
|
.value_name("suffix")
|
|
|
@ -67,14 +63,14 @@ This currently supports the following URLs:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("issue")
|
|
|
|
Arg::new("issue")
|
|
|
|
.help("Attempt to parse issue number and open issue link")
|
|
|
|
.long_help("Attempt to parse issue number and open issue link")
|
|
|
|
.short('i')
|
|
|
|
.short('i')
|
|
|
|
.long("issue")
|
|
|
|
.long("issue")
|
|
|
|
.display_order(5),
|
|
|
|
.display_order(5),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.arg(
|
|
|
|
.arg(
|
|
|
|
Arg::new("print")
|
|
|
|
Arg::new("print")
|
|
|
|
.help("Don't open browser and print the URL")
|
|
|
|
.long_help("Don't open browser and print the URL")
|
|
|
|
.short('p')
|
|
|
|
.short('p')
|
|
|
|
.long("print")
|
|
|
|
.long("print")
|
|
|
|
.display_order(6),
|
|
|
|
.display_order(6),
|
|
|
|