git_remote.go 873 B

12345678910111213141516171819202122232425262728
  1. package git
  2. import (
  3. "fmt"
  4. "github.com/docopt/docopt-go"
  5. )
  6. func main() {
  7. usage := `usage: git remote [-v | --verbose]
  8. git remote add [-t <branch>] [-m <master>] [-f] [--mirror] <name> <url>
  9. git remote rename <old> <new>
  10. git remote rm <name>
  11. git remote set-head <name> (-a | -d | <branch>)
  12. git remote [-v | --verbose] show [-n] <name>
  13. git remote prune [-n | --dry-run] <name>
  14. git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]
  15. git remote set-branches <name> [--add] <branch>...
  16. git remote set-url <name> <newurl> [<oldurl>]
  17. git remote set-url --add <name> <newurl>
  18. git remote set-url --delete <name> <url>
  19. options:
  20. -v, --verbose be verbose; must be placed before a subcommand
  21. `
  22. args, _ := docopt.Parse(usage, nil, true, "", false)
  23. fmt.Println(args)
  24. }