Help us shape the future of Go! Take the 2026 Go Developer Survey

close

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package close implements the issue close command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdClose

func NewCmdClose(f *cmdutil.Factory, runF func(*CloseOptions) error) *cobra.Command

NewCmdClose creates the close command

Types

type CloseOptions

type CloseOptions struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)
	BaseRepo   func() (string, error)

	// Arguments
	Repository string
	Number     int

	// Flags
	Comment string
	Yes     bool
	JSON    bool
}

type CloseResult added in v0.5.0

type CloseResult struct {
	Number  int    `json:"number"`
	State   string `json:"state"`
	Owner   string `json:"owner"`
	Repo    string `json:"repo"`
	URL     string `json:"url"`
	Comment string `json:"comment,omitempty"`
}

CloseResult represents the JSON output for issue close

Source Files

  • close.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL