Documentation
¶
Index ¶
- Variables
- func AddCommand(cmds ...*cobra.Command)
- func ConfP(c interface{})
- func Execute(run func(cmd *cobra.Command, args []string))
- func SetConfX(serviceName string, rootDir string, dockerConfig ...DockerConfig)
- func ShouldReplacePath(s string) string
- type Configuration
- type DockerConfig
- type GitlabCIConfig
- type GoConfig
- type Password
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = &Configuration{}
View Source
var RootPath = ""
Functions ¶
func AddCommand ¶
func SetConfX ¶
func SetConfX(serviceName string, rootDir string, dockerConfig ...DockerConfig)
func ShouldReplacePath ¶ added in v0.0.6
Types ¶
type Configuration ¶
type Configuration struct {
*cobra.Command
Feature string
ShouldGenerateConfig bool
// contains filtered or unexported fields
}
func (*Configuration) Initialize ¶
func (conf *Configuration) Initialize()
func (*Configuration) Prefix ¶
func (conf *Configuration) Prefix() string
func (*Configuration) ProjectName ¶
func (conf *Configuration) ProjectName() string
func (*Configuration) ServiceName ¶
func (conf *Configuration) ServiceName() string
func (*Configuration) WorkSpace ¶
func (conf *Configuration) WorkSpace() string
type DockerConfig ¶
type DockerConfig struct {
BuildImage string
RuntimeImage string
GoConfig GoConfig
Openapi bool
GitlabCIConfig GitlabCIConfig
}
type GitlabCIConfig ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.