feat(task): tasks can be internal (not accessible from cli)

This commit is contained in:
Pete Davison
2022-07-22 02:15:35 +00:00
parent c172185a24
commit 6f8f1f1409
7 changed files with 78 additions and 3 deletions

View File

@@ -20,6 +20,14 @@ func (err *taskNotFoundError) Error() string {
return fmt.Sprintf(`task: Task "%s" not found`, err.taskName)
}
type taskInternalError struct {
taskName string
}
func (err *taskInternalError) Error() string {
return fmt.Sprintf(`task: Task "%s" is internal`, err.taskName)
}
type TaskRunError struct {
taskName string
err error