Documentation ¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Int(i int) *int
- func LogFail(w io.Writer, str string, function string)
- func LogInfo(w io.Writer, str string, function string)
- func LogSuccess(w io.Writer, str string, function string)
- func String(str string) *string
- func StringSlice(s []string) *[]string
- type IProject
- type Project
- func (proj *Project) AddCodeCov() error
- func (proj *Project) CreateBuildWorkflow() error
- func (proj *Project) CreateReadme() error
- func (proj *Project) CreateReleaseWorkflow() error
- func (proj *Project) GetAuthorEmail() string
- func (proj *Project) GetAuthorName() string
- func (proj *Project) GetAuthorOrganization() string
- func (proj *Project) GetCodeOwners() []string
- func (proj *Project) GetDefaultReleaseBranch() string
- func (proj *Project) GetDescription() string
- func (proj *Project) GetGitHubToken() string
- func (proj *Project) GetGitignore() []string
- func (proj *Project) GetGoBuildArgs() []string
- func (proj *Project) GetGoTestArgs() []string
- func (proj *Project) GetGoVersion() string
- func (proj *Project) GetGojenVersion() string
- func (proj *Project) GetName() string
- func (proj *Project) GetRepository() string
- func (proj *Project) GetTestEnvVars() []string
- func (proj *Project) GetWorkflowEnv() *map[string]*string
- func (proj *Project) IsBuildWorkflow() bool
- func (proj *Project) IsCodeCov() bool
- func (proj *Project) IsCreateReadme() bool
- func (proj *Project) IsGoBuild() bool
- func (proj *Project) IsGoLinter() bool
- func (proj *Project) IsGoTest() bool
- func (proj *Project) IsIsGojen() bool
- func (proj *Project) IsLicensed() bool
- func (proj *Project) IsRelease() bool
- func (proj *Project) RunBuild() error
- func (proj *Project) RunLinter() error
- func (proj *Project) RunTest() error
- func (proj *Project) SetCodeOwners() error
- func (proj *Project) SetGitignore() error
- func (proj *Project) SetupProject() error
- func (proj *Project) ValidateConfig() error
- func (proj *Project) WriteConfig() error
Constants ¶
This section is empty.
Variables ¶
View Source
var CI bool
Functions ¶
func StringSlice ¶
Types ¶
type IProject ¶
type IProject interface { WriteConfig() error SetupProject() error SetGitignore() error CreateReadme() error RunTest() error RunBuild() error RunLinter() error GetName() string GetDescription() string GetRepository() string GetAuthorName() string GetAuthorEmail() string GetAuthorOrganization() string IsLicensed() bool IsRelease() bool IsGoBuild() bool GetDefaultReleaseBranch() string GetGitignore() []string GetCodeOwners() []string IsGoLinter() bool IsGoTest() bool GetGoTestArgs() []string IsBuildWorkflow() bool GetGitHubToken() string GetGojenVersion() string IsIsGojen() bool IsCreateReadme() bool IsCodeCov() bool GetGoBuildArgs() []string GetWorkflowEnv() *map[string]*string // contains filtered or unexported methods }
func InitProject ¶
type Project ¶
type Project struct { Name *string `yaml:"name" json:"name"` Description *string `yaml:"description" json:"description"` Repository *string `yaml:"repository" json:"repository"` GoVersion *string `yaml:"goVersion" json:"goVersion"` AuthorName *string `yaml:"authorName" json:"authorName"` AuthorEmail *string `yaml:"authorEmail" json:"authorEmail"` AuthorOrganization *string `yaml:"authorOrganization" json:"authorOrganization"` Licensed *bool `yaml:"licensed" json:"licensed"` Readme *bool `yaml:"readme" json:"readme"` GojenVersion *string `yaml:"gojenVersion" json:"gojenVersion"` Release *bool `yaml:"release" json:"release"` BuildWorkflow *bool `yaml:"buildWorkflow" json:"buildWorkflow"` GithubToken *string `yaml:"githubToken" json:"githubToken"` DefaultReleaseBranch *string `yaml:"defaultReleaseBranch" json:"defaultReleaseBranch"` IsGojen *bool `yaml:"isGojen" json:"isGojen"` CodeCov *bool `yaml:"codeCov" json:"codeCov"` TestEnvVars *[]string `yaml:"testEnvVars" json:"testEnvVars"` Gitignore *[]string `yaml:"gitignore" json:"gitignore"` CodeOwners *[]string `yaml:"codeOwners" json:"codeOwners"` GoLinter *bool `yaml:"goLinter" json:"goLinter"` GoTest *bool `yaml:"goTest" json:"goTest"` GoTestArgs *[]string `yaml:"goTestArgs" json:"goTestArgs"` GoBuild *bool `yaml:"goBuild" json:"goBuild"` GoBuildArgs *[]string `yaml:"goBuildArgs" json:"goBuildArgs"` WorkflowEnv *map[string]*string `yaml:"workflowEnv" json:"workflowEnv"` PrependSteps *[]*github.JobStep `yaml:"prependSteps" json:"prependSteps"` AppendSteps *[]*github.JobStep `yaml:"apendSteps" json:"apendSteps"` }
func (*Project) AddCodeCov ¶ added in v1.2.0
func (*Project) CreateBuildWorkflow ¶
func (*Project) CreateReadme ¶ added in v1.1.0
func (*Project) CreateReleaseWorkflow ¶
func (*Project) GetAuthorEmail ¶
func (*Project) GetAuthorName ¶
func (*Project) GetAuthorOrganization ¶
func (*Project) GetCodeOwners ¶
func (*Project) GetDefaultReleaseBranch ¶
func (*Project) GetDescription ¶
func (*Project) GetGitHubToken ¶
func (*Project) GetGitignore ¶
func (*Project) GetGoBuildArgs ¶ added in v1.4.0
func (*Project) GetGoTestArgs ¶
func (*Project) GetGoVersion ¶
func (*Project) GetGojenVersion ¶
func (*Project) GetRepository ¶
func (*Project) GetTestEnvVars ¶ added in v1.3.0
func (*Project) GetWorkflowEnv ¶ added in v1.6.0
func (*Project) IsBuildWorkflow ¶
func (*Project) IsCreateReadme ¶ added in v1.1.0
func (*Project) IsGoLinter ¶
func (*Project) IsLicensed ¶
func (*Project) SetCodeOwners ¶
func (*Project) SetGitignore ¶
func (*Project) SetupProject ¶
func (*Project) ValidateConfig ¶
func (*Project) WriteConfig ¶
Click to show internal directories.
Click to hide internal directories.