Skip to content

Commit

Permalink
Merge pull request #48 from slok/slok/update-alias
Browse files Browse the repository at this point in the history
Add update alias for reencrypt command
  • Loading branch information
slok authored Mar 11, 2021
2 parents 5ed884f + 7ce5752 commit ca57e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Ignore `#` comments in multi recipient public key files.
- Alias `update` command for `reencrypt` command.

## [v0.1.0] - 2021-03-11

Expand Down
1 change: 1 addition & 0 deletions cmd/agebox/commands/reencrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func NewReencryptCommand(app *kingpin.Application) Command {
c := &reencryptCommand{}
cmd := app.Command("reencrypt", "Reencrypts the tracked files.")
cmd.Alias("recrypt")
cmd.Alias("update")
cmd.Flag("public-keys", "Path to public keys.").Default("keys").Short('p').StringVar(&c.PubKeysPath)
cmd.Flag("private-key", "Path to private key.").Required().Short('i').StringVar(&c.PrivateKeyPath)
cmd.Flag("dry-run", "Enables dry run mode, write operations will be ignored").BoolVar(&c.DryRun)
Expand Down

0 comments on commit ca57e17

Please sign in to comment.