cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const APP = "bb"

Variables

View Source
var VERSION = "0.1.0"

VERSION is the version of this application

Functions

func Execute

func Execute(context context.Context) error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Version

func Version() string

Version gets the current version of the application

Types

type RootOptions

type RootOptions struct {
	ConfigFile     string `mapstructure:"-"`
	LogDestination string `mapstructure:"-"`
	ProfileName    string `mapstructure:"-"`
	Verbose        bool   `mapstructure:"-"`
	Debug          bool   `mapstructure:"-"`
}

RootOptions describes the options for the application

var CmdOptions RootOptions

CmdOptions contains the options for the application

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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