Skip to content

Commit

Permalink
Add more funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ejholmes committed Mar 30, 2017
1 parent 42df256 commit 2f5e038
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin/ssm-env:
bin/ssm-env: *.go
go build -o $@ .
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ var TemplateFuncs = template.FuncMap{
"trim": strings.Trim,
"title": strings.Title,
"toTitle": strings.ToTitle,
"toLower": strings.ToLower,
"toUpper": strings.ToUpper,
}

func main() {
Expand All @@ -42,6 +44,11 @@ func main() {
flag.Parse()
args := flag.Args()

if len(args) <= 0 {
flag.Usage()
os.Exit(1)
}

path, err := exec.LookPath(args[0])
must(err)

Expand Down

0 comments on commit 2f5e038

Please # to comment.