configure

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigureCmd = &cobra.Command{
	Use:   "configure",
	Short: "configures global settings for bsf",
	Long: `
	`,
	Run: func(cmd *cobra.Command, args []string) {

		_, err := PreCheckConf()
		if err != nil {
			fmt.Println(styles.ErrorStyle.Render("error:", err.Error()))
			os.Exit(1)
		}

	},
}

ConfigureCmd represents the configure command

Functions

func PreCheckConf

func PreCheckConf() (*config.Config, error)

PreCheckConf checks if the ~/.bsf.json file exists and if not creates it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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