From b5240fccf2df4a6f2a4ee99847a9d5c3901fe4a5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Oct 2025 12:11:57 -0500 Subject: better argv handling --- argv.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 4d1b935..fc828e9 100644 --- a/argv.go +++ b/argv.go @@ -10,12 +10,12 @@ package main var argv args type args struct { - Rebuild *RebuildCmd `arg:"subcommand:rebuild" help:"download all the forge sources and rebuild forge"` - Generate *GenerateCmd `arg:"subcommand:generate" help:"helps run autogenpb in repos with .proto files"` Show *ShowCmd `arg:"subcommand:show" help:"show tables"` - Clean *EmptyCmd `arg:"subcommand:clean" help:"'git clean' + reset repos to original state"` Commit *CommitCmd `arg:"subcommand:commit" help:"'git commit'"` Merge *MergeCmd `arg:"subcommand:merge" help:"merge branches"` + Rebuild *RebuildCmd `arg:"subcommand:rebuild" help:"download all the forge sources and rebuild forge"` + Generate *GenerateCmd `arg:"subcommand:generate" help:"helps run autogenpb in repos with .proto files"` + Clean *EmptyCmd `arg:"subcommand:clean" help:"'git clean' + reset repos to original state"` Pull *PullCmd `arg:"subcommand:pull" help:"'git pull'"` Normal *EmptyCmd `arg:"subcommand:normal" help:"shortcut to 'forge mode normal'"` Patch *PatchCmd `arg:"subcommand:patch" help:"work with patches"` @@ -62,8 +62,7 @@ type FixCmd struct { } type VerifyCmd struct { - Namespace *EmptyCmd `arg:"subcommand:namespace" help:"check the namespaces"` - DryRun bool `arg:"--dry-run" help:"try not to change anything"` + DryRun bool `arg:"--dry-run" help:"try not to change anything"` } type StatsCmd struct { @@ -101,11 +100,12 @@ type CommitCmd struct { } type DevCmd struct { - Build *EmptyCmd `arg:"subcommand:build" help:"build this repo"` - Install *EmptyCmd `arg:"subcommand:install" help:"build & install this repo"` - Fixer *FixCmd `arg:"subcommand:fixer" help:"send in the fixer"` - URL string `arg:"--connect" help:"forge url"` - Stats *StatsCmd `arg:"subcommand:stats" help:"generate origin.pb"` + Build *EmptyCmd `arg:"subcommand:build" help:"build this repo"` + Install *EmptyCmd `arg:"subcommand:install" help:"build & install this repo"` + Fixer *FixCmd `arg:"subcommand:fixer" help:"send in the fixer"` + URL string `arg:"--connect" help:"forge url"` + Stats *StatsCmd `arg:"subcommand:stats" help:"generate origin.pb"` + Namespace *EmptyCmd `arg:"subcommand:namespace" help:"check the namespaces"` } type GenerateCmd struct { -- cgit v1.2.3