cmd

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

CheckErr will print error message to stderr and exit with code 1

func CheckProject

func CheckProject(projectName string)

CheckProject will check project name is not empty

func Contains added in v0.8.2

func Contains(s []string, str string) bool

Contains will check if a string is present in a slice ignoring case

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func LongUsage

func LongUsage(s string) string

LongUsage is helper for print long usage

func SaveConfig

func SaveConfig()

SaveConfig will save config and reload to config

Types

type Config

type Config struct {
	WorkDir        string `yaml:"workdir"`
	CurrentProject string `yaml:"currentproject"`
}

Config store settings

Jump to

Keyboard shortcuts

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