Documentation ¶
Index ¶
- Variables
- func CleanWhileTesting() error
- func DoInitialize() error
- func InfoInCSV(cInfos []*CommandInfo, f *os.File) error
- func InfoInTable(cInfos []*CommandInfo, f *os.File) error
- func IsInitialized() (bool, error)
- func OutErrRoutine(wg *sync.WaitGroup, reader io.ReadCloser, w io.Writer)
- func SaveState(ex *Execution) error
- type CommandInfo
- type Execution
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InfoLogger *log.Logger ErrorLogger *log.Logger )
View Source
var ( JNL_DIR_NAME = ".jnl" JNL_DIR string INFO_DIR = "info" )
View Source
var (
CSV_DATE_FORMAT = "2006-01-02 15:04:05"
)
Functions ¶
func CleanWhileTesting ¶
func CleanWhileTesting() error
func DoInitialize ¶
func DoInitialize() error
func InfoInTable ¶
func InfoInTable(cInfos []*CommandInfo, f *os.File) error
func IsInitialized ¶
func OutErrRoutine ¶
Types ¶
type CommandInfo ¶
type CommandInfo struct { Command []string `json:"command"` Start time.Time `json:"start"` End time.Time `json:"end,omitempty"` ExitCode int `json:"exitCode,omitempty"` Dir string `json:"dir,omitempty"` }
func EveryExecution ¶
func EveryExecution() ([]*CommandInfo, error)
type Execution ¶
type Execution struct { Info *CommandInfo // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.