This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 10187466 Fix #619
10187466 is described below
commit 1018746693978561b4cfdeca520c5c0b5931c61d
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Tue Jan 17 20:16:38 2023 -0500
Fix #619
---
karavan-vscode/src/jbang.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/karavan-vscode/src/jbang.ts b/karavan-vscode/src/jbang.ts
index f7c98af1..6d5a6f0f 100644
--- a/karavan-vscode/src/jbang.ts
+++ b/karavan-vscode/src/jbang.ts
@@ -22,7 +22,8 @@ import * as exec from "./exec";
import { CamelDefinitionYaml } from "core/api/CamelDefinitionYaml";
export async function camelJbangGenerate(rootPath: string, openApiFullPath:
string, fullPath: string, add: boolean, generateRoutes: boolean, generateRest:
boolean) {
- let command = prepareCommand("generate rest -i " + openApiFullPath);
+ let command = prepareCommand("generate rest -i '" + openApiFullPath + "'");
+ console.log(command);
if (generateRoutes === true) command = command + " --routes";
executeJbangCommand(rootPath, command, async (code, stdout, stderr) => {
console.log('Exit code:', code);