ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Copyright © 2025 SubstantialCattle5, nilaysharan.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPassphraseForInitialization

func GetPassphraseForInitialization(cmd *cobra.Command, requireConfirmation bool) (string, error)

GetPassphraseForInitialization retrieves the passphrase for vault encryption from multiple sources: stdin, file, environment variable, or interactive prompt

func GetPassphraseForVault

func GetPassphraseForVault(cmd *cobra.Command, vaultConfig *config.VaultConfig) (string, error)

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.

Jump to

Keyboard shortcuts

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