Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectYAMLFile = "project.yaml" ProjectYAMLTemplate = `name: %s` )
Variables ¶
View Source
var ( ErrNotEmptyDir = errors.New("the target directory for project creation should be empty") ErrProjectNameEmpty = errors.New("the project name must not be empty") ErrProjectNameTooLong = errors.New("the project name must be less than 100 characters") ErrProjectNameInvalid = errors.New("the project name can only contain alphanumeric, hyphens, underscores, and periods") )
Functions ¶
func GetDirAndName ¶
GetDirAndName returns the rooted path and the last element of the current working directory for the project to be created.
func ValidateProjectDir ¶
ValidateProjectDir ensures the project directory for creation is valid.
func ValidateProjectName ¶
ValidateProjectName ensures a project name is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.