Skip to content

Commit

Permalink
cli doc: opm serve does not detect DC changes after startup
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Lanford <[email protected]>
  • Loading branch information
joelanford committed Aug 16, 2021
1 parent a4fd56c commit b8041af
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit b8041af

Please sign in to comment.