Documentation ¶
Index ¶
- type Error
- type Logger
- type LoggerLevel
- type Recipe
- type State
- func (s *State) IsCancelled(taskName string) bool
- func (s *State) IsDone(taskName string) bool
- func (s *State) IsEnabled(taskName string) bool
- func (s *State) IsFailure(taskName string) bool
- func (s *State) IsRunning(taskName string) bool
- func (s *State) IsSuccess(taskName string) bool
- func (s *State) IsWaiting(taskName string) bool
- func (s *State) MustSetCancelled(taskName string)
- func (s *State) MustSetEnabled(taskName string)
- func (s *State) MustSetFailure(taskName string)
- func (s *State) MustSetRunning(taskName string)
- func (s *State) MustSetSuccess(taskName string)
- func (s *State) MustSetWaiting(taskName string)
- func (s *State) PrettyString() string
- func (s *State) Remove() error
- func (s *State) Save() error
- func (s *State) SetDisabled(taskName string)
- func (s *State) SetEnabled(taskName string) error
- func (s *State) String() string
- type Task
- type TaskIterator
- type TaskState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Level LoggerLevel // contains filtered or unexported fields }
type LoggerLevel ¶
type LoggerLevel int
const ( DebugL LoggerLevel = iota InfoL WarningL ErrorL FatalL )
func (LoggerLevel) String ¶
func (i LoggerLevel) String() string
type Recipe ¶
type Recipe struct { Main string `json:"main"` Env map[string]string `json:"env" toml:"env"` Interp []string `json:"interp" toml:"interp"` Tasks map[string]*Task `json:"tasks"` // contains filtered or unexported fields }
func (*Recipe) Interpreter ¶
func (*Recipe) PrettyString ¶
type State ¶
type State struct { States map[string]TaskState `json:"states" toml:"states"` // contains filtered or unexported fields }
func (*State) IsCancelled ¶
func (*State) MustSetCancelled ¶
func (*State) MustSetEnabled ¶
func (*State) MustSetFailure ¶
func (*State) MustSetRunning ¶
func (*State) MustSetSuccess ¶
func (*State) MustSetWaiting ¶
func (*State) PrettyString ¶
func (*State) SetDisabled ¶
func (*State) SetEnabled ¶
type Task ¶
type Task struct { Deps []string `json:"deps" toml:"deps"` Env map[string]string `json:"env" toml:"env"` Interp []string `json:"interp" toml:"interp"` Cmd string `json:"cmd" toml:"cmd"` Stdout string `json:"stdout" toml:"stdout"` Stderr string `json:"stderr" toml:"stderr"` AllowFailure bool `json:"allow_failure" toml:"allow_failure"` // contains filtered or unexported fields }
func (*Task) Interpreter ¶
func (*Task) PrettyString ¶
type TaskIterator ¶
type TaskIterator struct {
// contains filtered or unexported fields
}
type TaskState ¶
type TaskState int
func (TaskState) MarshalJSON ¶
func (*TaskState) UnmarshalJSON ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.