underwoodb-sd-ibm commented on issue #2326: Alphabetize listings in CLI
URL: 
https://github.com/apache/incubator-openwhisk/pull/2326#issuecomment-319177053
 
 
   @rabbah, @mdeuser, @dubeejw : I have a suggested change for Alphabetize. 
   
   Currently, to order alphabetically, we use the order flag as a bool: `wsk 
action list --order`. However, with APIs in particular, you have to qualify if 
you want to sort by action name, or by `Base path`/`Rel path`/`Verb`. This 
means an additional flag: either something like `wsk api list --order 
--orderAction`, or `wsk api list --orderAction` for action names, and `wsk api 
list --order` for the normal sorting. 
   
   We think we can get more mileage out of passing a string through the 
`--order` flag instead of it being a bool. Example: `wsk api list --order 
Alpha` or `wsk api list --order A` to sort alphabetically the usual way, versus 
`wsk api list --order AlphaAction` or `wsk api list --order N` to sort 
alphabetically by action name. 
   
   What were your thoughts on this? In particular: is this a good idea, and if 
so, what proper naming convention should we set? This could be beneficial later 
on to have this in place when we want to expand how users could sort a list.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to