cmd

package
v0.0.0-...-c3e7047 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "led-strip-controller",
	Short: "Does stuff",
	Long:  `Does stuff`,
	Run: func(cmd *cobra.Command, args []string) {

		ss := config.BuildStrips(stripFile)
		defer func() {
			ss.AllOff()
		}()

		mux := goji.NewMux()
		api.Register(mux, ss)
		http.ListenAndServe(":8000", mux)

	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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