mirror of
https://github.com/strongdm/comply
synced 2024-08-26 09:16:47 +00:00
22 lines
388 B
Go
22 lines
388 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/strongdm/comply/internal/render"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var serveCommand = cli.Command{
|
|
Name: "serve",
|
|
Usage: "live updating version of the build command",
|
|
Action: serveAction,
|
|
Before: beforeAll(dockerMustExist),
|
|
}
|
|
|
|
func serveAction(c *cli.Context) error {
|
|
err := render.Build("output", true)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|