forked from toolshed/abra
refactor: actual context getting
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user