Add app names and domains consistently to various abra commands #252
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#252
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the problem to be solved
It's hard to remember all the "app names" and domain for a large number of apps. Sometimes app names are the same as the domain name. Sometimes they're different.
Describe the solution you would like
The output for
abra app ps
andabra app ls
should show a column with the app name.abra app ps
should also show a column with the domain of the app.We'll need to change the name of the "NAMES" column on the current output of
abra app ps
if we do this.This will help the user remember app names.
Lovely.
I've attached images of the new
ls
/ps
output and commits ref this issue for changes. The screen real estate required for a fullabra app ls --status
is quite a lot now though, I do worry. Is this an issue? Forps
, instead of replacing "NAMES" I changed it to "SERVICES" alongside "APP NAME".I am wondering also, in relation to #253 ("App version output could be better"), could
abra app ps
andabra app version
be merged? Isps
even a good name, I wonder? What is important to have shown? My guestimates are: app name, service names (app
,db
, etc.), when created, container uptime, upstream image/tag, recipe version./cc @knoflook @3wordchant
How painful would it be to make the server into a row instead of a column?
Unless someone's using
--type/-t
, they're likely to have several results per server, and that blank space in the left-most column looks like a delicious bit of spaceabra app info
? Agree with your list o' stuff. Wondering about seeing the handy error message that's sometimes indocker ps
also.Oh sheyat yeah that could work but not sure I have the same idea: could you sketch out a quick layout of this new table with the existing columns in the new places? It would be a re-write of the table layout code but I don't think it would be too drastic (if I am following correctly...).
Before:
After:
I wouldn't merge ps and version into one command. They give completely different outputs and are used for different purposes (keeping stuff up to date vs checking health of apps). I like what @3wordchant proposes re:
abra app ls
Ok, fair point on avoiding the merge. I tried to do this row/column transformation but I don't see any handy way to do it. I am not sure what to try next.
what about using fmt.Println to print the server name and then printing the table?