Documentation ¶
Index ¶
Constants ¶
View Source
const ( LinuxInitFile = "init.sh" WindowsInitFile = "init.bat" )
View Source
const ( ChangeValues = "Do you want to edit values?" EditValues = "Press Enter to change. Values will be saved when you exit" YamLPattern = "*.yaml" )
View Source
const (
ModuleNameDirection = "Enter Module Name :"
)
View Source
const PropertiesYamlName = "properties.yaml"
View Source
const (
SelectProjectTypeDirection = "Select Project Type :"
)
Variables ¶
View Source
var InitFiles = []string{LinuxInitFile, WindowsInitFile}
Functions ¶
func GetTemplate ¶ added in v1.6.0
func GetTemplate(p *model.ProjectStructureData) *template.Template
Types ¶
type NoneOfAboveChoice ¶
type NoneOfAboveChoice struct{}
func (NoneOfAboveChoice) String ¶
func (n NoneOfAboveChoice) String() string
type ProjectNameRequirement ¶
type ProjectNameRequirement struct { Prompter prompter.Prompter `validate:"required"` Manager manager.Manager `validate:"required"` Logger logger.Logger `validate:"required"` Store store.Store `validate:"required"` }
func (*ProjectNameRequirement) AskForInput ¶
func (p *ProjectNameRequirement) AskForInput() ([]model.Task, []model.Requirement, error)
type ProjectStructureRequirement ¶
type ProjectStructureRequirement struct { ProjectsData []*model.ProjectStructureData Prompter prompter.Prompter `validate:"required"` Compressor compressor.Compressor `validate:"required"` Manager manager.Manager `validate:"required"` Logger logger.Logger `validate:"required"` Executor executor.Executor `validate:"required"` Store store.Store `validate:"required"` LanguageChecker langs.Checker Cloner cloner.Cloner `validate:"required"` CommandRunner commandrunner.Runner `validate:"required"` }
func (*ProjectStructureRequirement) AskForInput ¶
func (p *ProjectStructureRequirement) AskForInput() ([]model.Task, []model.Requirement, error)
func (*ProjectStructureRequirement) SelectProject ¶ added in v1.6.0
func (p *ProjectStructureRequirement) SelectProject() (*model.ProjectStructureData, error)
type QuestionRequirement ¶
type QuestionRequirement struct { Question model.Question `validate:"required"` Prompter prompter.Prompter `validate:"required"` Logger logger.Logger `validate:"required"` Executor executor.Executor `validate:"required"` Manager manager.Manager `validate:"required"` Store store.Store `validate:"required"` LanguageChecker langs.Checker `validate:"required"` }
func (*QuestionRequirement) AskForInput ¶
func (q *QuestionRequirement) AskForInput() ([]model.Task, []model.Requirement, error)
Click to show internal directories.
Click to hide internal directories.