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

userinfo: add list-group subcommand. #35

Merged
merged 4 commits into from Feb 6, 2021

Conversation

rgooch
Copy link
Member

@rgooch rgooch commented Feb 5, 2021

No description provided.

@rgooch rgooch requested a review from cviecco February 5, 2021 05:55
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo/gitdb"
)

func getDB(source string, logger log.DebugLogger) (*gitdb.UserInfo, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this function is supposed to be doing? From the name it is not clear its differnce from gitdb.New.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a convenience wrapper to remove some boilerplate. It handles creating a temporary directory where the repository is copied to if the repository is remote and if the repository is local it passes that in to the underlying function.
The underlying function is designed to periodically git pull. The CLI doesn't need that, it just was a one-off fetch.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've tweaked the documentation.

@rgooch rgooch requested a review from cviecco February 5, 2021 20:56
@cviecco cviecco merged commit db9ad00 into Cloud-Foundations:master Feb 6, 2021
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

2 participants