-
Notifications
You must be signed in to change notification settings - Fork 237
Add features to kpt live status command #3353
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
switch ep.Format { | ||
case printers.EventsPrinter: | ||
_, err := fmt.Printf("%s/%s/%s/%s is %s: %s\n", invName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Printf
prints to os.Stdout
directly. However, the underlying cli-utils
library prints to ioStreams.Out
, which is os.Stdout
in most cases, but it can also be other streams.
I guess we need to wait for @mortent on how to proceed with the deviated fork. If we decide to go with the major changes in the forked cli-utils, it's better to pass along ioStreams
for printing.
@@ -77,7 +73,7 @@ func NewRunner(ctx context.Context, factory util.Factory) *Runner { | |||
"How long to wait before exiting") | |||
c.Flags().BoolVar(&r.list, "list", false, "List status of all packages or not") | |||
c.Flags().StringVar(&r.inventoryNames, "inv-name", "", "names of targeted inventory: inv1,inv2,...") | |||
c.Flags().StringVar(&r.namespaces, "namespace", "", "names of targeted namespaces: ns1,ns2,...") | |||
c.Flags().StringVar(&r.namespaces, "namespaces", "", "names of targeted namespaces: ns1,ns2,...") | |||
c.Flags().StringVar(&r.status, "status", "", "targeted status: st1,st2...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use plural for consistency.
97d0892
to
2644584
Compare
…mespace, and inventory name. Add a new column in table format showing the inventory name.
…ve unused functions and constants.
2644584
to
89975ab
Compare
Is this a dupe of #3345? |
To better support the listing status functionality, the following things are updated: