5e94050865
refactor: forgot there is a function in docker src
continuous-integration/drone/push Build is passing
2021-07-22 10:19:05 +01:00
fe86b50ee3
refactor: actual context getting
continuous-integration/drone/push Build is passing
2021-07-22 09:51:27 +01:00
29971c36a0
refactor: moved all fatal errors to logrus
...
continuous-integration/drone/push Build is passing
This will allow us to test commands that would normally exit
2021-07-21 09:04:34 +01:00
37c06c82bf
feat: added error to GetContextEndpoint
...
continuous-integration/drone/push Build is passing
this ill make the progam not fail if there is a non-docker swarm context
2021-07-18 06:34:22 +01:00
a2bb0ed027
test: added the first test
...
I am not very good at unit testing but we need to start writing them
2021-07-18 06:31:09 +01:00
38f610bdec
feat: abra server ls
...
continuous-integration/drone/push Build is passing
WE DID IT! The first actual command to be ported.
Code is still a mess in terms of UX but its a milestone!
2021-07-18 04:21:26 +01:00
5e1b076bf9
feat: very basic context management
...
continuous-integration/drone/push Build is passing
Taken from this gist by github.com/agbaraka
https://gist.github.com/agbaraka/654a218f8ea13b3da8a47d47595f5d05
There is no in-built way of dealing with contexts using the golang sdk.
This means we have to make our own Dial helper borrowing from Docker CLI
This means all Docker API calls are made within the ssh connection
This uses `docker system dial-stdio`
2021-07-16 09:32:24 +01:00