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/Bootstrap policy-hub CLI #10

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Conversation

Blokje5
Copy link
Contributor

@Blokje5 Blokje5 commented Oct 8, 2020

This PR bootstraps the policy-hub CLI. The following features have been added:

  • Root Command (policy-hub)
  • Consistent binding of configuration flags, environment variables and configuration files, in that order
  • A simple Makefile to help with local development

This PR bootstraps the policy-hub CLI. The following features have been added:
- Root Command (policy-hub)
- Consistent binding of configuration flags, environment variables and configuration files, in that order
- A simple Makefile to help with local development

Signed-off-by: Lennard Eijsackers <[email protected]>
@xchapter7x xchapter7x linked an issue Oct 9, 2020 that may be closed by this pull request
Copy link
Contributor

@xchapter7x xchapter7x left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,22 @@
.PHONY: build
Copy link
Contributor

Choose a reason for hiding this comment

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

oh good, you like makefiles on go projects too :)

return rootCmd
}

// initializeConfig initializes viper config and binds viper to the cobra flags.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should decide if we are going to comment on both exported and un-exported functions.
I wont strongly advocate for either, we should just strive for consistency across the codebase.

@xchapter7x xchapter7x merged commit 539a38f into main Oct 9, 2020
@xchapter7x xchapter7x deleted the feature/bootstrap-cli branch October 9, 2020 13:15
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.

Create a CLI command to search through repositories
2 participants