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) {