Documentation
¶
Index ¶
- Variables
- func ExecuteTaskLocal(prefix, taskId string, l *zap.Logger, task taskdef.TaskDefinition, ...) error
- func OpenDefault(fileOrURL string) error
- func UserInput(prompt string) string
- func UserInputBoolean(prompt string) bool
- type LocalMutLogger
- type TaskLocalOpts
- type TaskProgress
- type TaskState
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ExecuteTaskLocal ¶
func ExecuteTaskLocal(prefix, taskId string, l *zap.Logger, task taskdef.TaskDefinition, opts TaskLocalOpts, taskState taskstate.TaskState) error
Executes a task locally
func OpenDefault ¶
From https://github.com/icza/gox/blob/master/osx/osx.go
OpenDefault opens the specified file or URL with the default associated application.
You may use it to open a web site:
OpenDefault("https://google.com")
Or open a file:
OpenDefault("/home/bob/story.txt")
Or open a folder in your default file manager:
OpenDefault("/home/bob")
For details, see https://stackoverflow.com/a/39324149/1705598
func UserInputBoolean ¶
Types ¶
type LocalMutLogger ¶
func NewLocalTaskLogger ¶
func (*LocalMutLogger) Sync ¶
func (m *LocalMutLogger) Sync() error
type TaskLocalOpts ¶
type TaskProgress ¶
type TaskProgress struct{}
func (TaskProgress) GetProgress ¶
func (ts TaskProgress) GetProgress() (*taskstate.Progress, error)
func (TaskProgress) SetProgress ¶
func (ts TaskProgress) SetProgress(prog *taskstate.Progress) error
Click to show internal directories.
Click to hide internal directories.