-
Notifications
You must be signed in to change notification settings - Fork 263
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
Change "get" to "list" #128
Comments
FYI, we already had the reverse discussion starting at #48 (comment) and decided in the WG meeting on 2019-04-23 to go with We can revisit this decision, but at the moment |
I wouldn't compare things to kubectl since kubectl is kind of odd in this respect. Sometimes it GETs a single thing, sometimes it GETs multiple - then add in the optional "s" at the end of the resource type - and I wouldn't call it the most UX-friendly. I view |
I went now back and forth with this UX issue, and I tend to agree with @duglin Although I still think that the 'principle of least suprise' is still a good thing, I'm by no means sure anymore whether it applies to kubectl vs. kn:
As I had now the chance to play around quite a bit with kn, I'd like to make the following suggestion for a kind of compromise, but still with a clear theme:
My feeling is that these three read-only commands would cover all use cases (searching/listing, getting a json for scripting, human readable output in different flavors) in a nicely separated way. Wdyt ? Would it be worth to reconsider our initial decision to |
No surprise :-) but I agree with the "list" and "get" parts. I'm not as sure about the "show" one because that feels like a variant of "get", just with a different output format. So, I'd opt to assume humans are our first set of users and that means btw, I think this same type of flag on |
IMO, we should keep only two verbs for readonly listing of resources,
|
|
The command line we're building is primarily for humans, and there's always -o yaml if you're a robot.
I too find myself annoyed by typing get when I mean list. I'm for changing it back.
… On Jun 11, 2019, at 1:58 PM, Evan Anderson ***@***.***> wrote:
list also needs a human-readable output (e.g. a tabular format).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
thanks y'all! |
* Add wait for app to be routable function in library * Add function documentation * Make log statements better * Nuke stderr * Assorted nits * indentation, punctuation, linefeeds * add log message about what the function is doing * use the same loop pattern as the other functions
Proposal: change
get
tolist
When people want to list the set of services running I think
kn service list
is more natural for people. I know this is more of a personal preference kind of thing, especially when you consider thatkubectl
actually usesget
for both (lists and singular), but if you think about how all of thekn service
verbs act on a single instance of a service,get
would therefore imply "get me info about A service". While, the wordlist
more naturally implies you want a "list" of something back.... in this case services.Net: change it to:
kn service list
to see all services.Same should apply to the other nouns as well.
The text was updated successfully, but these errors were encountered: