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

Add template feature #1

Merged
merged 2 commits into from May 17, 2017
Merged

Conversation

dominikschulz
Copy link
Member

This PR adds a handy template / preset feature for your password store.

@dominikschulz dominikschulz changed the base branch from master to develop February 2, 2017 16:07
@metalmatze metalmatze added this to the 1.x.x milestone Feb 3, 2017
@dominikschulz dominikschulz changed the base branch from develop to master February 3, 2017 15:51
@dominikschulz dominikschulz reopened this Feb 3, 2017
@dominikschulz dominikschulz self-assigned this Feb 4, 2017
@dominikschulz dominikschulz added the feature Enhancements and new features label Feb 4, 2017
@dominikschulz dominikschulz removed the request for review from falschparker82 April 5, 2017 07:37
@dominikschulz dominikschulz modified the milestones: 1.1.0, 1.x.x Apr 5, 2017
Copy link
Contributor

@metalmatze metalmatze left a comment

Choose a reason for hiding this comment

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

Overall really good work. I'm not sure how easy it would be to add a bunch of integration tests.

action/edit.go Outdated
@@ -8,6 +8,9 @@ import (
"os"
"os/exec"

"github.com/justwatchcom/gopass/pwgen"
"github.com/justwatchcom/gopass/tpl"

Copy link
Contributor

Choose a reason for hiding this comment

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

This new line is one too much.

action/edit.go Outdated
} else if tmpl, found := s.Store.LookupTemplate(name); found {
changed = true
// load template if it exists
content = pwgen.GeneratePassword(24, false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the default 24 should be a const shared across packages or passed down. Aren't we setting that somewhere else too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, indeed. Will change that.

@shibumi shibumi mentioned this pull request Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Enhancements and new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants