Skip to content

Releases: marevers/pleasant-cli

v0.5.0

22 Mar 08:53
Compare
Choose a tag to compare
  • New feature: patch entry/folder: with these commands, you can patch existing entries and folders which allows for partial updates, e.g. just the name or password. You can also set user access assignments with --useraccess.
  • New feature: the timeout used for HTTP calls towards the server is now configurable. The default value remains 20 seconds but should you want to use a longer/shorter timeout, you can configure it like such: pleasant-cli config timeout <seconds>. This configuration is persisted in the configuration file.
  • Bugfix: the login command would not verify if the server URL was set. This verification has been added.
  • Bugfix: Commands where --path was used could sometimes end up unintentionally matching entries/folders with object names that were not fully equal. This matching mechanism has seen an additional validation added that should prevent this now.

Changelog

  • de74c23 Add patch entry and patch folder commands
  • 3829567 Add user access assignment functionality to patch entry and patch folder commands
  • 8dd6f24 Bump version to v0.5.0
  • 72f9aa5 Display server error message on unmatched error
  • 875f4a5 Make timeout configurable, verify serverurl set for login command
  • af262ce Prevent non-fully matching paths to match for --path
  • f72936d Refactor loading current configuration
  • 0763610 Update patch command description

v0.4.0

13 Mar 16:31
Compare
Choose a tag to compare
  • New feature: delete entry/folder --useraccess: you can now archive/delete user access assignments by appending --useraccess <accessrowid> to either the delete entry or delete folder commands. This will remove a user's access to the entry/folder, rather than deleting the object itself. You can find the access row id by running e.g. pleasant-cli get entry --id <id> --useraccess.

Changelog

  • 120b4da Add user access assignment deletion/archival to delete entry and delete folder commands
  • 6e39da6 Bump version to v0.4.0, fix token file discovery when using a non-standard token path

v0.3.1

06 Mar 13:30
Compare
Choose a tag to compare

Changelog

  • 0580650 Fix bug with --token flag, bump version to v0.3.1

v0.3.0

15 Feb 11:58
Compare
Choose a tag to compare
  • New feature: get entry --username: you can now retrieve just the username for an entry by using the --username flag. Useful for automation/scripting purposes where you need to get the username (and password with --password) without the need for additional parsing.
  • New feature: Double quote trimming for get entry --password: the output for this command now automatically trims the double quotes around the output which improves compatibility when used for automation/scripting purposes.

Changelog

  • 99d5482 Add --username flag to retrieve username, remove double quotes from --password output
  • f9affa6 Bump version to v0.3.0
  • f5eaa13 Improve serverurl help message
  • fdc0463 Upgrade dependencies (cobra v1.8.0, golang.org/x/term v0.14.0

v0.2.0

18 Oct 09:33
Compare
Choose a tag to compare
  • New feature: delete entry and delete folder: you can now delete entries and folders. By default, they will archived (if that is enabled on the server). By using --delete you can delete them instantly (careful, as that is irreversible).
  • New feature: get passwordstrength: allows you to test the strength of a given password against the server.
  • New feature: get serverinfo: gets information about the Pleasant Password server.
  • New feature: --pretty: new flag for the get and search commands. Indents the output, rather than outputting the JSON in one line.
  • Bug fix: some possible problems fixed that could cause the execution to continue even though it should have exited out already.

Changelog

  • 31be022 Add --pretty flag for pretty-printing output to get and search commands
  • 016acc9 Add delete entry and delete folder commands
  • 39df214 Add get passwordstrength command
  • 3483565 Add get serverinfo command
  • 144b67c Adjust descriptions for get command
  • f7d01d4 Fix some error handling
  • 80eeffb Set version to v0.2.0

v0.1.0

13 Oct 14:09
Compare
Choose a tag to compare
  • New feature: with apply entry and apply folder you can create and update entries and folders with a single command - which is useful when using pleasant-cli in automation scripts and the like. If a matching entry does not exist, it is created. If it does, it is updated in place with any changes there might be in the JSON input.

Changelog

  • 1db1ac4 Add apply entry and apply folder commands
  • 52c8acf Add new functions for apply commands, adjust README
  • 354c415 Adjust help message for create folder command
  • 563bbeb Set version to v0.1.0
  • 0609c09 Upgrade dependencies
  • 0c4e061 Use MarkFlagsOneRequired to check for required flags

v0.0.3

10 Oct 07:33
Compare
Choose a tag to compare

Changelog

  • ab20592 Change models to prevent issues with unmarshalling
  • 135331c Remove newline from login message
  • f953679 Set version to v0.0.3

v0.0.2

27 Apr 15:18
Compare
Choose a tag to compare
  • Adds --no-duplicates flag for entry and folder creation to prevent creation of entries/folders with identical names.
  • Adds --useraccess flag to retrieve list of users that have access to an entry/folder.
  • Some refactoring.

Changelog

  • cbdaa1b Add --no-duplicate flag for entry creation
  • b078d85 Add --no-duplicates flag for folder creation
  • d6e0d75 Add --useraccess flag to get entry and get folder
  • 6701156 Fix typo
  • 18cbd9f Put models in models.go
  • 37b0fc9 Refactor models, remove duplicate models
  • 714175d Set version v0.0.2

v0.0.1

05 Apr 07:48
Compare
Choose a tag to compare

Pleasant CLI v0.0.1

This is the initial release of Pleasant CLI. It's a simple CLI for Pleasant Password Server.
It is built using Cobra and Viper.

It can currently perform simple tasks:

  • Get entries & folders
  • Get entry passwords and attachments
  • Get access levels
  • Create entries & folders

Planned to add next:

  • Patching entries & folders
  • no-duplicates flag (folders/entries in the same location with the same name will not be created*)

Suggestions and feedback are very welcome.

*Pleasant Password Server allows entries in the same folder with the same name. The flag will allow you to prevent creation of an entry if another entry with the same name already exists in the target location.