Documentation ¶
Index ¶
- func AddCommand(projectPath, commandName string, tasks []string) error
- func AddTask(projectPath, taskName string) (retErr error)
- func InitializeProject(projectPath string) (retErr error)
- func IsInitialized(projectPath string) bool
- func RunCommand(projectPath, commandName string) (retErr error)
- func RunTask(projectPath, taskName string, taskArgs []string) (retErr error)
- type InvalidTaskNameError
- type ProjectHasBeenInitializedError
- type ProjectNotInitializedError
- type TaskBuildError
- type TaskNotAddedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddTask ¶
AddTask compiles the task source code and moves the executable file to `app.GoBuilderTasksDir`
func InitializeProject ¶
InitializeProject initializes a project
func IsInitialized ¶
func RunCommand ¶
Types ¶
type InvalidTaskNameError ¶
func (*InvalidTaskNameError) Error ¶
func (e *InvalidTaskNameError) Error() string
type ProjectHasBeenInitializedError ¶
type ProjectHasBeenInitializedError struct {
ProjectPath string
}
func (*ProjectHasBeenInitializedError) Error ¶
func (e *ProjectHasBeenInitializedError) Error() string
type ProjectNotInitializedError ¶
type ProjectNotInitializedError struct {
ProjectPath string
}
func (*ProjectNotInitializedError) Error ¶
func (e *ProjectNotInitializedError) Error() string
type TaskBuildError ¶
type TaskBuildError struct {
Output string
}
func (*TaskBuildError) Error ¶
func (e *TaskBuildError) Error() string
type TaskNotAddedError ¶
type TaskNotAddedError struct {
TaskName string
}
func (*TaskNotAddedError) Error ¶
func (e *TaskNotAddedError) Error() string
Click to show internal directories.
Click to hide internal directories.