cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "bbctl",
	Short: "CLI tool for Bitbucket repositories management",
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		var err error
		utils.Cfg, err = utils.LoadConfig()
		if err != nil {
			return err
		}

		level := slog.LevelInfo
		if utils.Debug {
			level = slog.LevelDebug
		}
		utils.Logger = slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: level}))
		return nil
	},
}

Functions

func Execute added in v0.2.0

func Execute()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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