Wyst package manager

This commit is contained in:
RudideC
2024-05-18 19:21:40 +02:00
parent c5c4a53ded
commit 7c50a30987
7 changed files with 237 additions and 19 deletions
+23
View File
@@ -0,0 +1,23 @@
package main
import (
"fmt"
"strings"
)
func showHelp() {
fmt.Println("wpm - Wyst Package Manager")
fmt.Println("Commands:")
fmt.Println(" install <package>[:version] - Install a package (version is optional)")
fmt.Println(" version - Show the wpm version")
fmt.Println(" help - Show this help message")
fmt.Println(" info <package> - Show package information (author, description, versions)")
}
func parsePackageArg(arg string) (string, string) {
parts := strings.Split(arg, ":")
if len(parts) == 2 {
return parts[0], parts[1]
}
return parts[0], ""
}