immucore/internal/cmd/commands.go

34 lines
561 B
Go
Raw Normal View History

2023-01-12 18:10:10 +00:00
package cmd
import (
2023-02-01 17:01:58 +00:00
"context"
2023-01-12 18:10:10 +00:00
"github.com/kairos-io/immucore/pkg/mount"
2023-02-01 17:01:58 +00:00
"github.com/spectrocloud-labs/herd"
2023-01-12 18:10:10 +00:00
"github.com/urfave/cli"
)
var Commands = []cli.Command{
{
2023-02-01 17:01:58 +00:00
Name: "start",
Usage: "start",
UsageText: "starts",
2023-01-12 18:10:10 +00:00
Description: `
Sends a generic event payload with the configuration found in the scanned directories.
`,
Aliases: []string{},
Flags: []cli.Flag{},
Action: func(c *cli.Context) error {
2023-02-01 17:01:58 +00:00
g := herd.DAG()
s := &mount.State{Rootdir: "/"}
s.Register(g)
return g.Run(context.Background())
2023-01-12 18:10:10 +00:00
},
},
}