From 3f6aeea8c795b8bff59c1a8b45700d7bc44da4b9 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 20 Jan 2023 23:05:54 +0800 Subject: First commit --- main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..99ae88c --- /dev/null +++ b/main.go @@ -0,0 +1,15 @@ +package main + +import "os" + +func main() { + DocCollection = NewDocs(".") + if DocCollection == nil { + panic("Unable to initialize collection") + } + + if len(os.Args) > 3 && os.Args[1] == "mv" { + Rename(os.Args[2], os.Args[3]) + } + +} -- cgit v1.2.3