Documentation ¶
Index ¶
- Variables
- func AskForGitConfigUser(ctx context.Context, crypto backend.Crypto) (string, string, error)
- func AskForPrivateKey(ctx context.Context, crypto backend.Crypto, prompt string) (string, error)
- func AskForStore(ctx context.Context, s mountPointer) string
- func GetSelection(ctx context.Context, prompt string, choices []string) (string, int)
- type Action
- type Actions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AskForGitConfigUser ¶
AskForGitConfigUser will iterate over GPG private key identities and prompt the user for selecting one identity whose name and email address will be used as git config user.name and git config user.email, respectively. On error or no selection, name and email will be empty.
If s.isTerm is false (i.e., the user cannot be prompted), however, the first identity's name/email pair found is returned.
func AskForPrivateKey ¶
AskForPrivateKey prompts the user to select from a list of private keys.
func AskForStore ¶
AskForStore shows a store / mount point selection.
Types ¶
Click to show internal directories.
Click to hide internal directories.