diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |