зеркало из https://github.com/mislav/hub.git
Rename update to selfupdate
This commit is contained in:
Родитель
bf1691e515
Коммит
1ecb1ac6c6
|
@ -116,7 +116,7 @@ GitHub Commands:
|
|||
ci-status Show the CI status of a commit
|
||||
|
||||
See 'git help <command>' for more information on a specific command.
|
||||
Run 'git update' to update to the latest version of gh.
|
||||
Run 'git selfupdate' to update to the latest version of gh.
|
||||
`
|
||||
|
||||
func printUsage() {
|
||||
|
|
|
@ -5,19 +5,19 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
var cmdUpdate = &Command{
|
||||
var cmdSelfupdate = &Command{
|
||||
Run: update,
|
||||
Usage: "update",
|
||||
Usage: "selfupdate",
|
||||
Short: "Update gh",
|
||||
Long: `Update gh to the latest version.
|
||||
|
||||
Examples:
|
||||
git update
|
||||
git selfupdate
|
||||
`,
|
||||
}
|
||||
|
||||
func init() {
|
||||
CmdRunner.Use(cmdUpdate)
|
||||
CmdRunner.Use(cmdSelfupdate)
|
||||
}
|
||||
|
||||
func update(cmd *Command, args *Args) {
|
Загрузка…
Ссылка в новой задаче