cmd

package
v0.0.0-...-673078a Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "rulehunter",
	Short: "Rulehunter finds rules in data based on user defined goals",
	Long: `Rulehunter finds rules in data based on user defined goals.
                Complete documentation is available at http://rulehunter.com`,
	RunE: func(cmd *cobra.Command, args []string) error {
		l := logger.NewSvcLogger()
		return runRoot(l, flagConfigFilename, flagFile, flagIgnoreWhen)
	},
}
View Source
var ServeCmd = &cobra.Command{
	Use:   "serve",
	Short: "Run Rulehunter as a server",
	Long: `Rulehunter will run as a server continually monitoring an 'experiments'
         directory and processing its contents.`,
	RunE: func(cmd *cobra.Command, args []string) error {
		l := logger.NewSvcLogger()
		q := quitter.New()
		defer q.Quit()
		return runServe(l, q, flagConfigFilename)
	},
}
View Source
var ServiceCmd = &cobra.Command{
	Use:   "service",
	Short: "Control Rulehunter service",
	Long:  `Control Rulehunter operating system service.`,
}
View Source
var ServiceInstallCmd = &cobra.Command{
	Use:   "install",
	Short: "Install Rulehunter as a service",
	Long:  `Install the Rulehunter server as an operating system service.`,
	RunE: func(cmd *cobra.Command, args []string) error {
		l := logger.NewSvcLogger()
		return runInstallService(l, flagConfigFilename)
	},
}
View Source
var ServiceUninstallCmd = &cobra.Command{
	Use:   "uninstall",
	Short: "Uninstall Rulehunter service",
	Long:  `Uninstall the Rulehunter operating system service.`,
	RunE: func(cmd *cobra.Command, args []string) error {
		l := logger.NewSvcLogger()
		return runUninstallService(l, flagConfigFilename)
	},
}
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Report version of Rulehunter",
	Long:  "Report version of Rulehunter",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Rulehunter v%s\n", version.Version())
	},
}

Functions

This section is empty.

Types

type Setup

type Setup struct {
	// contains filtered or unexported fields
}

func InitSetup

func InitSetup(
	l logger.Logger,
	q *quitter.Quitter,
	configFilename string,
) (*Setup, error)

Jump to

Keyboard shortcuts

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