Add godoc comments to exported symbols in remaining packages

Add documentation comments to exported symbols across all remaining
smaller packages including cmd/gen-docs, context, internal/browser,
internal/gh, internal/ghcmd, internal/ghinstance, internal/ghrepo,
internal/keyring, internal/run, internal/safepaths, internal/tableprinter,
internal/text, internal/update, pkg/cmd/accessibility, pkg/cmd/actions,
pkg/cmd/alias, pkg/cmd/api, pkg/cmd/browse, pkg/cmd/cache,
pkg/cmd/completion, pkg/cmd/copilot, pkg/cmd/factory, pkg/cmd/gpg-key,
pkg/cmd/label, pkg/cmd/licenses, pkg/cmd/org, pkg/cmd/preview,
pkg/cmd/ssh-key, pkg/cmd/version, pkg/extensions, pkg/jsoncolor,
pkg/markdown, pkg/option, pkg/set, pkg/ssh, pkg/surveyext, test,
internal/authflow, and utils.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-03-04 16:14:20 -07:00
parent df295a1dba
commit b8ee5c5eba
66 changed files with 178 additions and 0 deletions

View file

@ -14,13 +14,17 @@ import (
ghConfig "github.com/cli/go-gh/v2/pkg/config"
)
// ConfigSource indicates whether a config value was provided by the user or is a default.
type ConfigSource string
const (
// ConfigDefaultProvided indicates the value is a built-in default.
ConfigDefaultProvided ConfigSource = "default"
// ConfigUserProvided indicates the value was explicitly set by the user.
ConfigUserProvided ConfigSource = "user"
)
// ConfigEntry represents a single configuration key-value pair.
type ConfigEntry struct {
Value string
Source ConfigSource

View file

@ -18,6 +18,8 @@ type projectsV1Unsupported struct{}
func (projectsV1Unsupported) sealed() {}
var (
// ProjectsV1Supported indicates the host supports classic projects.
ProjectsV1Supported ProjectsV1Support = projectsV1Supported{}
// ProjectsV1Unsupported indicates the host does not support classic projects.
ProjectsV1Unsupported ProjectsV1Support = projectsV1Unsupported{}
)