Documentation ¶
Index ¶
Constants ¶
View Source
const ( DebugOff = 0 DebugOn = 1 DebugVerbose = 2 DebugVeryVerbose = 3 )
Variables ¶
View Source
var ( Version = "dev" Commit = "-" Date = "-" )
Functions ¶
func DetectProjectPath ¶
Types ¶
type Arguments ¶
type Arguments struct { Verbose []bool `short:"v" long:"verbose" description:"Enable debug output"` ConfigFiles []string `short:"c" long:"config-files" description:"Additional config files to load" default:"~/.x/config.yml"` Taskfiles []string `short:"t" long:"taskfiles" description:"Additional task files to load" default:"~/.x/Taskfile"` Shell string `short:"s" long:"shell" description:"The shell to execute the commands" default:"bash"` Command []string }
type CommandInterface ¶
type CommandInterface interface {
Run() error
}
type CommandManager ¶
func (*CommandManager) Create ¶
func (cm *CommandManager) Create(path string, command string, args []string) CommandInterface
func (*CommandManager) FindExecutable ¶
func (cm *CommandManager) FindExecutable(name string) (string, error)
func (*CommandManager) Stop ¶
func (cm *CommandManager) Stop(cmd CommandInterface, sig os.Signal) error
type CommandManagerInterface ¶
type Config ¶
type Config struct { Name string Executables map[string]struct { Path string } // contains filtered or unexported fields }
func NewConfig ¶
func NewConfig(logger IOLoggerInterface, projectPath string, additionalConfigFiles []string) (Config, error)
func (Config) PopulateModuleConfig ¶
type IOLoggerInterface ¶
type ModuleRegistry ¶
type ModuleRegistry struct {
// contains filtered or unexported fields
}
func NewModuleRegistry ¶
func NewModuleRegistry() *ModuleRegistry
func (*ModuleRegistry) GetModules ¶
func (m *ModuleRegistry) GetModules() map[string]Module
type Runtime ¶
type Runtime struct { Taskfile Taskfile // contains filtered or unexported fields }
func NewRuntime ¶
func NewRuntime( registry *ModuleRegistry, commandManager CommandManagerInterface, projectPath string, args Arguments, cfg Config, tf Taskfile, logger IOLoggerInterface, ) (*Runtime, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.