зеркало из https://github.com/mislav/hub.git
Add update command
This commit is contained in:
Родитель
6c7d48ef95
Коммит
7b8770d228
|
@ -90,6 +90,7 @@ func All() []*Command {
|
|||
all = append(all, cmdAlias)
|
||||
all = append(all, cmdVersion)
|
||||
all = append(all, cmdHelp)
|
||||
all = append(all, cmdUpdate)
|
||||
|
||||
return all
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ GitHub Commands:
|
|||
issue Manipulate issues (beta)
|
||||
|
||||
See 'git help <command>' for more information on a specific command.
|
||||
Run 'git update' to update to the latest version of gh.
|
||||
`
|
||||
|
||||
func printUsage() {
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
var cmdUpdate = &Command{
|
||||
Run: update,
|
||||
Usage: "update",
|
||||
Short: "Update gh",
|
||||
Long: `Update gh with the latest version.
|
||||
|
||||
Examples:
|
||||
git update
|
||||
`,
|
||||
}
|
||||
|
||||
func update(cmd *Command, args *Args) {
|
||||
os.Exit(0)
|
||||
}
|
Загрузка…
Ссылка в новой задаче