MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Arg

Struct Arg

internal/cmdhelp/types.go:54–64  ·  view source on GitHub ↗

Arg is a positional argument.

Source from the content-addressed store, hash-verified

52
53// Arg is a positional argument.
54type Arg struct {
55 Name string `json:"name"`
56 Type string `json:"type"`
57 Required bool `json:"required,omitempty"`
58 Description string `json:"description,omitempty"`
59 Default interface{} `json:"default,omitempty"`
60 Format string `json:"format,omitempty"`
61 Repeatable bool `json:"repeatable,omitempty"`
62 Enum []interface{} `json:"enum,omitempty"`
63 EnumSource string `json:"enum_source,omitempty"`
64}
65
66// Flag is a flag (option) on a command.
67type Flag struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected