Documentation
¶
Overview ¶
Package opscli builds hive commands from catalog operations: one `<resource> <verb>` command per operation, with flags from its input fields, help from its summary and guidance, and the enum and range checks of its constraints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DesktopCommands ¶
func DesktopCommands(list []ops.Op, call Call, caller Caller, reserved ...string) ([]*cli.Command, error)
DesktopCommands builds `<resource-kebab> <verb>` groups for every desktop-owned op. It fails on an op whose input has a field the CLI cannot spell, so a bad spec fails the first test rather than a user's call.
reserved names the flags of the parent command. urfave/cli resolves a flag name from the nearest command first, so a field flag with a reserved name would hide the parent's flag from the command.
Types ¶
Click to show internal directories.
Click to hide internal directories.