Documentation
¶
Overview ¶
Copyright © 2025 SubstantialCattle5, nilaysharan.com
Index ¶
- func GetPassphraseForInitialization(cmd *cobra.Command, requireConfirmation bool) (string, error)
- func GetPassphraseForVault(cmd *cobra.Command, vaultConfig *config.VaultConfig) (string, error)
- func PrintSuccessMessage(cfg *config.VaultConfig, vaultID, vaultPath string)
- func PromptForInputs() (*config.VaultConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPassphraseForInitialization ¶
GetPassphraseForInitialization retrieves the passphrase for vault encryption from multiple sources: stdin, file, environment variable, or interactive prompt
func GetPassphraseForVault ¶
GetPassphraseForVault retrieves the passphrase for an encrypted vault from multiple sources in order of preference: stdin, file, environment variable, or interactive prompt. It handles validation and ensures the passphrase meets security requirements.
func PrintSuccessMessage ¶
func PrintSuccessMessage(cfg *config.VaultConfig, vaultID, vaultPath string)
PrintSuccessMessage displays a formatted success message after vault initialization
func PromptForInputs ¶
func PromptForInputs() (*config.VaultConfig, error)
PromptForInputs guides the user through setting up a vault configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.