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

List help instead of entering repl with no arguments? #2947

Open
jcrben opened this issue Sep 24, 2024 · 1 comment
Open

List help instead of entering repl with no arguments? #2947

jcrben opened this issue Sep 24, 2024 · 1 comment
Labels
feature Enhancements and new features ux User experience / User Interface related ̄\_(ツ)_/ ̄ Shrug - undecided or controversial

Comments

@jcrben
Copy link

jcrben commented Sep 24, 2024

Summary

I'm still learning gopass, but I'm more accustomed to seeing help when I don't use any arguments. I don't see a way to switch so that I can see the help builtin.

So I added a wrapper function in bash:

gopass() {
  if [[ "$#" -eq 0 ]]; then
    command gopass --help
  elif [[ "$1" == "repl" ]]; then
    command gopass
  else
    command gopass "$@"
  fi 
}

I originally just tried using an alias for simplicity: alias gopass=gopass --help - but I didn't see any other way to enter the repl?

Steps To Reproduce

See summary - not a bug

Expected behavior

Desired, not expected.

Environment

  • OS: Windows 10 MSYS2
  • OS version: MINGW64_NT-10.0-22631 lenovo-legion 3.4.10-87d57229.x86_64 2024-02-14 20:17 UTC x86_64 Msys
  • gopass Version: gopass 1.15.14 go1.22.5 windows amd64
  • Installation method: scoop
@AnomalRoil AnomalRoil added feature Enhancements and new features ux User experience / User Interface related ̄\_(ツ)_/ ̄ Shrug - undecided or controversial labels Sep 26, 2024
@dominikschulz
Copy link
Member

Thanks for your report @jcrben. Since you are the first one to raise this request I'm inclined to leave the behavior as is.
But if more folks feel the same way, please let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Enhancements and new features ux User experience / User Interface related ̄\_(ツ)_/ ̄ Shrug - undecided or controversial
Projects
None yet
Development

No branches or pull requests

3 participants