File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/Frontend/src/views/throughputreport/setup Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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+
4352const languageSelected = ref (" config" );
4453const 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
7085function languageChanged(item : Item ) {
You can’t perform that action at this time.
0 commit comments