Skip to content

Commit 34420e8

Browse files
authored
add powershell example to connection set up (#2619)
1 parent 3f582c6 commit 34420e8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Frontend/src/views/throughputreport/setup/ConfigurationCode.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,24 @@ const windows = computed(() => {
4040
return list.join("\n");
4141
});
4242
43+
const powershell = computed(() => {
44+
const list: string[] = [];
45+
for (const item of props.settings) {
46+
list.push(`# ${item.description}`);
47+
list.push(`$env:${item.name.replaceAll("/", "_").toUpperCase()} = "enter value here"`);
48+
}
49+
return list.join("\n");
50+
});
51+
4352
const languageSelected = ref("config");
4453
const codeSelected = computed(() => {
4554
switch (languageSelected.value) {
4655
case "bash":
4756
return { code: bash.value, lang: <CodeLanguage>"shell" };
4857
case "windows":
4958
return { code: windows.value, lang: <CodeLanguage>"shell" };
59+
case "powershell":
60+
return { code: powershell.value, lang: <CodeLanguage>"shell" };
5061
default:
5162
return { code: config.value, lang: <CodeLanguage>"xml" };
5263
}
@@ -65,6 +76,10 @@ const languages: Item[] = [
6576
text: "Windows environment variables",
6677
value: "windows",
6778
},
79+
{
80+
text: "PowerShell environment variables",
81+
value: "powershell",
82+
},
6883
];
6984
7085
function languageChanged(item: Item) {

0 commit comments

Comments
 (0)