profiles

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: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdActivate

func NewCmdActivate(inv *cmd.Invocation) *cmd.Command

NewCmdActivate returns the `profile profiles activate` command for activating a configuration profile.

func NewCmdCreate

func NewCmdCreate(inv *cmd.Invocation) *cmd.Command

NewCmdCreate returns the `profile profiles create` command for creating a new configuration profile.

func NewCmdDelete

func NewCmdDelete(inv *cmd.Invocation) *cmd.Command

NewCmdDelete returns the `profile profiles delete` command for deleting configuration profiles.

func NewCmdList

func NewCmdList(inv *cmd.Invocation) *cmd.Command

NewCmdList returns the `profile profiles list` command for listing configuration profiles.

func NewCmdProfiles

func NewCmdProfiles(inv *cmd.Invocation) *cmd.Command

NewCmdProfiles returns the `profile profiles` command for managing configuration profiles.

func NewCmdRename

func NewCmdRename(inv *cmd.Invocation) *cmd.Command

NewCmdRename returns the `profile profiles rename` command for renaming a configuration profile.

func PredictProfiles

func PredictProfiles(repeated, predictActive bool) complete.PredictFunc

PredictProfiles is an argument prediction function that predicts a profile name. If repeated is true, multiple profiles will be predicted. This is useful for commands that accept lists of profiles. If predictActive is set to true, the active profile will be included in the prediction set.

Types

type ActivateOpts

type ActivateOpts struct {
	IO       iostreams.IOStreams
	Profiles *profile.Loader
	Name     string
	DryRun   bool
}

ActivateOpts defines the options for the `profile profiles activate` command.

type CreateOpts

type CreateOpts struct {
	IO         iostreams.IOStreams
	Profiles   *profile.Loader
	Name       string
	NoActivate bool
	Hostname   string
	DryRun     bool
}

CreateOpts defines the options for the `profile profiles create` command.

type DeleteOpts

type DeleteOpts struct {
	IO       iostreams.IOStreams
	Profiles *profile.Loader
	Names    []string
	DryRun   bool
}

DeleteOpts defines the options for the `profile profiles delete` command.

type ListOpts

type ListOpts struct {
	IO       iostreams.IOStreams
	Output   *format.Outputter
	Profiles *profile.Loader
}

ListOpts defines the options for the `profile profiles list` command.

type RenameOpts

type RenameOpts struct {
	IO           iostreams.IOStreams
	Profiles     *profile.Loader
	ExistingName string
	NewName      string
	DryRun       bool
}

RenameOpts defines the options for the `profile profiles rename` command.

Jump to

Keyboard shortcuts

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