summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:17:37 -0500
committerJeff Carr <[email protected]>2025-10-26 10:17:37 -0500
commit6d74699580cd1d25e97e129a6e796bf324298663 (patch)
tree81ad1d13f4ee2d56d941d505d00b4d6c14cd1444 /argv.go
parente1e8951cc3cad6db900ac1240512902936c4f97a (diff)
argv is better nowv0.0.68
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..ac67ed8
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,36 @@
+package main
+
+var argv args
+
+type args struct {
+ Repos *ReposCmd `arg:"subcommand:repos" help:"the forged repos"`
+ Patch *PatchCmd `arg:"subcommand:patches" help:"the forged patches"`
+ Gui *EmptyCmd `arg:"subcommand:gui" help:"show gui"`
+ Missing *EmptyCmd `arg:"subcommand:missing" help:"list missing repos"`
+ Port int `arg:"--port" default:"2520" help:"port to run on"`
+ Hostname string `arg:"--hostname" help:"hostname to use"`
+ Daemon bool `arg:"--daemon" help:"run as a daemon"`
+ Force bool `arg:"--force" help:"try to strong arm things"`
+ Verbose bool `arg:"--verbose" help:"show more output"`
+}
+
+type EmptyCmd struct {
+}
+
+type PatchCmd struct {
+ List *EmptyCmd `arg:"subcommand:list" help:"list the patches"`
+ Clean *EmptyCmd `arg:"subcommand:clean" help:"clean the patches"`
+ Init *EmptyCmd `arg:"subcommand:init" help:"init"`
+}
+
+type ReposCmd struct {
+ List *EmptyCmd `arg:"subcommand:list" help:"list the repos"`
+ Pull *EmptyCmd `arg:"subcommand:pull" help:"'git pull' on the repos"`
+ Scan *EmptyCmd `arg:"subcommand:scan" help:"scan the forged repo dir"`
+ Fix *EmptyCmd `arg:"subcommand:fix" help:"try to fix the repo PB"`
+ Devel *EmptyCmd `arg:"subcommand:devel" help:"list repos with devel branches"`
+ Reload *EmptyCmd `arg:"subcommand:reload" help:"gitpb.Reload() each repo"`
+ // Reload *EmptyCmd `arg:"subcommand:reload" help:"do Reload() on each git repo"`
+ // Clean *EmptyCmd `arg:"subcommand:clean" help:"clean the repos"`
+ // Merge *EmptyCmd `arg:"subcommand:merge" help:"merge in new patchsets"`
+}