summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorroot <[email protected]>2025-10-02 15:14:49 -0500
committerJeff Carr <[email protected]>2025-10-02 15:17:24 -0500
commit785e7102c58df7fdfe973a8f3ad8a7af2181e918 (patch)
tree64d7891ea2e5952672a9c01dd454a92e54f22017 /argv.go
parent5a7a894e385f0dfdb34bb87af97ad8a02099cccf (diff)
add repos update
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/argv.go b/argv.go
index 524c91f..324855c 100644
--- a/argv.go
+++ b/argv.go
@@ -114,9 +114,10 @@ type SubmitCmd struct {
}
type PullCmd struct {
- Force bool `arg:"--force" help:"try to strong-arm things"`
- List *EmptyCmd `arg:"subcommand:list" help:"list repo versions"`
- Check *EmptyCmd `arg:"subcommand:check" help:"check for repo changes"`
+ Force bool `arg:"--force" help:"try to strong-arm things"`
+ List *EmptyCmd `arg:"subcommand:list" help:"list repo versions"`
+ Check *EmptyCmd `arg:"subcommand:check" help:"check for repo changes"`
+ Update *EmptyCmd `arg:"subcommand:update" help:"report updates"`
}
type TagCmd struct {
@@ -205,7 +206,7 @@ func (args) Appname() string {
func (a args) DoAutoComplete(pb *prep.Auto) {
if pb.Cmd == "" {
- pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "normal", "patch", "pull", "show"})
+ pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "normal", "patch", "pull", "show", "--version"})
} else {
pb.SubCommand(pb.Argv...)
}