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

Method WslDefaultDistroCommand

pkg/wshrpc/wshserver/wshserver.go:746–755  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

744}
745
746func (ws *WshServer) WslDefaultDistroCommand(ctx context.Context) (string, error) {
747 distro, ok, err := wsl.DefaultDistro(ctx)
748 if err != nil {
749 return "", fmt.Errorf("unable to determine default distro: %w", err)
750 }
751 if !ok {
752 return "", fmt.Errorf("unable to determine default distro")
753 }
754 return distro.Name(), nil
755}
756
757/**
758 * Dismisses the WshFail Command in runtime memory on the backend

Callers

nothing calls this directly

Calls 2

DefaultDistroFunction · 0.92
NameMethod · 0.45

Tested by

no test coverage detected