You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
listCmd.Flags().StringVar(&opts.owner, "owner", "", "Login of the owner. Use \"@me\" for the current user.")
102
+
listCmd.Flags().StringVar(&opts.owner, "owner", "", "Login of the owner. Use \"@me\" for the current user")
103
+
listCmd.Flags().StringVar(&opts.query, "query", "", `Filter items using the Projects filter syntax, e.g. "assignee:octocat -status:Done"`)
68
104
cmdutil.AddFormatFlags(listCmd, &opts.exporter)
69
105
listCmd.Flags().IntVarP(&opts.limit, "limit", "L", queries.LimitDefault, "Maximum number of items to fetch")
70
106
71
107
returnlistCmd
72
108
}
73
109
74
110
funcrunList(configlistConfig) error {
111
+
ifconfig.opts.query!="" {
112
+
features, err:=config.detector.ProjectFeatures()
113
+
iferr!=nil {
114
+
returnerr
115
+
}
116
+
if!features.ProjectItemQuery {
117
+
returnfmt.Errorf("the `--query` flag is not supported on this GitHub host; most likely you are targeting a version of GHES that does not yet have the query field available")
0 commit comments