forked from toolshed/abra
		
	refactor: use cli context vs creating new one
This commit is contained in:
		| @ -1,7 +1,6 @@ | ||||
| package app | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"fmt" | ||||
|  | ||||
| 	"coopcloud.tech/abra/cli/internal" | ||||
| @ -24,14 +23,13 @@ volumes as eligiblef or pruning once undeployed. | ||||
| 	Action: func(c *cli.Context) error { | ||||
| 		app := internal.ValidateApp(c) | ||||
|  | ||||
| 		ctx := context.Background() | ||||
| 		cl, err := client.New(app.Server) | ||||
| 		if err != nil { | ||||
| 			logrus.Fatal(err) | ||||
| 		} | ||||
|  | ||||
| 		rmOpts := stack.Remove{Namespaces: []string{app.StackName()}} | ||||
| 		if err := stack.RunRemove(ctx, cl, rmOpts); err != nil { | ||||
| 		if err := stack.RunRemove(c.Context, cl, rmOpts); err != nil { | ||||
| 			logrus.Fatal(err) | ||||
| 		} | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user