commands

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(projectPath, commandName string, tasks []string) error

func AddTask

func AddTask(projectPath, taskName string) (retErr error)

AddTask compiles the task source code and moves the executable file to `app.GoBuilderTasksDir`

func InitializeProject

func InitializeProject(projectPath string) (retErr error)

InitializeProject initializes a project

func IsInitialized

func IsInitialized(projectPath string) bool

func RunCommand

func RunCommand(projectPath, commandName string) (retErr error)

func RunTask

func RunTask(projectPath, taskName string, taskArgs []string) (retErr error)

Types

type InvalidTaskNameError

type InvalidTaskNameError struct {
	TaskName string
	Reason   string
}

func (*InvalidTaskNameError) Error

func (e *InvalidTaskNameError) Error() string

type ProjectHasBeenInitializedError

type ProjectHasBeenInitializedError struct {
	ProjectPath string
}

func (*ProjectHasBeenInitializedError) Error

type ProjectNotInitializedError

type ProjectNotInitializedError struct {
	ProjectPath string
}

func (*ProjectNotInitializedError) Error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL