cfg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSetupCompleted = errors.New("setup already completed")
	ErrSetupFailed    = errors.New("setup failed")
)
View Source
var (
	ConfigurationFile string
)
View Source
var SetupCMD = &cobra.Command{
	Use:   "setup",
	Short: "Setup the CLI tool and install required VSCode extension",
	Long:  `Setup the CLI tool and install required VSCode extension`,
	RunE: func(cmd *cobra.Command, args []string) error {
		err := Setup()
		if errors.Is(err, ErrSetupCompleted) {
			styles.PrintInfo("Setup has already been completed.")
			return nil
		}
		if errors.Is(err, ErrSetupFailed) {
			styles.PrintError("Setup failed. Please try again.")
			return nil
		}
		return err
	},
}

Functions

func IsExtensionInstalled

func IsExtensionInstalled() bool

IsExtensionInstalled checks if the VSCode extension is already installed.

func Load

func Load() (models.Config, error)

func Setup

func Setup() error

Setup initializes the CLI tool with welcome message and extension requirements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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