-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathagentTask_list.go
More file actions
28 lines (23 loc) · 1 KB
/
agentTask_list.go
File metadata and controls
28 lines (23 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/gh"
"github.com/spf13/cobra"
)
var agentTask_listCmd = &cobra.Command{
Use: "list",
Short: "List agent tasks (preview)",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(agentTask_listCmd).Standalone()
agentTask_listCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
agentTask_listCmd.Flags().StringSlice("json", nil, "Output JSON with the specified `fields`")
agentTask_listCmd.Flags().StringP("limit", "L", "", "Maximum number of agent tasks to fetch")
agentTask_listCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
agentTask_listCmd.Flags().BoolP("web", "w", false, "Open agent tasks in the browser")
agentTaskCmd.AddCommand(agentTask_listCmd)
carapace.Gen(agentTask_listCmd).FlagCompletion(carapace.ActionMap{
"json": gh.ActionSessionFields().UniqueList(","),
})
}