global

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PkgBasePath = "ghcr.io/selefra/postgre_"
View Source
const PkgTag = ":latest"

Variables

View Source
var SERVER = "main-api.selefra.io"

Functions

func Cmd added in v0.0.9

func Cmd() string

func DefaultWrappedInit added in v0.0.9

func DefaultWrappedInit() func(cmd *cobra.Command, args []string)

DefaultWrappedInit is a cobra func that will use default value to init Variable

func Init added in v0.0.9

func Init(cmd string, opts ...Option)

Init the global variables with cmd and some options

func LogLevel added in v0.0.9

func LogLevel() string

func OrgName added in v0.0.9

func OrgName() string

func ProjectName added in v0.0.9

func ProjectName() string

func RelvPrjName added in v0.0.9

func RelvPrjName() string

func SetLogLevel added in v0.0.9

func SetLogLevel(level string)

func SetOrgName added in v0.0.9

func SetOrgName(orgName string)

func SetProjectName added in v0.0.9

func SetProjectName(prjName string)

func SetRelvPrjName added in v0.0.9

func SetRelvPrjName(name string)

func SetStage added in v0.0.9

func SetStage(stage string)

func SetToken added in v0.0.9

func SetToken(token string)

func Stage added in v0.0.9

func Stage() string

func Token added in v0.0.9

func Token() string

func WorkSpace added in v0.0.9

func WorkSpace() string

func WrappedInit added in v0.0.9

func WrappedInit(workspace string) func(cmd *cobra.Command, args []string)

WrappedInit wrapper the Init function to a cobra func

Types

type Option added in v0.0.9

type Option func(variable *Variable)

func WithWorkspace added in v0.0.9

func WithWorkspace(workspace string) Option

type Variable added in v0.0.9

type Variable struct {
	// contains filtered or unexported fields
}

Variable store some global variable

Jump to

Keyboard shortcuts

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