From b6e9a4db0c6445f49b9c6098566829a85a214ae9 Mon Sep 17 00:00:00 2001 From: Jayanthi Date: Thu, 4 Sep 2025 19:04:37 -0700 Subject: [PATCH] add powershell example to conenction set up --- .../throughputreport/setup/ConfigurationCode.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Frontend/src/views/throughputreport/setup/ConfigurationCode.vue b/src/Frontend/src/views/throughputreport/setup/ConfigurationCode.vue index 9b031a12f..d004cdeb9 100644 --- a/src/Frontend/src/views/throughputreport/setup/ConfigurationCode.vue +++ b/src/Frontend/src/views/throughputreport/setup/ConfigurationCode.vue @@ -40,6 +40,15 @@ const windows = computed(() => { return list.join("\n"); }); +const powershell = computed(() => { + const list: string[] = []; + for (const item of props.settings) { + list.push(`# ${item.description}`); + list.push(`$env:${item.name.replaceAll("/", "_").toUpperCase()} = "enter value here"`); + } + return list.join("\n"); +}); + const languageSelected = ref("config"); const codeSelected = computed(() => { switch (languageSelected.value) { @@ -47,6 +56,8 @@ const codeSelected = computed(() => { return { code: bash.value, lang: "shell" }; case "windows": return { code: windows.value, lang: "shell" }; + case "powershell": + return { code: powershell.value, lang: "shell" }; default: return { code: config.value, lang: "xml" }; } @@ -65,6 +76,10 @@ const languages: Item[] = [ text: "Windows environment variables", value: "windows", }, + { + text: "PowerShell environment variables", + value: "powershell", + }, ]; function languageChanged(item: Item) {