init

package
v0.0.0-...-cb2bff1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BB_HOME_VAR   = "BB_HOME"
	BB_CONFIG_DIR = "~/.bb"
	CONFIG        = "config.yaml"
)

Variables

This section is empty.

Functions

func CreateFileIfNotFound

func CreateFileIfNotFound(configPath string) error

func GetCarriageReturn

func GetCarriageReturn() string

func NewCmdInit

func NewCmdInit(commonOpts *opts.CommonOptions) *cobra.Command

func SetupGitConfigFile

func SetupGitConfigFile(configPath string, o opts.CommonOptions)

func WriteStringIfDoesntExist

func WriteStringIfDoesntExist(writeString string, filePath string) bool

Writes a string to a file and returns whether or not it did exist

Types

type InitFlags

type InitFlags struct {
	ConfigDir   string
	ProjectsDir string
}

type InitOptions

type InitOptions struct {
	*opts.CommonOptions
	Flags InitFlags
}

func (*InitOptions) AddInitFlags

func (o *InitOptions) AddInitFlags(cmd *cobra.Command)

func (*InitOptions) Run

func (o *InitOptions) Run() error

Jump to

Keyboard shortcuts

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