Skip to content

Commit

Permalink
Merge pull request #2169 from rsteube/gh-updates-v2.42.0
Browse files Browse the repository at this point in the history
gh: updates from v2.42.0
  • Loading branch information
rsteube authored Jan 11, 2024
2 parents 415fe79 + 93c2c4a commit 1eec5e1
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 1 deletion.
4 changes: 3 additions & 1 deletion completers/gh_completer/cmd/project_close.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ var project_closeCmd = &cobra.Command{
func init() {
carapace.Gen(project_closeCmd).Standalone()

project_closeCmd.Flags().String("format", "", "Output format, must be 'json'")
project_closeCmd.Flags().String("format", "", "Output format: {json}")
project_closeCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_closeCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_closeCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_closeCmd.Flags().Bool("undo", false, "Reopen a closed project")
projectCmd.AddCommand(project_closeCmd)

Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ func init() {

project_copyCmd.Flags().Bool("drafts", false, "Include draft issues when copying")
project_copyCmd.Flags().String("format", "", "Output format: {json}")
project_copyCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_copyCmd.Flags().String("source-owner", "", "Login of the source owner. Use \"@me\" for the current user.")
project_copyCmd.Flags().String("target-owner", "", "Login of the target owner. Use \"@me\" for the current user.")
project_copyCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_copyCmd.Flags().String("title", "", "Title for the new project")
project_copyCmd.MarkFlagRequired("title")
projectCmd.AddCommand(project_copyCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func init() {
carapace.Gen(project_createCmd).Standalone()

project_createCmd.Flags().String("format", "", "Output format: {json}")
project_createCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_createCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_createCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_createCmd.Flags().String("title", "", "Title for the project")
project_createCmd.MarkFlagRequired("title")
projectCmd.AddCommand(project_createCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func init() {
carapace.Gen(project_deleteCmd).Standalone()

project_deleteCmd.Flags().String("format", "", "Output format: {json}")
project_deleteCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_deleteCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_deleteCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
projectCmd.AddCommand(project_deleteCmd)

carapace.Gen(project_deleteCmd).FlagCompletion(carapace.ActionMap{
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ func init() {

project_editCmd.Flags().StringP("description", "d", "", "New description of the project")
project_editCmd.Flags().String("format", "", "Output format: {json}")
project_editCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_editCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_editCmd.Flags().String("readme", "", "New readme for the project")
project_editCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_editCmd.Flags().String("title", "", "New title for the project")
project_editCmd.Flags().String("visibility", "", "Change project visibility: {PUBLIC|PRIVATE}")
projectCmd.AddCommand(project_editCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_fieldCreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ func init() {

project_fieldCreateCmd.Flags().String("data-type", "", "DataType of the new field.: {TEXT|SINGLE_SELECT|DATE|NUMBER}")
project_fieldCreateCmd.Flags().String("format", "", "Output format: {json}")
project_fieldCreateCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_fieldCreateCmd.Flags().String("name", "", "Name of the new field")
project_fieldCreateCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_fieldCreateCmd.Flags().StringSlice("single-select-options", []string{}, "Options for SINGLE_SELECT data type")
project_fieldCreateCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_fieldCreateCmd.MarkFlagRequired("data-type")
project_fieldCreateCmd.MarkFlagRequired("name")
projectCmd.AddCommand(project_fieldCreateCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_fieldDelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func init() {

project_fieldDeleteCmd.Flags().String("format", "", "Output format: {json}")
project_fieldDeleteCmd.Flags().String("id", "", "ID of the field to delete")
project_fieldDeleteCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_fieldDeleteCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_fieldDeleteCmd.MarkFlagRequired("id")
projectCmd.AddCommand(project_fieldDeleteCmd)

Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_fieldList.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ func init() {
carapace.Gen(project_fieldListCmd).Standalone()

project_fieldListCmd.Flags().String("format", "", "Output format: {json}")
project_fieldListCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_fieldListCmd.Flags().StringP("limit", "L", "", "Maximum number of fields to fetch")
project_fieldListCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_fieldListCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
projectCmd.AddCommand(project_fieldListCmd)

carapace.Gen(project_fieldListCmd).FlagCompletion(carapace.ActionMap{
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemAdd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func init() {
carapace.Gen(project_itemAddCmd).Standalone()

project_itemAddCmd.Flags().String("format", "", "Output format: {json}")
project_itemAddCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemAddCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_itemAddCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_itemAddCmd.Flags().String("url", "", "URL of the issue or pull request to add to the project")
project_itemAddCmd.MarkFlagRequired("url")
projectCmd.AddCommand(project_itemAddCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemArchive.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func init() {

project_itemArchiveCmd.Flags().String("format", "", "Output format: {json}")
project_itemArchiveCmd.Flags().String("id", "", "ID of the item to archive")
project_itemArchiveCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemArchiveCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_itemArchiveCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_itemArchiveCmd.Flags().Bool("undo", false, "Unarchive an item")
project_itemArchiveCmd.MarkFlagRequired("id")
projectCmd.AddCommand(project_itemArchiveCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemCreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ func init() {

project_itemCreateCmd.Flags().String("body", "", "Body for the draft issue")
project_itemCreateCmd.Flags().String("format", "", "Output format: {json}")
project_itemCreateCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemCreateCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_itemCreateCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_itemCreateCmd.Flags().String("title", "", "Title for the draft issue")
project_itemCreateCmd.MarkFlagRequired("title")
projectCmd.AddCommand(project_itemCreateCmd)
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemDelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func init() {

project_itemDeleteCmd.Flags().String("format", "", "Output format: {json}")
project_itemDeleteCmd.Flags().String("id", "", "ID of the item to delete")
project_itemDeleteCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemDeleteCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_itemDeleteCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_itemDeleteCmd.MarkFlagRequired("id")
projectCmd.AddCommand(project_itemDeleteCmd)

Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemEdit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ func init() {
project_itemEditCmd.Flags().String("format", "", "Output format: {json}")
project_itemEditCmd.Flags().String("id", "", "ID of the item to edit")
project_itemEditCmd.Flags().String("iteration-id", "", "ID of the iteration value to set on the field")
project_itemEditCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemEditCmd.Flags().String("number", "", "Number value for the field")
project_itemEditCmd.Flags().String("project-id", "", "ID of the project to which the field belongs to")
project_itemEditCmd.Flags().String("single-select-option-id", "", "ID of the single select option value to set on the field")
project_itemEditCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_itemEditCmd.Flags().String("text", "", "Text value for the field")
project_itemEditCmd.Flags().String("title", "", "Title of the draft issue item")
project_itemEditCmd.MarkFlagRequired("id")
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_itemList.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ func init() {
carapace.Gen(project_itemListCmd).Standalone()

project_itemListCmd.Flags().String("format", "", "Output format: {json}")
project_itemListCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_itemListCmd.Flags().StringP("limit", "L", "", "Maximum number of items to fetch")
project_itemListCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_itemListCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
projectCmd.AddCommand(project_itemListCmd)

carapace.Gen(project_itemListCmd).FlagCompletion(carapace.ActionMap{
Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ func init() {

project_listCmd.Flags().Bool("closed", false, "Include closed projects")
project_listCmd.Flags().String("format", "", "Output format: {json}")
project_listCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_listCmd.Flags().StringP("limit", "L", "", "Maximum number of projects to fetch")
project_listCmd.Flags().String("owner", "", "Login of the owner")
project_listCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_listCmd.Flags().BoolP("web", "w", false, "Open projects list in the browser")
projectCmd.AddCommand(project_listCmd)

Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_markTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func init() {
carapace.Gen(project_markTemplateCmd).Standalone()

project_markTemplateCmd.Flags().String("format", "", "Output format: {json}")
project_markTemplateCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_markTemplateCmd.Flags().String("owner", "", "Login of the org owner.")
project_markTemplateCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_markTemplateCmd.Flags().Bool("undo", false, "Unmark the project as a template.")
projectCmd.AddCommand(project_markTemplateCmd)

Expand Down
2 changes: 2 additions & 0 deletions completers/gh_completer/cmd/project_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func init() {
carapace.Gen(project_viewCmd).Standalone()

project_viewCmd.Flags().String("format", "", "Output format: {json}")
project_viewCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`")
project_viewCmd.Flags().String("owner", "", "Login of the owner. Use \"@me\" for the current user.")
project_viewCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"")
project_viewCmd.Flags().BoolP("web", "w", false, "Open a project in the browser")
projectCmd.AddCommand(project_viewCmd)

Expand Down

0 comments on commit 1eec5e1

Please sign in to comment.