mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 03:59:25 +00:00
7dea8380b8
The client and server package is now separated, so I can build additional server package with `-tags server`.
27 lines
333 B
Go
27 lines
333 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
"xmr-remote-nodes/cmd/client"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const AppVer = "0.0.1"
|
|
|
|
var Root = &cobra.Command{
|
|
Use: "xmr-nodes",
|
|
Short: "XMR Nodes",
|
|
Version: AppVer,
|
|
}
|
|
|
|
func Execute() {
|
|
err := Root.Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
Root.AddCommand(client.ProbeCmd)
|
|
}
|