commands

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:              "monetd",
	Short:            "MONET-Daemon",
	TraverseChildren: true,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
		if err := readConfig(cmd); err != nil {
			return err
		}

		logger.Level = logLevel(config.LogLevel)

		return nil
	},
}

RootCmd is the root command for monetd

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "show version info",
	Long:  `Monetd Version information`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Print(monet.FullVersion())
	},
}

VersionCmd displays the version of evml being used

Functions

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd returns the command that starts the daemon

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL