Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "controller", Short: "Stage automatic controlling, triggering state changes.", Long: `Automatic stage controlling, including midi and DMX, by analyzing audio signals and pre defined light scenes`, PersistentPreRun: func(cmd *cobra.Command, args []string) { ctx = exitcontext.New() logger = createLogger(logLevel) storage = createStorage(logger, storagePath) controller = createController(logger, disableController) loader = disk.NewLoader(storage) if err := portaudio.Initialize(); err != nil { logger.Fatalf("failed to initialize portaudio: %v", err) } go func() { <-ctx.Done() terminateAudio() }() }, PersistentPostRun: func(cmd *cobra.Command, args []string) { terminateAudio() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.