profile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package profile implements the `profile` command group for managing configuration profiles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidProperty

func IsValidProperty(property string) error

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.

type SetOpts

type SetOpts struct {
	IO      iostreams.IOStreams
	Profile *profile.Profile
	Output  *format.Outputter

	// Arguments
	Property string
	Value    string
	DryRun   bool
}

SetOpts defines the options for the `profile set` command.

type UnsetOpts

type UnsetOpts struct {
	IO      iostreams.IOStreams
	Profile *profile.Profile

	Property string
	Profiles *profile.Loader
	DryRun   bool
}

UnsetOpts defines the options for the `profile unset` command.

Directories

Path Synopsis
Package profiles implements the `profile profiles` command group for managing configuration profiles.
Package profiles implements the `profile profiles` command group for managing configuration profiles.

Jump to

Keyboard shortcuts

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