summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-28 12:38:42 -0500
committerJeff Carr <[email protected]>2025-08-28 19:30:59 -0500
commit6b6b31eef6f6a636db0750fcd0d59e3e0758013e (patch)
tree86eef1ff8c9fcc2f3842688d7c0e02402421d64f /argv.go
parent81885f44834b0f3a20999d8031ed0fc3bf6a0fa5 (diff)
stub in code to start the process of processing patches
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/argv.go b/argv.go
index 23bf4cb..1848cd3 100644
--- a/argv.go
+++ b/argv.go
@@ -12,18 +12,22 @@ import (
var argv args
type args struct {
- Pull *EmptyCmd `arg:"subcommand:pull" help:"list the repos"`
+ Pull *EmptyCmd `arg:"subcommand:pull" help:"'git pull' on the repos"`
List *EmptyCmd `arg:"subcommand:list" help:"list the repos"`
- Init *EmptyCmd `arg:"subcommand:init" help:"list the repos"`
+ Init *EmptyCmd `arg:"subcommand:init" help:"init the repo list"`
Port int `arg:"--port" default:"2520" help:"port to run on"`
Hostname string `arg:"--hostname" default:"forge.wit.com" help:"hostname to use"`
+ Force bool `arg:"--force" help:"try to strong arm things"`
+ Verbose bool `arg:"--verbose" help:"show more output"`
+ Bash bool `arg:"--bash" help:"generate bash completion"`
+ BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"`
}
type EmptyCmd struct {
}
func (args) Version() string {
- return "forged " + VERSION + " Built on " + BUILDTIME
+ return ARGNAME + " " + VERSION + " Built on " + BUILDTIME
}
func init() {