mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
5496692c5d
I hope it will be less discoverable by other users and less likely to be used unintentionally in other projects.
30 lines
392 B
Go
30 lines
392 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
"xmr-remote-nodes/internal/config"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const AppVer = "0.0.1"
|
|
|
|
var LogLevel string
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "xmr-nodes",
|
|
Short: "XMR Nodes",
|
|
Version: AppVer,
|
|
}
|
|
|
|
func Execute() {
|
|
err := rootCmd.Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
config.LoadAll(".env")
|
|
LogLevel = config.AppCfg().LogLevel
|
|
}
|