Simplify fx infra (#485)

* add --host and --kubeconf to `fx up`
* remove `fx infra list` and `fx infra use`
* put assets into skip dir for golangci

* fix lint issue

* upgrade go-ssh-client to consume the 'Connectable' API, enable more
friendly SSH connection error message

* parse 'host' and 'kubeconf' for `fx list` and `fx down` also

* refactor parse

* clean infra stuff
This commit is contained in:
Minghe
2020-03-18 09:00:14 +08:00
committed by GitHub
parent 7df1c64740
commit e712e3d0e2
38 changed files with 513 additions and 2202 deletions

View File

@@ -52,6 +52,7 @@ func (ctx *Context) GetCliContext() *cli.Context {
// Set a value with name
func (ctx *Context) Set(name string, value interface{}) {
// nolint
newCtx := context.WithValue(ctx.Context, name, value)
ctx.Context = newCtx
}