summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-06-29 02:48:47 -0500
committerJeff Carr <[email protected]>2025-06-29 02:48:47 -0500
commit2616d0d8b45f98b0946b08bb15d047753d47949d (patch)
tree6a032069eef1073f62ee559564129cde2070b10c /argv.go
parent0219d69bfb05358e7d3d5a615dbf275b93a48dae (diff)
add a way to debug protobuf Marshal() errorsv0.22.120v0.22.119
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index fd281b7..6676a6c 100644
--- a/argv.go
+++ b/argv.go
@@ -19,6 +19,7 @@ type args struct {
Clean *CleanCmd `arg:"subcommand:clean" help:"start over at the beginning"`
Commit *CommitCmd `arg:"subcommand:commit" help:"'git commit' but errors out if on wrong branch"`
Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"`
+ Debug *DebugCmd `arg:"subcommand:debug" help:"debug forge"`
Dirty *DirtyCmd `arg:"subcommand:dirty" help:"show repos git says are dirty"`
GitFetch *FindCmd `arg:"subcommand:fetch" help:"run 'git fetch master'"`
List *FindCmd `arg:"subcommand:list" help:"print a table of the current repos"`
@@ -90,6 +91,10 @@ type ConfigCmd struct {
Register string `arg:"--register" help:"register your git URL (foo.com/mystuff) or (github.com/foo/bar)"`
}
+type DebugCmd struct {
+ Config *EmptyCmd `arg:"subcommand:config" help:"used to debug protobuf Marshal() if things go wrong"`
+}
+
type CheckoutCmd struct {
User *FindCmd `arg:"subcommand:user" help:"git checkout user"`
Devel *FindCmd `arg:"subcommand:devel" help:"git checkout devel"`