sutil holds only the utilities wanted on every machine; it is not a command-line front end for the packages in pkg/. cbk and bip39wordlist remain libraries with no CLI surface. The README states the boundary.
23 lines
538 B
Go
23 lines
538 B
Go
// Command sutil is sneak's shell utility: a few small tools worth having on
|
|
// every machine. Run `sutil --help` for the command list.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"sneak.berlin/go/x/internal/cli"
|
|
)
|
|
|
|
// Version is the build version. The Makefile and Dockerfile set it at link
|
|
// time with -ldflags "-X main.Version=...".
|
|
//
|
|
//nolint:gochecknoglobals // set by the linker; there is no other way
|
|
var Version = "dev"
|
|
|
|
func main() {
|
|
err := cli.New(cli.Params{Version: Version, ConfigDir: ""}).Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|