Documentation ¶
Index ¶
- func Build(cmd *cobra.Command, e *ox.Elk, tasks []string) (map[string]engine.Logger, error)
- func Command() *cobra.Command
- func DelayStart(delay time.Duration, start string)
- func Detached() error
- func GetTimeFromString(input string) (time.Time, error)
- func Task(ctx context.Context, cliEngine *engine.Engine, task string)
- func TaskWG(ctx context.Context, cliEngine *engine.Engine, task string, wg *sync.WaitGroup, ...)
- func Validate(cmd *cobra.Command, tasks []string) error
- func Watch(ctx context.Context, cliEngine *engine.Engine, task string, t ox.Task)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelayStart ¶ added in v0.3.0
DelayStart sleep the program by an amount of time
func GetTimeFromString ¶ added in v0.3.0
GetTimeFromString transform a string to a duration
func TaskWG ¶ added in v0.4.0
func TaskWG(ctx context.Context, cliEngine *engine.Engine, task string, wg *sync.WaitGroup, isWatch bool)
TaskWG runs task with a wait group
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.