()
| 128 | } |
| 129 | |
| 130 | func (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 | |
| 141 | func (impl *ServerImpl) BadgeWatchPidCommand(ctx context.Context, data wshrpc.CommandBadgeWatchPidData) error { |
| 142 | if data.Pid <= 0 { |
no test coverage detected