Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli doc: opm serve does not detect DC changes after startup #750

Merged
merged 1 commit into from
Aug 16, 2021
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