move a few tools to a more central utility cli

This commit is contained in:
adman
2026-03-18 20:45:54 +01:00
parent e0cf1834f1
commit f554e91354
6 changed files with 94 additions and 20 deletions
+20
View File
@@ -0,0 +1,20 @@
package offline_uuid
import (
"flag"
"fmt"
"github.com/admin-else/strom/crypto"
)
var cmd = flag.NewFlagSet("offline-uuid", flag.ContinueOnError)
var nameFlag = cmd.String("name", "Notch", "name of the player")
func Run(args []string) (err error) {
err = cmd.Parse(args)
if err != nil {
return
}
fmt.Println(crypto.FromOfflinePlayer(*nameFlag))
return
}