aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-08-13 13:03:56 -0400
committerBen Burwell <ben@benburwell.com>2019-08-13 13:03:56 -0400
commitb8dd7dae42e783f2236f889d276e66bedb182837 (patch)
tree7736579f0868bba69452fc8863ea56bf495a7fc6 /main.go
parent8df0e5aa7d4dc43b1384d91a820c9a748ccbea6b (diff)
implement adopt
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 27a4abb..f5e2f14 100644
--- a/main.go
+++ b/main.go
@@ -12,7 +12,7 @@ const (
func main() {
if len(os.Args) < 2 {
- fmt.Printf("usage: conf apply [files...]\n")
+ fmt.Printf("usage: conf <adopt|apply> [files...]\n")
os.Exit(1)
}
switch os.Args[1] {
@@ -21,6 +21,11 @@ func main() {
fmt.Printf("%v\n", err)
os.Exit(1)
}
+ case "adopt":
+ if err := adopt(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)