implement wsh setconfig (#284)

This commit is contained in:
Mike Sawka
2024-08-27 22:02:21 -07:00
committed by GitHub
parent 8630e23239
commit a3aa941b68
10 changed files with 126 additions and 59 deletions
+5
View File
@@ -21,6 +21,7 @@ import (
"github.com/wavetermdev/thenextwave/pkg/filestore"
"github.com/wavetermdev/thenextwave/pkg/waveai"
"github.com/wavetermdev/thenextwave/pkg/waveobj"
"github.com/wavetermdev/thenextwave/pkg/wconfig"
"github.com/wavetermdev/thenextwave/pkg/wcore"
"github.com/wavetermdev/thenextwave/pkg/wlayout"
"github.com/wavetermdev/thenextwave/pkg/wps"
@@ -477,3 +478,7 @@ func (ws *WshServer) EventUnsubAllCommand(ctx context.Context) error {
wps.Broker.UnsubscribeAll(rpcSource)
return nil
}
func (ws *WshServer) SetConfigCommand(ctx context.Context, data waveobj.MetaMapType) error {
return wconfig.SetBaseConfigValue(data)
}