Documentation
¶
Index ¶
- Constants
- func CreateFileIfNotFound(configPath string) error
- func GetCarriageReturn() string
- func NewCmdInit(commonOpts *opts.CommonOptions) *cobra.Command
- func SetupGitConfigFile(configPath string, o opts.CommonOptions)
- func WriteStringIfDoesntExist(writeString string, filePath string) bool
- type InitFlags
- type InitOptions
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 GetCarriageReturn ¶
func GetCarriageReturn() string
func NewCmdInit ¶
func NewCmdInit(commonOpts *opts.CommonOptions) *cobra.Command
func SetupGitConfigFile ¶
func SetupGitConfigFile(configPath string, o opts.CommonOptions)
func WriteStringIfDoesntExist ¶
Writes a string to a file and returns whether or not it did exist
Types ¶
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
Click to show internal directories.
Click to hide internal directories.