go-james: github.com/pieterclaerhout/go-james/internal Index | Files | Directories

package internal

import "github.com/pieterclaerhout/go-james/internal"

Index

Package Files

executor.go subcommand.go

type Executor Uses

type Executor struct {
    common.Logging

    Path string
}

Executor is used to execute the subcommands

func NewExecutor Uses

func NewExecutor(path string) Executor

NewExecutor returns a new Executor instance

The path to the project is changed to the absolute path is it exists

func (Executor) RunTool Uses

func (executor Executor) RunTool(subcommand Subcommand, parseConfig bool) int

RunTool runs the given tool

parseConfig is used to indicate if the config file should be parsed or not

type Subcommand Uses

type Subcommand interface {
    Execute(project common.Project, cfg config.Config) error // Execute executes the subcommand with the given project and config
    RequiresBuild() bool                                     // Return true if a build is required before running the command
}

Subcommand defines the interface a subcommand need to implement

Directories

PathSynopsis
builder
cleaner
common
config
creator
debugger
installer
packager
runner
tester
uninstaller
updater
version

Package internal imports 5 packages (graph) and is imported by 12 packages. Updated 2019-12-12. Refresh now. Tools for package owners.