cmd

package
v0.0.0-...-288be38 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BUILD and VERSION are set during build
	BUILD   string
	VERSION string
)
View Source
var FlixctlCmd = &cobra.Command{
	Use: "flixctl",
	Long: `To Control The Following flixctl Components:
  * Library
  * NZB Client
  * Ombi
  * Plex
  * Radarr
  * Sonarr
  * Torrent Client`,
}
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "To Get flixctl Version",
	Long:  "to get flixctl version",
	Run: func(cmd *cobra.Command, args []string) {
		m := make(map[string]string)
		m["version"] = VERSION
		m["build"] = BUILD
		jsonString, _ := json.Marshal(m)
		fmt.Println(string(jsonString))
	},
}

Functions

func Execute

func Execute(version string, build string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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