From e7b7999a8d9bf4722fd067636f21b8eb546fb314 Mon Sep 17 00:00:00 2001 From: Reinier Cruz <30391816+ReinierCC@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:00:29 -0400 Subject: [PATCH] changing draft version to .38 and removing manual appname (#874) Co-authored-by: Reinier Cruz --- package.json | 2 +- src/commands/utils/draft.ts | 2 +- src/panels/draft/DraftDeploymentPanel.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a6f9c69e..d20f730d 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ }, "aks.drafttool.releaseTag": { "type": "string", - "default": "v0.0.33", + "default": "v0.0.38", "title": "Draft repository release tag", "description": "Release tag for the stable Draft tool release." }, diff --git a/src/commands/utils/draft.ts b/src/commands/utils/draft.ts index fab98e24..77289694 100644 --- a/src/commands/utils/draft.ts +++ b/src/commands/utils/draft.ts @@ -56,7 +56,7 @@ async function getDeploymentFiles( .join(" "); const language = "java"; // So it doesn't attempt to autodetect the language - const command = `draft create --language ${language} --deployment-only --deploy-type ${deploymentType} --app testapp ${variableArgs} --destination ${destDir} --dry-run --silent`; + const command = `draft create --language ${language} --deployment-only --deploy-type ${deploymentType} ${variableArgs} --destination ${destDir} --dry-run --silent`; const execOptions: ShellOptions = { envPaths: [path.dirname(draftBinaryPath)], diff --git a/src/panels/draft/DraftDeploymentPanel.ts b/src/panels/draft/DraftDeploymentPanel.ts index 6f4de6ac..fdb56a30 100644 --- a/src/panels/draft/DraftDeploymentPanel.ts +++ b/src/panels/draft/DraftDeploymentPanel.ts @@ -283,7 +283,7 @@ export class DraftDeploymentDataProvider implements PanelDataProvider<"draftDepl .join(" "); const language = "java"; // So it doesn't attempt to autodetect the language - const command = `draft create --language ${language} --deployment-only --deploy-type ${args.deploymentSpecType} --app ${args.applicationName} ${variableArgs} --destination .${path.sep}${args.location} --skip-file-detection`; + const command = `draft create --language ${language} --deployment-only --deploy-type ${args.deploymentSpecType} ${variableArgs} --destination .${path.sep}${args.location} --skip-file-detection`; const execOptions: ShellOptions = { workingDir: this.workspaceFolder.uri.fsPath,