Versions in this module Expand all Collapse all v1 v1.0.0 Dec 12, 2025 Changes in this version + var CancelError = errors.New("CancelError") + var PendingError = errors.New("PendingError") + var SilentError = errors.New("SilentError") + func AddFormatFlags(cmd *cobra.Command, exportTarget *Exporter) + func AddGroup(parent *cobra.Command, title string, cmds ...*cobra.Command) + func AddJSONFlags(cmd *cobra.Command, exportTarget *Exporter, fields []string) + func AddJSONFlagsWithoutShorthand(cmd *cobra.Command, exportTarget *Exporter, fields []string) + func CheckAuth(cfg gh.Config) bool + func DetermineEditor(cf func() (gh.Config, error)) (string, error) + func DisableAuthCheck(cmd *cobra.Command) + func DisableAuthCheckFlag(flag *pflag.Flag) + func EnableRepoOverride(cmd *cobra.Command, f *Factory) + func ExactArgs(n int, msg string) cobra.PositionalArgs + func FlagErrorWrap(err error) error + func FlagErrorf(format string, args ...interface{}) error + func GlobPaths(patterns []string) ([]string, error) + func IsAuthCheckEnabled(cmd *cobra.Command) bool + func IsUserCancellation(err error) bool + func MinimumArgs(n int, msg string) cobra.PositionalArgs + func MutuallyExclusive(message string, conditions ...bool) error + func NewJSONExporter() *jsonExporter + func NilBoolFlag(cmd *cobra.Command, p **bool, name string, shorthand string, usage string) *pflag.Flag + func NilStringFlag(cmd *cobra.Command, p **string, name string, shorthand string, usage string) *pflag.Flag + func NoArgsQuoteReminder(cmd *cobra.Command, args []string) error + func OverrideBaseRepoFunc(f *Factory, override string) func() (bbrepo.Interface, error) + func Partition[T any](slice []T, predicate func(T) bool) ([]T, []T) + func ReadFile(filename string, stdin io.ReadCloser) ([]byte, error) + func RegisterBranchCompletionFlags(gitc gitClient, cmd *cobra.Command, flags ...string) error + func StringEnumFlag(cmd *cobra.Command, p *string, name, shorthand, defaultValue string, ...) *pflag.Flag + func StringSliceEnumFlag(cmd *cobra.Command, p *[]string, name, shorthand string, ...) *pflag.Flag + func StructExportData(s interface{}, fields []string) map[string]interface + type Exporter interface + Fields func() []string + Write func(io *iostreams.IOStreams, data interface{}) error + type Factory struct + AppVersion string + BaseRepo func() (bbrepo.Interface, error) + Branch func() (string, error) + Browser browser.Browser + Config func() (gh.Config, error) + ExecutableName string + GitClient *git.Client + HttpClient func() (*http.Client, error) + IOStreams *iostreams.IOStreams + PlainHttpClient func() (*http.Client, error) + Prompter prompter.Prompter + Remotes func() (context.Remotes, error) + func (f *Factory) Executable() string + type FlagError struct + func (fe *FlagError) Error() string + func (fe *FlagError) Unwrap() error + type JSONFlagError struct + type NoResultsError struct + func NewNoResultsError(message string) NoResultsError + func (e NoResultsError) Error() string