Add app names and domains consistently to various abra commands #252
Closed
opened 2021-11-20 14:29:33 +00:00 by kawaiipunk
·
7 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#252
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 psandabra app lsshould show a column with the app name.abra app psshould 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 psif we do this.This will help the user remember app names.
Lovely.
I've attached images of the new
ls/psoutput and commits ref this issue for changes. The screen real estate required for a fullabra app ls --statusis 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 coop-cloud/organising#253 ("App version output could be better"), could
abra app psandabra app versionbe merged? Ispseven 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 psalso.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 lsOk, 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?