Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheHashGen ¶
func CacheHashRead ¶
Types ¶
type ErrMainPackageNotFound ¶
type ErrMainPackageNotFound struct {
// contains filtered or unexported fields
}
ErrMainPackageNotFound is returned when a folder of ".go" source files have been provided that are not part of a "main" package. Or there simply are no source files. All direct children of a ".gomake" folder must be part of the "main" package.
func (*ErrMainPackageNotFound) Error ¶
func (e *ErrMainPackageNotFound) Error() string
func (*ErrMainPackageNotFound) InnerError ¶
func (e *ErrMainPackageNotFound) InnerError() error
type ErrParserFailed ¶
type ErrParserFailed struct {
// contains filtered or unexported fields
}
ErrParserFailed is returned when the golang parser fails. This would usually be due to a syntax issue in your makefile ".go" source files. See the InnerError for cause.
func (*ErrParserFailed) Error ¶
func (e *ErrParserFailed) Error() string
func (*ErrParserFailed) InnerError ¶
func (e *ErrParserFailed) InnerError() error
type ErrUnsupportedFlagType ¶
type ErrUnsupportedFlagType struct { OriginalTypeName string IsArray bool MappedTypeName string // contains filtered or unexported fields }
ErrUnsupportedFlagType is returned when a makefile function has used a parameter type that this generator and / or cobra does not support.
func (*ErrUnsupportedFlagType) Error ¶
func (e *ErrUnsupportedFlagType) Error() string
func (*ErrUnsupportedFlagType) InnerError ¶
func (e *ErrUnsupportedFlagType) InnerError() error
type ErrVariadicMustBeString ¶
type ErrVariadicMustBeString struct {
// contains filtered or unexported fields
}
ErrVariadicMustBeString is returned when a makefile function has used a variadic parameter that is not of type "string".
func (*ErrVariadicMustBeString) Error ¶
func (e *ErrVariadicMustBeString) Error() string
func (*ErrVariadicMustBeString) InnerError ¶
func (e *ErrVariadicMustBeString) InnerError() error
type ErrWritingMakefile ¶
type ErrWritingMakefile struct {
// contains filtered or unexported fields
}
ErrWritingMakefile is returned when `writeGeneratedMakefile` fails. See InnerError for more details.
func (*ErrWritingMakefile) Error ¶
func (e *ErrWritingMakefile) Error() string
func (*ErrWritingMakefile) InnerError ¶
func (e *ErrWritingMakefile) InnerError() error
func (*ErrWritingMakefile) Source ¶ added in v2.1.3
func (e *ErrWritingMakefile) Source() []byte
Source Files
¶
- build_cmd_tree.go
- build_view_model.go
- cache_hash_gen.go
- cache_hash_read.go
- err_main_package_not_found.go
- err_parser_failed.go
- err_unsupported_flag_type.go
- err_variadic_must_be_string.go
- err_writing_makefile.go
- generate.go
- get_default_value_for_type.go
- get_type_from_ast_node.go
- is_valid_go_make_func.go
- map_type_to_flag_type.go
- parse_ast.go
- walk_cmd_tree.go
- write_generated_makefile.go