This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 4446fa884723bba1966d0005fc0e5d089661915f Author: Doru Bercea <gheorghe-teod.ber...@ibm.com> AuthorDate: Tue Jan 19 21:46:51 2021 -0500 Fix modeline for inspect. --- pkg/cmd/inspect.go | 2 +- pkg/cmd/modeline.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/inspect.go b/pkg/cmd/inspect.go index 6979502..3687879 100644 --- a/pkg/cmd/inspect.go +++ b/pkg/cmd/inspect.go @@ -56,7 +56,7 @@ will be generated by calling Maven and then printed in the selected output forma }, } - cmd.Flags().Bool("all-dependencies", false, "Compute transitive dependencies and move them to directory pointed to by the --dependencies-directory flag.") + cmd.Flags().Bool("all-dependencies", false, "Enable computation of transitive dependencies.") cmd.Flags().StringArrayP("dependency", "d", nil, additionalDependencyUsageMessage) cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml") cmd.Flags().StringArray("maven-repository", nil, "Use a maven repository") diff --git a/pkg/cmd/modeline.go b/pkg/cmd/modeline.go index ce10b40..99711e5 100644 --- a/pkg/cmd/modeline.go +++ b/pkg/cmd/modeline.go @@ -36,6 +36,7 @@ const ( createCmdName = "create" localCmdName = "local" runCmdSourcesArgs = "source" + inspectCmdName = "inspect" ) var ( @@ -90,8 +91,9 @@ func createKamelWithModelineCommand(ctx context.Context, args []string) (*cobra. } isLocalCreate := target.Name() == createCmdName && target.Parent().Name() == localCmdName + isInspect := target.Name() == inspectCmdName - if target.Name() != runCmdName && !isLocalCreate { + if target.Name() != runCmdName && !isLocalCreate && !isInspect { return rootCmd, args, nil }