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

[FEATURE] Ask for setup if not initialized #2975

Merged
merged 2 commits into from
Oct 22, 2024
Merged

[FEATURE] Ask for setup if not initialized #2975

merged 2 commits into from
Oct 22, 2024

Conversation

Juneezee
Copy link
Contributor

Fixes #2963.

Before

before.mp4

After

after.mp4

Fixes #2963.

Tested-by: Eng Zer Jun <[email protected]>
Signed-off-by: Eng Zer Jun <[email protected]>
AnomalRoil
AnomalRoil previously approved these changes Oct 20, 2024
Copy link
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a better UX, lgtm

@@ -55,6 +55,15 @@ func (s *Action) IsInitialized(c *cli.Context) error {
out.Printf(ctx, logo)
out.Printf(ctx, "🌟 Welcome to gopass!")
out.Noticef(ctx, "No existing configuration found.")

contSetup, err := termio.AskForBool(ctx, "❓ Do you want to continue to setup?", true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The third parameter to AskForBool is the default. I think that should be false in this case.

If gopass is run non-interactively it will always use the default value and we only want to start the setup flow if the user explicitly asks for it. So please change true to false and then we should be good.

@dominikschulz dominikschulz merged commit 45043c9 into gopasspw:master Oct 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gopass command before setting up gopass
3 participants