Files
uosc/src/tools/tools.go
tomasklaen c173641ea5 chore: restructured repo to eliminate dist directory
As pointed out in #757, having scripts in `dist` would cause github's code indexing to ignore them.

This also updates packaging tool/scripts, which before wouldn't mark binaries placed inside `uosc.zip` as executable when built on windows. I can't believe there is no CLI tool on windows to do this and I had to write one in go...
2023-11-01 11:08:23 +01:00

40 lines
505 B
Go

package main
import (
"fmt"
"os"
"uosc/bins/src/tools/tools"
)
func main() {
command := "help"
if len(os.Args) > 1 {
command = os.Args[1]
}
switch command {
case "intl":
tools.Intl(os.Args[2:])
case "package":
tools.Packager(os.Args[2:])
// Help
default:
fmt.Printf(`uosc tools.
Usage:
tools <command> [args]
Available <command>s:
intl - localization helper
package - package uosc release files
Run 'tools <command> -h/--help' for help on how to use each tool.
`)
}
}