Adding missing files
This commit is contained in:
parent
461f56df0a
commit
c4624d7c0b
@ -25,7 +25,8 @@ package main
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
Tasks map[string]task
|
Tasks map[string]taskDef
|
||||||
|
Macros map[string]macroDef
|
||||||
tasksHandled map[string]bool
|
tasksHandled map[string]bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
macro.go
6
macro.go
@ -21,12 +21,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type macro struct {
|
type macro []string
|
||||||
|
|
||||||
|
type macroDef struct {
|
||||||
Prefix []string
|
Prefix []string
|
||||||
Suffix []string
|
Suffix []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m macro) process(dir string, params []string, flags int) error {
|
func (m macroDef) process(dir string, params []string, flags int) error {
|
||||||
var args []string
|
var args []string
|
||||||
args = appendExpEnv(args, m.Prefix)
|
args = appendExpEnv(args, m.Prefix)
|
||||||
args = appendExpEnv(args, params)
|
args = appendExpEnv(args, params)
|
||||||
|
Loading…
Reference in New Issue
Block a user