profile

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewProfileId = "+ New Profile"

Functions

func GetProfileFromPrompt added in v0.13.0

func GetProfileFromPrompt(profiles []config.Profile, activeProfileName string, withNewProfile bool) (*config.Profile, error)

func ListProfiles

func ListProfiles(profileList []config.Profile, activeProfileId string, showApiKeysFlag bool) (string, error)

func ProfileCreationView

func ProfileCreationView(c *config.Config, profileAddView *ProfileAddView, editing bool)

func Render

func Render(info ProfileInfo, verb string)

func SwitchToDefaultPrompt added in v0.7.0

func SwitchToDefaultPrompt(profileSwitchCheck *bool)

Types

type ProfileAddView

type ProfileAddView struct {
	ProfileName string
	ApiUrl      string
	ApiKey      string
}

type ProfileInfo

type ProfileInfo struct {
	ProfileName string
	ApiUrl      string
	ProfilePath string
}

Jump to

Keyboard shortcuts

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