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 -o short option for argocli get command #3090

Closed
ljk662 opened this issue May 22, 2020 · 4 comments · Fixed by #5533
Closed

Add -o short option for argocli get command #3090

ljk662 opened this issue May 22, 2020 · 4 comments · Fixed by #5533
Labels
good first issue Good for newcomers type/feature Feature request

Comments

@ljk662
Copy link

ljk662 commented May 22, 2020

Summary

What change you think needs making.

I want a status message that is small enough to pull out and send in a slack attachment. Some of the general info template/pod-name is not needed for a quick summary report.

Please give examples of your use case, e.g. when would you use this.

When I want a short summary to glance at for recurring jobs.

How do you think this should be implemented?

It's a pretty simple enhancement. A few additional if conditions to check for short where we check for if getArgs.output == "wide".


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

@ljk662 ljk662 added the type/feature Feature request label May 22, 2020
@alexec alexec added help wanted good first issue Good for newcomers labels May 22, 2020
@ljk662
Copy link
Author

ljk662 commented May 22, 2020

@alexec I've already implemented this on my fork (It was a good first issue :) ) . Since it seems this is something you are interested in I will make the PR now

@sanoojm
Copy link
Contributor

sanoojm commented Oct 1, 2020

@alexec Since there is no update on this for a while, i will work on this as a part of hacktoberfest.

@sanoojm
Copy link
Contributor

sanoojm commented Oct 3, 2020

@alexec What would be an ideal output for -o short? Kubectl "get" option generally gives "Name, Status, Age". Will that suffice here?

@sanoojm
Copy link
Contributor

sanoojm commented Oct 3, 2020

Is this a desirable output?

$ ./dist/argo get whalesay-dt5sj -o short
  STEP               TEMPLATE  PODNAME         DURATION  MESSAGE
  ✔ whalesay-dt5sj  whalesay  whalesay-dt5sj  3m          
$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type/feature Feature request
Projects
None yet
3 participants