MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / RenameAppFileCommand

Method RenameAppFileCommand

pkg/wshrpc/wshserver/wshserver.go:1115–1120  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandRenameAppFileData)

Source from the content-addressed store, hash-verified

1113}
1114
1115func (ws *WshServer) RenameAppFileCommand(ctx context.Context, data wshrpc.CommandRenameAppFileData) error {
1116 if data.AppId == "" {
1117 return fmt.Errorf("must provide an appId to RenameAppFileCommand")
1118 }
1119 return waveappstore.RenameAppFile(data.AppId, data.FromFileName, data.ToFileName)
1120}
1121
1122func (ws *WshServer) WriteAppSecretBindingsCommand(ctx context.Context, data wshrpc.CommandWriteAppSecretBindingsData) error {
1123 if data.AppId == "" {

Callers

nothing calls this directly

Calls 1

RenameAppFileFunction · 0.92

Tested by

no test coverage detected