From 2e6c882ca99fb3108c5314784fcbbf43b57e2bb1 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Fri, 8 Jan 2021 17:11:04 -0800 Subject: [PATCH] Add new main --- cmd/lsconvert/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmd/lsconvert/main.go diff --git a/cmd/lsconvert/main.go b/cmd/lsconvert/main.go new file mode 100644 index 0000000..8d12a73 --- /dev/null +++ b/cmd/lsconvert/main.go @@ -0,0 +1,15 @@ +package main + +import "flag" + +func main() { + flag.Parse() + switch flag.Arg(0) { + case "convert": + convert(flag.Args()[1:]) + case "init": + initRepository(flag.Args()[1:]) + default: + convert(flag.Args()) + } +}