Its own module rather than a package under shared, so cobra and pflag stay out of the module graphs of server, admin and sitesvc, which never use them.
20 lines
385 B
Go
20 lines
385 B
Go
// Command vantagectl backs up and restores a Vantage control plane.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"gitea.hostxtra.co.uk/mrhid6/vantage/vantagectl/internal/cmd"
|
|
)
|
|
|
|
// Version is stamped at build time with -ldflags "-X main.Version=...".
|
|
var Version = "dev"
|
|
|
|
func main() {
|
|
if err := cmd.Execute(Version); err != nil {
|
|
fmt.Fprintln(os.Stderr, "error:", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|