Documentation ¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Int(i int) *int
- func String(str string) *string
- func StringSlice(s []string) *[]string
- type IProject
- type Project
- 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) 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) IsBuildWorkflow() bool
- func (proj *Project) IsCreateReadme() 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) 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 RunLinter() error GetName() string GetDescription() string GetRepository() string GetAuthorName() string GetAuthorEmail() string GetAuthorOrganization() string IsLicensed() bool IsRelease() bool GetDefaultReleaseBranch() string GetGitignore() []string GetCodeOwners() []string IsGoLinter() bool IsGoTest() bool GetGoTestArgs() []string IsBuildWorkflow() bool GetGitHubToken() string GetGojenVersion() string IsIsGojen() bool IsCreateReadme() bool }
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"` 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"` }
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) GetGoTestArgs ¶
func (*Project) GetGoVersion ¶
func (*Project) GetGojenVersion ¶
func (*Project) GetRepository ¶
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.