Documentation ¶
Index ¶
- Variables
- func AskForGitConfigUser(ctx context.Context, crypto backend.Crypto, name string) (string, string, error)
- func AskForPrivateKey(ctx context.Context, crypto backend.Crypto, name, prompt string) (string, error)
- func AskForStore(ctx context.Context, s mountPointer) string
- func ConfirmRecipients(ctx context.Context, crypto backend.Crypto, name string, recipients []string) ([]string, error)
- func GetSelection(ctx context.Context, prompt, usage string, choices []string) (string, int)
- type Action
- type Actions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AskForGitConfigUser ¶
func AskForGitConfigUser(ctx context.Context, crypto backend.Crypto, name string) (string, string, error)
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 ¶
func AskForPrivateKey(ctx context.Context, crypto backend.Crypto, name, prompt string) (string, error)
AskForPrivateKey promts 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.