aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)