Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vaults set command #6

Open
adilsoncarvalho opened this issue Feb 11, 2025 · 0 comments
Open

Add vaults set command #6

adilsoncarvalho opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@adilsoncarvalho
Copy link
Owner

The vaults set command will allow the user to set the location of a vault to the configuration with a name to later allow the user to reference its vault using its name, not requiring to be in the vault directory to run any commands.

ℹ This command does not make any change to the vault files.

vaults set [name] [directory] [--default]]
  • command: vaults

  • subcommand: set

  • parameter: vault name

  • parameter: vault path

  • flag: --default sets this vault as the default one for any invocations

  • the vault name must pass this regex check: /^[A-Za-z0-9-_]+$/

  • the path must exist

  • replaces existing data in the configuration

  • creates a new entry if it doesn't exist prior

  • this information is stored inside the configuration file

@adilsoncarvalho adilsoncarvalho added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant