Roxie Gibson
2158dc851c
test: makefile now runs all tests recursively
2021-07-21 08:56:53 +01:00
Roxie Gibson
a36e80db99
fix: fixing domain being required.
...
Fixes gitea issue #5
2021-07-21 08:38:13 +01:00
Roxie Gibson
b0c241ae98
bulid: added build-dev option
...
this otion does no optimisations in the compile (removing debug stuff)
2021-07-21 08:20:17 +01:00
decentral1se
a74d214121
docs: use hyphen shortname and trim message
2021-07-21 00:19:06 +02:00
decentral1se
e064f18730
style: add missing type marker
2021-07-21 00:17:16 +02:00
decentral1se
7b2100c568
feat: add version command
2021-07-20 23:59:47 +02:00
decentral1se
c9ba7aef20
build: reduce binary size with optimisation flags
...
Part of https://git.autonomic.zone/coop-cloud/go-abra/issues/4 .
2021-07-20 22:45:49 +02:00
Roxie Gibson
16514b3151
feat: implemented type & servers flags in `app ls`
2021-07-20 13:00:03 +01:00
decentral1se
635c6d6080
test: integrate new test target into CI build
2021-07-19 15:50:16 +02:00
Roxie Gibson
dee013e4e4
test: added makefile entry for running tests
2021-07-19 14:38:19 +01:00
Roxie Gibson
a60ebf8710
tests: around 60% code coverage for config package
2021-07-19 14:36:00 +01:00
Roxie Gibson
cfe2f70151
refactor: moving logging to command functions
...
easier to unit test our util commands like this
2021-07-19 12:47:46 +01:00
Roxie Gibson
bd9bc530d1
faet: a draft version of the app ls command
2021-07-19 08:37:00 +01:00
Roxie Gibson
f7059dbe98
refactor: filesystem io
2021-07-19 07:04:37 +01:00
Roxie Gibson
8c5e25bd01
chore: updated gitignore; added vscode settings
2021-07-19 06:57:50 +01:00
Roxie Gibson
6caa176308
WIP: Enviroment file loading and config management
2021-07-18 10:49:31 +01:00
Roxie Gibson
7d5db5fee1
docs: updated todo
2021-07-18 06:41:19 +01:00
Roxie Gibson
37c06c82bf
feat: added error to GetContextEndpoint
...
this ill make the progam not fail if there is a non-docker swarm context
2021-07-18 06:34:22 +01:00
Roxie Gibson
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
Roxie Gibson
38f610bdec
feat: abra server ls
...
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
Roxie Gibson
e13948f37e
docs: added todo list for the port
2021-07-18 04:10:14 +01:00
Roxie Gibson
d1f7e8011d
refactor: Moved table function to fornatter
...
Makes more sense for it to be in there
2021-07-18 03:24:48 +01:00
Roxie Gibson
2134f57dd0
WIP: Messy code that is mostly just testing
...
This is me trying to print all services in a stack.
Struggling to isolate stack and tasks which is needed for swarm
2021-07-17 09:30:56 +01:00
Roxie Gibson
6c748922b4
feat: added context flag to make dev easier
...
needed until we have proper server subcommand system
2021-07-17 09:29:25 +01:00
Roxie Gibson
b9e06f2310
feat: added util formatting for the cil
2021-07-17 09:27:52 +01:00
Roxie Gibson
be46695d82
feat: added flags to base command
...
they already exist just attatching them to the command
2021-07-17 05:11:48 +01:00
Roxie Gibson
ae68f3aa95
chore: go mod tidy for dependancy
2021-07-17 04:35:43 +01:00
Roxie Gibson
5e1b076bf9
feat: very basic context management
...
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
decentral1se
c65ae974dd
Add experimental staticcheck into linting CI
...
See https://staticcheck.io for more. This is set to be ignored
on failure so that it doesn't disrupt current work flows but maybe
it is nice to add. Just drop the `ignore: ...` line and it will fail
builds.
2021-07-15 23:57:08 +02:00
decentral1se
9b8f16345c
Add a Go report card badge
2021-07-15 23:35:43 +02:00
decentral1se
4884c14ab3
Can't sort this as VERSION is not defined then
2021-07-15 23:26:47 +02:00
decentral1se
a9d9d9de2f
Silence command echoing to focus output on errors
2021-07-15 23:01:31 +02:00
decentral1se
980f2f7684
Add format and check targets + integrate into CI
2021-07-15 23:00:33 +02:00
decentral1se
3b1dfb7562
Wire up notifications for failures
2021-07-15 22:29:31 +02:00
decentral1se
0a6ffd48cb
Sort vars
2021-07-15 22:27:30 +02:00
decentral1se
567dae83cf
Parametrize the abra path
2021-07-15 22:26:40 +02:00
decentral1se
462a4d296f
Add CI badge and link to OG abra repo
2021-07-15 15:40:29 +02:00
decentral1se
8373dea7fb
Take a stab at a Drone CI/CD build
2021-07-15 15:37:54 +02:00
decentral1se
b13081d1a6
Add build, parametrize LDFLAGS and list all targets
2021-07-15 15:26:02 +02:00
decentral1se
8b38b89647
Ignore built binaries
2021-07-15 15:25:54 +02:00
decentral1se
3a96f48ec5
Merge pull request 'Add install and clean rules to Makefile' ( #1 ) from knoflook/go-abra:main into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/go-abra/pulls/1
2021-07-15 15:07:47 +02:00
knoflook
aa8db280e5
Add install and clean rules to Makefile
2021-07-15 14:19:05 +02:00
Roxie Gibson
a78bb9123a
feat: POC passgen
2021-07-15 08:23:26 +01:00
Roxie Gibson
881ccfd820
chore: added libs i plan to use in future
2021-07-15 08:06:12 +01:00
Roxie Gibson
1adca5ca0e
feat: added app commands and flags for commands
2021-07-15 06:17:47 +01:00
Roxie Gibson
9a0bd6dc11
refactor(cli): moved commands and cli out of main
2021-07-15 03:44:07 +01:00
Roxie Gibson
2aa9029893
chore: added git-chglog options
...
this is for the future to add automated changelogs
2021-07-15 01:18:34 +01:00
Roxie Gibson
a2a836c2a9
feat: added version and makefile
...
makefile allows for package variables to be defined
2021-07-13 23:47:47 +01:00
Roxie Gibson
a7d748cb1f
docs: Added readme explianing the repo
2021-07-13 23:12:56 +01:00
Roxie Gibson
9e52e9f676
Initial Commit
...
Added some cli commands
2021-07-13 22:34:32 +01:00