From 8df0e5aa7d4dc43b1384d91a820c9a748ccbea6b Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Tue, 13 Aug 2019 12:24:10 -0400 Subject: initial commit --- main.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..27a4abb --- /dev/null +++ b/main.go @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "os" +) + +const ( + base = "/Users/ben/dotfiles" + dest = "/Users/ben" +) + +func main() { + if len(os.Args) < 2 { + fmt.Printf("usage: conf apply [files...]\n") + os.Exit(1) + } + switch os.Args[1] { + case "apply": + if err := apply(os.Args[2:]); err != nil { + fmt.Printf("%v\n", err) + os.Exit(1) + } + default: + fmt.Printf("unrecognized command: %s\n", os.Args[1]) + os.Exit(1) + } +} -- cgit v1.2.3