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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.