aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go28
1 files changed, 28 insertions, 0 deletions
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)
+ }
+}