Documentation
¶
Overview ¶
Package profile implements the `profile` command group for managing configuration profiles
Index ¶
- func IsValidProperty(property string) error
- func NewCmdDisplay(inv *cmd.Invocation) *cmd.Command
- func NewCmdGet(inv *cmd.Invocation) *cmd.Command
- func NewCmdProfile(inv *cmd.Invocation) *cmd.Command
- func NewCmdSet(inv *cmd.Invocation) *cmd.Command
- func NewCmdUnset(inv *cmd.Invocation) *cmd.Command
- type DisplayOpts
- type GetOpts
- type SetOpts
- type UnsetOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidProperty ¶
IsValidProperty returns an error if the given property is invalid.
func NewCmdDisplay ¶
func NewCmdDisplay(inv *cmd.Invocation) *cmd.Command
NewCmdDisplay returns the `profile display` command for displaying the active profile.
func NewCmdGet ¶
func NewCmdGet(inv *cmd.Invocation) *cmd.Command
NewCmdGet returns the `profile get` command for getting a CLI configuration property.
func NewCmdProfile ¶
func NewCmdProfile(inv *cmd.Invocation) *cmd.Command
NewCmdProfile returns the `profile` command for managing configuration profiles.
func NewCmdSet ¶
func NewCmdSet(inv *cmd.Invocation) *cmd.Command
NewCmdSet returns the `profile set` command for setting a profile configuration property.
func NewCmdUnset ¶
func NewCmdUnset(inv *cmd.Invocation) *cmd.Command
NewCmdUnset returns the `profile unset` command for unsetting a profile configuration property.
Types ¶
type DisplayOpts ¶
type DisplayOpts struct {
IO iostreams.IOStreams
Profile *profile.Profile
Output *format.Outputter
}
DisplayOpts defines the options for the `profile display` command.
type GetOpts ¶
type GetOpts struct {
IO iostreams.IOStreams
Profile *profile.Profile
Output *format.Outputter
Property string
}
GetOpts defines the options for the `profile get` command.