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

[FEATURE REQUEST] Import / export, or a CLI interface? #7

Open
kanielrkirby opened this issue May 19, 2024 · 2 comments
Open

[FEATURE REQUEST] Import / export, or a CLI interface? #7

kanielrkirby opened this issue May 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kanielrkirby
Copy link

Are there any plans to support backing up the stored tokens in a reproducible way? (or was there something that already exists that I've missed 👀).

I would imagine traditional "backups" could be a bit too much to worry about, so another possibility is adding a CLI that could add/remove tokens and folders, so that it's still possible to get up and running quickly.

What I would imagine is something similar to:

# Create new token for user `kanielrkirby` in folder `my-folder` with secret as first argument.
tlock create "kanielrkirby/my-folder/my-token" "$SECRET" -p "$PASSWORD";

# Open a new YAML buffer to edit each field, or open up in the TUI.
tlock edit "kanielrkirby/my-folder/my-token" -p "$PASSWORD";

# Set the `length` field to 8.
tlock edit "kanielrkirby/my-folder/my-token" --length 8 -p "$PASSWORD";

# Remove the token.
tlock delete "kanielrkirby/my-folder/my-token" -p "$PASSWORD";
@eklairs eklairs added the enhancement New feature or request label May 20, 2024
@eklairs
Copy link
Owner

eklairs commented May 20, 2024

I am indeed planning to add support for import / export and cli interface!
Probably by the second week of next month :)

@kanielrkirby
Copy link
Author

Alrighty, sounds great! If you need or want any help, just let me know, happy to contribute to awesome software!

@eklairs eklairs self-assigned this May 21, 2024
@eklairs eklairs added this to the v2.0.0 milestone May 21, 2024
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

2 participants