Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ AgentSSH uses standard SSH from the local machine (its built-in Go SSH client by

```bash
# 1. Install — static binary, no Go required (see "Install" for macOS / arm64).
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.6.0/agentssh_v0.6.0_linux_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.6.0_linux_amd64/agentssh
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.7.0/agentssh_v0.7.0_linux_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.7.0_linux_amd64/agentssh

# 2. Open the console — this is your main entry point:
agentssh tui
Expand Down Expand Up @@ -75,23 +75,23 @@ Static binaries (`CGO_ENABLED=0`, no runtime deps). Pick your platform; each is

```bash
# Linux x86_64
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.6.0/agentssh_v0.6.0_linux_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.6.0_linux_amd64/agentssh
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.7.0/agentssh_v0.7.0_linux_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.7.0_linux_amd64/agentssh

# Linux arm64
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.6.0/agentssh_v0.6.0_linux_arm64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.6.0_linux_arm64/agentssh
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.7.0/agentssh_v0.7.0_linux_arm64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.7.0_linux_arm64/agentssh

# macOS Apple Silicon (arm64)
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.6.0/agentssh_v0.6.0_darwin_arm64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.6.0_darwin_arm64/agentssh
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.7.0/agentssh_v0.7.0_darwin_arm64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.7.0_darwin_arm64/agentssh

# macOS Intel (amd64)
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.6.0/agentssh_v0.6.0_darwin_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.6.0_darwin_amd64/agentssh
curl -fsSL https://github.com/Praeviso/AgentSSH/releases/download/v0.7.0/agentssh_v0.7.0_darwin_amd64.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin agentssh_v0.7.0_darwin_amd64/agentssh
```

Verify: `agentssh --version`. (Bump `v0.6.0` for a different release; checksums are in `SHA256SUMS.txt` on the Releases page.)
Verify: `agentssh --version`. (Bump `v0.7.0` for a different release; checksums are in `SHA256SUMS.txt` on the Releases page.)

### From source (needs Go matching the go.mod directive)

Expand Down
7 changes: 7 additions & 0 deletions cmd/agentssh/m5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ func withFakeExecutor(t *testing.T, fe fakeExecutor) {
t.Cleanup(func() { newExecutor = restore })
}

func withOperatorTTY(t *testing.T) {
t.Helper()
restore := stdinIsTerminal
stdinIsTerminal = func() bool { return true }
t.Cleanup(func() { stdinIsTerminal = restore })
}

// runExit runs the root command with args and returns the mapped process exit
// code (via the same exitCodeForError that execute() uses) plus stdout/stderr.
func runExit(t *testing.T, args ...string) (int, string, string) {
Expand Down
Loading
Loading