Documentation
¶
Overview ¶
Package program provides the main functionality of Blueprint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBDriverTemplater ¶ added in v0.3.0
type Framework ¶
type Framework struct {
// contains filtered or unexported fields
}
A Framework contains the name and templater for a given Framework
type Project ¶
type Project struct {
ProjectName string
Exit bool
AbsolutePath string
ProjectType flags.Framework
DBDriver flags.Database
FrameworkMap map[flags.Framework]Framework
DBDriverMap map[flags.Database]Driver
}
A Project contains the data for the project folder being created, and methods that help with that process
func (*Project) CreateFileWithInjection ¶
func (p *Project) CreateFileWithInjection(pathToCreate string, projectPath string, fileName string, methodName string) error
CreateFileWithInjection creates the given file at the project path, and injects the appropriate template
func (*Project) CreateMainFile ¶
CreateMainFile creates the project folders and files, and writes to them depending on the selected options
func (*Project) CreatePath ¶
CreatePath creates the given directory in the projectPath
Click to show internal directories.
Click to hide internal directories.