Rename "server" subcommand to "swarm"? #92
Labels
No Label
breaking-change
bug
CI/CD
design
documentation
duplicate
enhancement
help wanted
invalid
plugin
question
secrets
shell-completion
versioning
wontfix
No Milestone
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#92
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?
@kawaiipunk was suggesting
swarm
might be clearer thanserver
, particularly in the context of "upgrade--all
on the X".It's a fair point that the
server
commands currently expect to start with aserver init
, which really init's a swarm rather than the server itself,server rm
removes the Docker context not the actual VPS,server apps
lists the swarm apps. So I thinkswarm
is maybe more precise.The advantage of
server
(and downside ofswarm
) seems to be that it's more familiar. I also wonder ifswarm
might suggest multiple server nodes to people, which is only not required for Co-op Cloud, but not tested yet.Hmmmm fair enough.
Given thoughts over here (
abra server new --provider=hetzner
) which will actually create a new VPS, I guess we're running into a naming issue.Maybe we need to break down into more specifics on some of these commands.
abra server init
could beabra network init
andabra server rm
could beabra app <app> config rm
(meaning we'd need to move toabra app <app> config edit
?)?I'm a bit uneasy with the "swarm" usage since Docker already uses that but "server" is wildly overloaded so I guess I am fine with a switch. As long as we have some documentation on what we mean by "server"/"swarm" (a collection of apps?).
Thoses are the thoughts.
Excellent thoughts!
I think the goal with this suggestion is to use "swarm" the same way Docker does, and "server" where it uses "host":
abra server new ...
would create a server.abra swarm init
initialises a swarm.abra swarm ls
lists the apps on a swarm.I feel conflicted; I get where @kawaiipunk is coming from that overloading "server" to also mean "Docker stuff on the server" is confusing. I'm also not wild about introducing another separate noun to the existing "app"/"server", which seemed like a pretty excellent and minimal amount of cognitive overhead.
Interesting stuff. Clarifying what's being
rm
'd seems very useful. AFAIKabra server rm
removes the local server config, I think what you're suggesting asabra app <app> config rm
is currentlyabra app <app> rm
?I'm in favour of
swarm
but don't feel strongly.We won't be making this change here anymore but we might make that over in
go-abra
so I've opened up coop-cloud/go-abra#13. Will close.