This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for saving and reloading encrypted backup file (#26)
* Add support for saving and reloading encrypted backup file Added two command line arguments (with default values the behavior is unchanged): - `-save` with a filepath in order to save the encrypted backup file as json. In this case the decryption and console display of the tokens are disabled so that backup password is not required. - `-load` in order to load an encrypted backup file instead of fetching it from the server * Apply suggestions from code review - Don't add a new struct in the interface just for local usage, use unnamed struct instead - Check error code - Apply gofmt Co-authored-by: alexzorin <alex@zorin.au> Co-authored-by: alexzorin <alex@zorin.au>
- Loading branch information
Showing
2 changed files
with
115 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters