MCPcopy
hub / github.com/wavetermdev/waveterm / getWshPath

Method getWshPath

pkg/wshrpc/wshremote/wshremote.go:130–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func (impl *ServerImpl) getWshPath() (string, error) {
131 if impl.IsLocal {
132 return filepath.Join(wavebase.GetWaveDataDir(), "bin", "wsh"), nil
133 }
134 wshPath, err := wavebase.ExpandHomeDir("~/.waveterm/bin/wsh")
135 if err != nil {
136 return "", fmt.Errorf("cannot expand wsh path: %w", err)
137 }
138 return wshPath, nil
139}
140
141func (impl *ServerImpl) BadgeWatchPidCommand(ctx context.Context, data wshrpc.CommandBadgeWatchPidData) error {
142 if data.Pid <= 0 {

Callers 1

RemoteStartJobCommandMethod · 0.95

Calls 2

GetWaveDataDirFunction · 0.92
ExpandHomeDirFunction · 0.92

Tested by

no test coverage detected