0
0
forked from toolshed/abra

refactor: actual context getting

This commit is contained in:
2021-07-22 09:51:27 +01:00
parent a4a8997f57
commit fe86b50ee3
2 changed files with 29 additions and 5 deletions

View File

@ -97,8 +97,10 @@ var appPsCommand = &cli.Command{
Name: "ps",
Action: func(c *cli.Context) error {
ctx := context.Background()
fmt.Println(Context)
cl := client.NewClientWithContext(Context)
cl, err := client.NewClientWithContext(Context)
if err != nil {
logrus.Fatal(err)
}
tasks, err := cl.TaskList(ctx, types.TaskListOptions{})
if err != nil {
logrus.Fatal(err)