Documentation ¶
Index ¶
- Variables
- type Choice
- type ErrCanSelectMultiple
- type ErrCanSkip
- type ErrEmptyChoice
- type ErrEmptyFileAndDependency
- type ErrEmptyFileField
- type ErrEmptyQuestionField
- type ErrEmptyUrlAndContent
- type ErrInvalidURLFile
- type ErrMultipleFieldUrlAndContent
- type ErrWrongDelimiterFormat
- type ErrWrongDependencyFormat
- type File
- type ProjectStructureData
- type Question
- type Requirement
- type Resources
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProjectNameIsEmpty = errors.New("project name can not be empty") ErrProjectURLIsNotValid = errors.New("project url invalid") )
View Source
var ErrMissingField = errors.New("all fields should be provided")
Functions ¶
This section is empty.
Types ¶
type Choice ¶
type ErrCanSelectMultiple ¶
type ErrCanSelectMultiple struct {
// contains filtered or unexported fields
}
func (ErrCanSelectMultiple) Error ¶
func (e ErrCanSelectMultiple) Error() string
type ErrCanSkip ¶
type ErrCanSkip struct {
// contains filtered or unexported fields
}
func (ErrCanSkip) Error ¶
func (e ErrCanSkip) Error() string
type ErrEmptyChoice ¶
type ErrEmptyChoice struct {
// contains filtered or unexported fields
}
func (ErrEmptyChoice) Error ¶
func (e ErrEmptyChoice) Error() string
type ErrEmptyFileAndDependency ¶
type ErrEmptyFileAndDependency struct {
// contains filtered or unexported fields
}
func (ErrEmptyFileAndDependency) Error ¶
func (e ErrEmptyFileAndDependency) Error() string
type ErrEmptyFileField ¶
type ErrEmptyFileField struct {
// contains filtered or unexported fields
}
func (ErrEmptyFileField) Error ¶
func (e ErrEmptyFileField) Error() string
type ErrEmptyQuestionField ¶
type ErrEmptyQuestionField struct {
// contains filtered or unexported fields
}
func (ErrEmptyQuestionField) Error ¶
func (e ErrEmptyQuestionField) Error() string
type ErrEmptyUrlAndContent ¶
type ErrEmptyUrlAndContent struct {
// contains filtered or unexported fields
}
func (ErrEmptyUrlAndContent) Error ¶
func (e ErrEmptyUrlAndContent) Error() string
type ErrInvalidURLFile ¶
type ErrInvalidURLFile struct {
// contains filtered or unexported fields
}
func (ErrInvalidURLFile) Error ¶
func (e ErrInvalidURLFile) Error() string
type ErrMultipleFieldUrlAndContent ¶
type ErrMultipleFieldUrlAndContent struct {
// contains filtered or unexported fields
}
func (ErrMultipleFieldUrlAndContent) Error ¶
func (e ErrMultipleFieldUrlAndContent) Error() string
type ErrWrongDelimiterFormat ¶ added in v1.6.0
type ErrWrongDelimiterFormat struct {
// contains filtered or unexported fields
}
func (ErrWrongDelimiterFormat) Error ¶ added in v1.6.0
func (e ErrWrongDelimiterFormat) Error() string
type ErrWrongDependencyFormat ¶ added in v1.2.0
type ErrWrongDependencyFormat struct {
// contains filtered or unexported fields
}
func (ErrWrongDependencyFormat) Error ¶ added in v1.2.0
func (e ErrWrongDependencyFormat) Error() string
type ProjectStructureData ¶
type ProjectStructureData struct { Resources `yaml:",inline"` Name string `yaml:"name"` Reference string `yaml:"reference"` URL string `yaml:"url"` Branch string `yaml:"branch"` Questions []*Question `yaml:"questions"` Language string `yaml:"language"` Delimiters string `yaml:"delimiters"` }
func (*ProjectStructureData) IsValid ¶
func (p *ProjectStructureData) IsValid() error
func (*ProjectStructureData) String ¶
func (p *ProjectStructureData) String() string
type Requirement ¶
type Requirement interface {
AskForInput() ([]Task, []Requirement, error)
}
Click to show internal directories.
Click to hide internal directories.