Documentation ¶
Index ¶
- Constants
- func ErrorMessage(err error) string
- func FirstError(errors ...error) error
- func IsAlreadyExistsError(err error) bool
- func Pkg(run Run, track tracking.Track, configStore ConfigStore, ui tpkg.UI) (*cobra.Command, error)
- type CobraCommand
- type CobraErrorCommand
- type Config
- type ConfigStore
- type Registries
- type Run
- type WithExitCode
- type WithSilent
Constants ¶
View Source
const ConfigKeyAutosync = "pkg.autosync"
View Source
const ConfigKeyRegistries = "pkg.registries"
Variables ¶
This section is empty.
Functions ¶
func ErrorMessage ¶
func FirstError ¶
func IsAlreadyExistsError ¶
Types ¶
type CobraCommand ¶
func DefaultRunWrapper ¶
func DefaultRunWrapper(f CobraErrorCommand) CobraCommand
type Config ¶
type Config struct { PackageCachePaths []string RegistryCachePaths []string PackageInstallPath *string SDKVersion *version.Version // The following entries must be `nil` if they are not set in the // configuration. // Note that viper changes empty lists to `nil` so it's important to // check for that case. RegistryConfigs tpkg.RegistryConfigs }
type ConfigStore ¶
type Registries ¶
type Registries tpkg.Registries
type Run ¶
type Run func(CobraErrorCommand) CobraCommand
type WithExitCode ¶
type WithExitCode interface {
ExitCode() int
}
type WithSilent ¶
type WithSilent interface {
Silent() bool
}
Click to show internal directories.
Click to hide internal directories.