2026-05-20 15:26:41 -05:00
|
|
|
//go:build !darwin && !windows
|
2026-04-13 10:49:36 -05:00
|
|
|
|
|
|
|
|
package handlers
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
agentRuntime "overlord-client/cmd/agent/runtime"
|
|
|
|
|
"overlord-client/cmd/agent/wire"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func HandleElevate(ctx context.Context, env *agentRuntime.Env, cmdID string, password string) error {
|
|
|
|
|
return wire.WriteMsg(ctx, env.Conn, wire.CommandResult{
|
|
|
|
|
Type: "command_result",
|
|
|
|
|
CommandID: cmdID,
|
|
|
|
|
OK: false,
|
|
|
|
|
Message: "elevation via password is only supported on macOS",
|
|
|
|
|
})
|
|
|
|
|
}
|