commands

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

commands describes commandExecuter which receives a bunch of commands, that create files from inputFiles, executes these and logs all outcomes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandExecuter

func NewCommandExecuter(logger Logger) *commandExecuter

Types

type Command

type Command struct {
	Name            string
	InputPath       string
	OutputPath      string
	CommandTemplate string
}

Command represents command that creates OutputPath from InputPath by this package

type Logger

type Logger interface {
	Success(message string)
	Fail(message string)
	Log(message string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL