profile

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewProfileId = "+"

Functions

func GetProfileIdFromPrompt

func GetProfileIdFromPrompt(profileList []config.Profile, activeProfileId, title string, withCreateOption bool) string

func ListProfiles

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

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