Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

422 B
Raw Blame
package main

import (
	"bytes"
	"testing"
)

func TestRunRejectsIncompleteCommandsBeforeConnecting(t *testing.T) {
	for _, args := range [][]string{nil, {"rotate"}, {"revoke"}, {"revoke", "--agent-id", ""}, {"revoke", "--agent-id", "agent", "extra"}} {
		var stdout bytes.Buffer
		if err := run(t.Context(), args, &stdout); err == nil || err.Error() != usage {
			t.Fatalf("run(%q) = %v, want usage", args, err)
		}
	}
}