accounts

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractiveNewAccount

func InteractiveNewAccount()

InteractiveNewAccount prompts the user for information to add a new account.

func SaveAccountToConfig

func SaveAccountToConfig(account Account)

SaveAccountToConfig saves the account information to the configuration file.

Types

type Account

type Account struct {
	Name       string
	Email      string
	SSHKeyPath string
	SSHAlias   string
	Id         int
}

func GetAccount

func GetAccount(name string) (Account, error)

func GetAccounts

func GetAccounts() []Account

func InteractiveSelectAccount

func InteractiveSelectAccount() (Account, error)

func (*Account) Delete

func (a *Account) Delete()

func (*Account) SetGlobal

func (a *Account) SetGlobal()

func (*Account) String

func (a *Account) String() string

Jump to

Keyboard shortcuts

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