doru1004 commented on a change in pull request #1777:
URL: https://github.com/apache/camel-k/pull/1777#discussion_r518100679



##########
File path: pkg/cmd/inspect.go
##########
@@ -182,3 +304,30 @@ func printDependencies(format string, dependecies 
*strset.Set) error {
        }
        return nil
 }
+
+func getWorkingDirectory() (string, error) {
+       currentDirectory, err := os.Getwd()
+       if err != nil {
+               return "", err
+       }
+
+       return currentDirectory, nil
+}
+
+func createCamelCatalog() (*camel.RuntimeCatalog, error) {
+       // Attempt to reuse existing Camel catalog if one is present.
+       catalog, err := camel.MainCatalog()

Review comment:
       Replaced.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to