Ian Howell
becd53903c
Send the settings into each command.
...
This will allows external commands to be able to see internal settings.
This will be important when more commands begin to need shared settings,
e.g. kubernetes configuration
This also has the downside of causing a compatibility issue - backwards
compatibility changes to AirshipCTLSettings will need to wait for each
major version upgrade
2019-05-21 11:04:05 -05:00
Ian Howell
d75fac8e35
Fix a bug where command line arguments weren't being parsed on time
2019-05-21 10:26:08 -05:00
Ian Howell
3329e193d0
Move workflow to its own package
...
This causes the workflow command to have the same capabilities and
restrictions as any other plugin.
2019-05-21 10:16:38 -05:00
Ian Howell
09f1995485
Merge pull request #3 from alanmeadows/ns_fix
...
Ensure workflow list leverages persistent namespace flag
2019-05-21 09:53:54 -05:00
Alan Meadows
91437a8041
Ensure workflow list leverages persistent namespace flag
2019-05-20 14:45:30 -07:00
Ian Howell
357e371fa7
Add the workflow init command
2019-05-20 16:00:11 -05:00
Ian Howell
3566507284
Remove useless build flag
2019-05-17 15:57:56 -05:00
Ian Howell
7a79b7c206
Begin working on cleaning up the workflow command
2019-05-17 14:41:31 -05:00
Ian Howell
7a58b57b22
Remove the silly line length linter
2019-05-17 14:41:12 -05:00
Ian Howell
34d0ff7e4d
Remove dead code related to old plugin method
2019-05-17 14:37:30 -05:00
Ian Howell
c89bd79342
Move exampleCommand to its own project
2019-05-17 11:15:39 -05:00
Ian Howell
863f195066
Update the Dockerfile to account for static builds
2019-05-17 10:19:58 -05:00
Ian Howell
714f9ecf6e
Static compilation :)
2019-05-17 10:19:38 -05:00
Ian Howell
b5de5bf967
Change to "compile-in" plugins
...
Move away from the builtin 'plugin' package in favor of compile-in
plugins. This will require a plugin author to inject code into the
proper packages before building airshipctl
2019-05-17 09:23:30 -05:00
Ian Howell
f76eb8e027
Add a bin packer
2019-05-15 16:10:50 -05:00
Ian Howell
6f6abb3b36
Remove bogus test files
2019-05-15 10:42:20 -05:00
Ian Howell
a72cd0e486
Add overall coverage to report
2019-05-14 13:00:06 -05:00
Ian Howell
f3fa2b6bd2
Test plugins from rootCommand
2019-05-14 12:55:52 -05:00
Ian Howell
6f879da587
Separate plugins from airshipctl
2019-05-14 12:02:51 -05:00
Ian Howell
df6b11515b
Move kubernetes client processes into plugins
2019-05-13 12:03:25 -05:00
Ian Howell
35ed575fbc
Move workflow to plugins
2019-05-10 08:23:59 -05:00
Ian Howell
5b1060842c
Add initial workflow command
2019-05-09 12:39:12 -05:00
Ian Howell
418098d006
Use More Quotes
2019-05-08 16:20:50 -05:00
Ian Howell
85924f6381
Don't error out when no kubernetes client is found
2019-05-07 13:02:18 -05:00
Ian Howell
7a34fd98d9
Change airshipadm to airshipctl
2019-05-07 10:07:54 -05:00
Ian Howell
2880bea640
Add coverage checks
2019-05-07 10:00:07 -05:00
Ian Howell
b019ba757f
Add checks for readable kube config
2019-05-06 13:58:58 -05:00
Ian Howell
5e9a4029ec
Remove panics and make all errors flow to the top
2019-05-06 08:58:16 -05:00
Ian Howell
7e2609d1e8
Add logging
2019-05-03 13:20:38 -05:00
Ian Howell
c875ad0c9f
Fix a bug where flags weren't being parsed
2019-05-03 13:04:00 -05:00
Ian Howell
a5e6ea852e
Align version outputs
2019-05-03 12:02:27 -05:00
Ian Howell
c29ad8a23f
Use the kubernetes Interface
...
This simplifies testing
2019-05-02 11:37:20 -05:00
Ian Howell
d8f3a2377a
Remove dead code
2019-05-02 10:01:33 -05:00
Ian Howell
b672281dcf
Clean up how settings are handled
2019-05-02 09:15:32 -05:00
Ian Howell
d26c6c76a1
Update the way golden files are updated
2019-05-01 16:56:42 -05:00
Ian Howell
131355333a
Add unit test for root
2019-05-01 15:36:58 -05:00
Ian Howell
2bab338af4
Fix a bug in error output when golden file doesn't match
2019-05-01 15:35:31 -05:00
Ian Howell
15678c7fc6
Add Settings object
2019-05-01 15:25:56 -05:00
Ian Howell
97280aa62d
Fix linting issues
2019-05-01 12:27:03 -05:00
Ian Howell
1d624fb05f
Add a linter
2019-05-01 12:26:51 -05:00
Ian Howell
382c9094e5
Add a rudimentary dockerfile
2019-04-29 14:07:09 -05:00
Ian Howell
46f3162ac1
Add initial unit tests
2019-04-29 13:35:13 -05:00
Ian Howell
001eed5836
This adds a writer to redirect output
...
also gofmt'ed
2019-04-29 12:05:21 -05:00
Ian Howell
248f694740
Fix testing in makefile
2019-04-26 15:43:23 -05:00
Ian Howell
94de6972dd
Add a gitignore
2019-04-26 11:37:03 -05:00
Ian Howell
e0c7746d62
Rudimentary makefile
2019-04-26 11:33:16 -05:00
Ian Howell
aca295f93a
Project structure update
2019-04-26 10:39:04 -05:00
Ian Howell
0c3ce37dba
Switch to a go builtin
2019-04-26 09:18:13 -05:00
Ian Howell
58b7abfb79
This creates the pkg directory and begins filling it
...
The majority of the code needs a place to live that's separate from
logic for the commands
2019-04-25 15:55:10 -05:00
Ian Howell
ee9e6414bd
Add airshipadm root command and starter commands
...
This commit adds the root command as well as the kubernetes and workflow
subcommands
2019-04-22 15:45:32 -05:00