feat(modules): add hello toy module as engine smoke test
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/config"
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/engine"
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/module"
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/modules/hello"
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/privilege"
|
||||
"github.com/MDietermann/ArduinoArchSetup/internal/state"
|
||||
)
|
||||
@@ -21,6 +22,12 @@ var version = "dev"
|
||||
// real modules into it via init(). Task 12 registers the hello toy module.
|
||||
var Registry = module.NewRegistry()
|
||||
|
||||
func init() {
|
||||
if err := Registry.Register(hello.Module{}); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
root := &cobra.Command{
|
||||
Use: "archduino",
|
||||
|
||||
Reference in New Issue
Block a user