diff --git a/frontend/src/organisms/connection/shell.svelte b/frontend/src/organisms/connection/shell.svelte
index 403d16c..ecdb501 100644
--- a/frontend/src/organisms/connection/shell.svelte
+++ b/frontend/src/organisms/connection/shell.svelte
@@ -3,7 +3,7 @@
import CodeEditor from '$components/editors/codeeditor.svelte';
import Icon from '$components/icon.svelte';
import environment from '$lib/stores/environment.js';
- import { OpenShellScript, SaveShellScript } from '$wails/go/app/App.js';
+ import { OpenShellScript, SaveShellScript, SaveShellOuput } from '$wails/go/app/App.js';
import { BrowserOpenURL } from '$wails/runtime/runtime.js';
import { javascript } from '@codemirror/lang-javascript';
import { onDestroy, onMount } from 'svelte';
@@ -73,6 +73,10 @@
);
}
+ async function saveOutput() {
+ await SaveShellOuput(result.output + '\n' + result.stderr);
+ }
+
async function copyErrorDescription() {
await navigator.clipboard.writeText(result.errorDescription);
copySucceeded = true;
@@ -155,6 +159,10 @@
+
+
diff --git a/frontend/wailsjs/go/app/App.d.ts b/frontend/wailsjs/go/app/App.d.ts
index 4d5ac85..20aea35 100755
--- a/frontend/wailsjs/go/app/App.d.ts
+++ b/frontend/wailsjs/go/app/App.d.ts
@@ -72,6 +72,8 @@ export function ReportSharedStateVariable(arg1:string,arg2:string):Promise
export function SaveQuery(arg1:string):Promise;
+export function SaveShellOuput(arg1:string):Promise;
+
export function SaveShellScript(arg1:string,arg2:string,arg3:string,arg4:string,arg5:boolean):Promise;
export function SavedQueries():Promise