15 Commits

Author SHA1 Message Date
Ruslan Aliev
abd1317566 Refactor airshipctl root command
As part of config refactoring process, we have to prepare root
level command to future changes, optimize function signatures
and its logic.

Change-Id: I563a7556ce1cca795a74cf2c6a26380467a15a5d
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #327
2020-08-25 17:37:19 -05:00
Matt McEuen
86f3b9ffc7 Write cli errors to stderr
This explicitly writes errors to stderr, for the benefit of the
document plugin subcommand.  This is needed so that errors are displayed
to end users of kustomize, and can be used to debug manifest issues.
When sent to stdout, the error message gets swallowed/hidden by kustomize.

Change-Id: I49b668e5e71fbe4662fe3aec7bad4ebccadebd64
2020-05-11 14:02:33 -05:00
Yasin, Siraj (SY495P)
c25d223c7b Add copyright for missing files
* added license templates for go, bash & yaml in tools dir
* added a script that will add license information for all
    missing files. Type:  go, yaml, yml, sh
* skip adding license for all files within testdata
* Syntax:
   > ./tools/add_license.sh

* Skip license for manifests folder
* Added one extra line after licene for yaml files
* Added License after Hashbang for bash.
* Add an extra line after hashbang and before license
* Updated the go template to use multiline comments

New Files:
  1. tools/add_license.sh
  2. tools/license_go.txt
  3. tools/license_yaml.txt
  4. tools/license_bash.txt

Change-Id: Ia4da5b261e7cd518d446896b72c810421877472a
Realtes-To:#147
2020-04-09 08:35:59 -05:00
Ian Howell
6e41a56a7d Rename module to reflect its new location
Change-Id: I5c8c524c4d3f569b21b5b829722b3c49952cb0ab
2019-07-01 12:15:29 -05:00
Ian Howell
236274eef1 Add a convenience NewAirshipCTLCommand function
This adds the NewAirshipCTLCommand, a function which returns the root
airshipctl command with all of the default plugins preloaded
2019-06-07 14:06:37 -05:00
Ian Howell
cbd1e048c9 Move the client objects out of the settings objects
* This also modifies the way that logging is handled
2019-06-06 10:57:33 -05:00
Ian Howell
42ace4fd46 Fix an issue causing command line args to be parsed too late 2019-05-30 09:54:26 -05:00
Ian Howell
19461dc1bf Add the AddDefaultCommands function 2019-05-29 08:48:05 -05:00
Ian Howell
19f28e278b Cleanup how settings are passed 2019-05-24 15:38:59 -05:00
Ian Howell
33fecc360b Overhaul for plugin system 2019-05-23 14:34:28 -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
7a34fd98d9 Change airshipadm to airshipctl 2019-05-07 10:07:54 -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
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