Split into separate packages

This commit is contained in:
2024-02-26 16:58:39 -05:00
parent b26a29dd3d
commit e61beb3f94
13 changed files with 78 additions and 59 deletions
+38
View File
@@ -0,0 +1,38 @@
package main
import (
"github.com/rwinkhart/MUTN/src/cli"
"os"
)
func main() {
args := os.Args[1:]
argsCount := len(args)
if argsCount == 0 {
cli.EntryListGen()
} else if argsCount == 1 {
switch args[0] {
case "help", "--help", "-h":
cli.HelpMain()
case "add":
cli.HelpAdd()
case "edit":
cli.HelpEdit()
case "copy":
cli.HelpCopy()
case "gen":
cli.HelpGen()
case "version", "-v":
cli.Version()
default:
cli.HelpMain()
}
}
}