improve consistency of tags

This commit is contained in:
2026-03-27 13:23:46 +00:00
parent 847dffd842
commit 6ec3c55383
17 changed files with 216 additions and 216 deletions

View File

@@ -3,14 +3,14 @@ package main
import "fmt"
type SnapshotCmdGroup struct {
List ListCmd `help:"List all snapshots." cmd:"list"`
List ListCmd `cmd:"" help:"List all snapshots."`
Index struct {
Index *int `arg:"" help:"The index of the snapshot." optional:""`
Name NameCmd `help:"Get or set the name of a snapshot." cmd:"name"`
Save SaveCmd `help:"Save the current mixer state to a snapshot." cmd:"save"`
Load LoadCmd `help:"Load a mixer state from a snapshot." cmd:"load"`
Delete DeleteCmd `help:"Delete a snapshot." cmd:"delete"`
} `help:"The index of the snapshot." arg:""`
Name NameCmd `cmd:"" help:"Get or set the name of a snapshot."`
Save SaveCmd `cmd:"" help:"Save the current mixer state to a snapshot."`
Load LoadCmd `cmd:"" help:"Load a mixer state from a snapshot."`
Delete DeleteCmd `cmd:"" help:"Delete a snapshot."`
} ` help:"The index of the snapshot." arg:""`
}
// Validate checks if the provided snapshot index is within the valid range (1-64) when any of the subcommands that require an index are used.