Adding missing files

This commit is contained in:
Alex Yatskov 2015-07-20 13:55:52 +09:00
parent 461f56df0a
commit c4624d7c0b
2 changed files with 6 additions and 3 deletions

View File

@ -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
} }

View File

@ -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)