setup

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VersionCheckEnvVar is the environment variable that disables the version check when set to a truthy value.
	VersionCheckEnvVar = "OCM_DISABLE_VERSION_CHECK"
)

Variables

This section is empty.

Functions

func CredentialGraph

func CredentialGraph(cmd *cobra.Command) error

func FilesystemConfig

func FilesystemConfig(cmd *cobra.Command, opts FilesystemConfigOptions)

FilesystemConfig sets up file system configuration entity.

func OCMConfig

func OCMConfig(cmd *cobra.Command) error

func PluginManager

func PluginManager(cmd *cobra.Command) error

func VersionCheck added in v0.7.0

func VersionCheck(cmd *cobra.Command, currentVersion string)

VersionCheck starts an asynchronous version check and registers a cobra.OnFinalize callback to print the upgrade warning (if applicable) after command execution completes.

The check is skipped entirely when any opt-out mechanism is active or the binary has no build version set. This function is called from PersistentPreRunE, so it runs before every command.

Types

type FilesystemConfigOptions

type FilesystemConfigOptions struct {
	WorkingDirectory string
	TempFolder       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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