embed

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubcommandsAsFlags

func SubcommandsAsFlags(cmd *cobra.Command, subcommands ...*cobra.Command)

SubcommandsAsFlags embeds subcommands as flags (e.g. `pacman -Syu` where `S` is actually a subcommand). Supports a single alias that is used as shorthand.

func SubcommandsAsFlagsS

func SubcommandsAsFlagsS(cmd *cobra.Command, subcommands ...*cobra.Command)

SubcommandsAsFlagsS is like SubcommandsAsFlags but only adds the shorthand.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL