@@ -30,6 +30,7 @@ import com.google.gson.JsonObject
3030import com.intellij.ide.BrowserUtil
3131import com.intellij.openapi.actionSystem.impl.SimpleDataContext
3232import com.intellij.openapi.project.Project
33+ import com.intellij.openapi.util.SystemInfo
3334import kotlinx.coroutines.Dispatchers
3435import kotlinx.coroutines.delay
3536import kotlinx.coroutines.launch
@@ -49,6 +50,7 @@ import shop.itbug.flutterx.document.copyTextToClipboard
4950import shop.itbug.flutterx.dsl.formatUrl
5051import shop.itbug.flutterx.i18n.PluginBundle
5152import shop.itbug.flutterx.model.toCurlStringAsDartDevTools
53+ import shop.itbug.flutterx.model.toPowerShellString
5254import shop.itbug.flutterx.util.ComposeHelper
5355import shop.itbug.flutterx.util.MyFileUtil
5456import shop.itbug.flutterx.util.RunUtil
@@ -306,6 +308,7 @@ private fun OverviewTab(request: NetworkRequest, project: Project) {
306308 }
307309
308310 val curlText = request.toCurlStringAsDartDevTools()
311+ val powerShellText = request.toPowerShellString()
309312 Column (
310313 verticalArrangement = Arrangement .spacedBy(6 .dp),
311314 modifier = Modifier .verticalScroll(rememberScrollState())
@@ -353,6 +356,18 @@ private fun OverviewTab(request: NetworkRequest, project: Project) {
353356 Text (" Run Command To Terminal" )
354357 }
355358 }
359+ if (SystemInfo .isWindows) {
360+ Divider (Orientation .Horizontal , modifier = Modifier .fillMaxWidth())
361+ Title (" PowerShell" )
362+ Text (powerShellText)
363+ Row {
364+ IconActionButton (AllIconsKeys .Actions .Copy , contentDescription = " " , onClick = {
365+ powerShellText.copyTextToClipboard()
366+ }) {
367+ Text (PluginBundle .get(" copy" ) + " PowerShell" )
368+ }
369+ }
370+ }
356371 Divider (Orientation .Horizontal , modifier = Modifier .fillMaxWidth())
357372 Title (" Events" )
358373 Events (request)
0 commit comments