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

wsk activation list behavior #119

Open
rabbah opened this issue Mar 14, 2019 · 2 comments
Open

wsk activation list behavior #119

rabbah opened this issue Mar 14, 2019 · 2 comments

Comments

@rabbah
Copy link
Member

rabbah commented Mar 14, 2019

A recent change to the way activations are listed produced two different behaviors.

When there are no activations, the result is this:

> wsk activation list 
activations

and when repeated with activations, the result is this:

>  wsk activation list
Datetime            Activation ID                    Kind                 Start Duration   Status            Entity                                                                                              
2019-03-14 15:25:40 1d11658e3f974e6391658e3f97be63ac nodejs:6             cold  69ms       success           guest/e:0.0.1                                                                                       

@larandersson perhaps we should nuke the naked activations headers when there are no results.

additionally, can we trim the lines so that they don't overflow unnecessarily?

Screen Shot 2019-03-14 at 2 42 42 PM

@larandersson
Copy link
Contributor

larandersson commented Mar 14, 2019

@rabbah I'll have a look on the empty result problem. About the wrapping lines problem, there are not that many columns to work with, but something can be done with Kind, which could be given less space. The Status column is not much to do about (unless we switch to status code instead or reinvent the statuses with shorter options), it's dimensioned according to the maximum width of the various statuses available, and then the Entity column could also be given less space. All of these columns, except Status, are truncated if they exceed the assigned column width- Ther's already code in there that does that, so to fix the problem we need to anwser some questions. First of all, how many characters should we set as a maximum for each line? How many characters for Kind and Entity? What were the settings for your terminal when you ran these tests? What should we use as default?

@mdeuser
Copy link
Contributor

mdeuser commented Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants