Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions cmd/opm/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "serve <source_path>",
Short: "serve declarative configs",
Long: `serve declarative configs via grpc`,
Args: cobra.ExactArgs(1),
Long: `This command serves declarative configs via a GRPC server.

NOTE: The declarative config directory is loaded by the serve command at
startup. Changes made to the declarative config after the this command starts
will not be reflected in the served content.
`,
Args: cobra.ExactArgs(1),
PreRunE: func(_ *cobra.Command, args []string) error {
s.configDir = args[0]
if s.debug {
Expand Down