Currently, SensorBee's commands are hardcoded, so fix as configurable from build.yaml on build_sensorbee
|
config.SubCommands = []string{"run", "shell", "topology", "exp", "runfile"} |
Sample1:
build.yaml
then sensorbee has only sensorbee runfile command.
Sample2:
build.yaml
commands:
shell:
run:
custom:
pkg: repo
path: path/to/repo
then sensorbee has run, shell, and repo commands. repo is user-customized command.
Default:
If no command is set-up in configuration, then build_sensorbee will make with default commands, run, shell, topology, exp, and runfile.
Currently, SensorBee's commands are hardcoded, so fix as configurable from build.yaml on
build_sensorbeesensorbee/cmd/build_sensorbee/main.go
Line 107 in 8057c68
Sample1:
build.yaml
then
sensorbeehas onlysensorbee runfilecommand.Sample2:
build.yaml
then
sensorbeehasrun,shell, andrepocommands.repois user-customized command.Default:
If no command is set-up in configuration, then
build_sensorbeewill make with default commands,run,shell,topology,exp, andrunfile.