Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add new binary: ignited #264

Merged
merged 10 commits into from
Aug 1, 2019
Merged

Add new binary: ignited #264

merged 10 commits into from
Aug 1, 2019

Conversation

luxas
Copy link
Contributor

@luxas luxas commented Aug 1, 2019

Fixes: #254
Related to #33 and #24

@luxas luxas added this to the v0.5.0 milestone Aug 1, 2019
@luxas luxas added kind/refactor Categorizes issue or PR as related to refactoring code. area/UX Let's make Ignite's UX great! labels Aug 1, 2019
Copy link
Contributor

@twelho twelho left a comment

Choose a reason for hiding this comment

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

Great work! ✨
One typo (which is hard to remember to fix later), otherwise LGTM 👍


// AddQuietFlag adds the quiet flag to a flagset
func AddQuietFlag(fs *pflag.FlagSet) {
fs.BoolVarP(&logs.Quiet, "quiet", "q", logs.Quiet, "The quiet mode allows for machine-parsable output, by printing only IDs")
Copy link
Contributor

Choose a reason for hiding this comment

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

Redundant comma

)

var logLevel = logrus.InfoLevel

// NewIgniteCommand returns the root command for ignite
func NewIgniteCommand(in io.Reader, out, err io.Writer) *cobra.Command {
// Set the default logging level
logs.Logger.SetLevel(logLevel)
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the flag based log level is set somewhere now that PersistentPreRun is removed?

@luxas
Copy link
Contributor Author

luxas commented Aug 1, 2019

Fixed the review comments, merging...

@luxas luxas merged commit cd67a10 into weaveworks:master Aug 1, 2019
@luxas luxas added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/UX Let's make Ignite's UX great! kind/feature Categorizes issue or PR as related to a new feature. kind/refactor Categorizes issue or PR as related to refactoring code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split out ignite gitops and ignite daemon to a new binary: ignited
2 participants