Documentation ¶
Index ¶
- Constants
- Variables
- func Cmd() string
- func DefaultWrappedInit() func(cmd *cobra.Command, args []string)
- func Init(cmd string, opts ...Option)
- func LogLevel() string
- func OrgName() string
- func ProjectName() string
- func RelvPrjName() string
- func SetLogLevel(level string)
- func SetOrgName(orgName string)
- func SetProjectName(prjName string)
- func SetRelvPrjName(name string)
- func SetStage(stage string)
- func SetToken(token string)
- func Stage() string
- func Token() string
- func WorkSpace() string
- func WrappedInit(workspace string) func(cmd *cobra.Command, args []string)
- type Option
- type Variable
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 DefaultWrappedInit ¶ added in v0.0.9
DefaultWrappedInit is a cobra func that will use default value to init Variable
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)
Types ¶
type Option ¶ added in v0.0.9
type Option func(variable *Variable)
func WithWorkspace ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.