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

Simplify the version command output #9

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Simplify the version command output #9

merged 2 commits into from
Sep 28, 2022

Conversation

kpitt
Copy link
Owner

@kpitt kpitt commented Sep 28, 2022

Most users expect the version command to display just the static version of the application, and it should run quickly with no additional overhead. Including information about the mounted password-stores requires additional initialization, and often triggers an auto-sync, which seems silly when you just need the app version.

This splits the current version info into 2 separate commands:

  • gopass version displays just the app version, requires no extra initialization, and will not trigger auto-sync or reminders.
  • gopass mounts versions shows the additional version info for the password-store mounts.

A `version` command is generally expected to be just a simple print of
the application version.  In particular, it should not trigger the
auto-sync that occurs when loading the `gopass` configuration in order
to show the command versions for the configured mounts.  Instead, the
version info for the mount points is now displayed by a separate
`mounts versions` sub-command.
@kpitt kpitt merged commit cd84f76 into master Sep 28, 2022
@kpitt kpitt deleted the simplify-version branch September 28, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant