1
0
mirror of https://github.com/strongdm/comply synced 2024-07-17 16:20:33 +00:00
comply/internal/cli/serve.go

22 lines
388 B
Go
Raw Normal View History

2018-05-10 01:02:33 +00:00
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
}