openvibers/openvibe.link Commits

Ask a clone approval on the desktop too, not only in the terminal (#153)

OP OpenVibers committed 2 days ago · tag v0.55. · 0 files, +0 −0

A "Clone to my computer" request now shows a desktop prompt with Approve
and Deny (a notification with buttons on Linux, a dialog with Deny default
on macOS) next to the terminal's y/N: the first answer wins, and the prompt
is taken down once the terminal answers. Only an explicit approval approves;
a dismissal, a closed input and anything but y are no, an expired request
asks nothing, and a piped input never decides while the desktop asks. The
non-empty folder's second answer can come from the desktop as well.

Version 0.55.0.

Checked: go vet and go test -race ./cmd/openvibe-link ./internal/gitrelay
(new git_prompt_test.go: desktop Approve/Deny, no-desktop fallback to the
terminal, expiry asks nothing, no-terminal-no-desktop errors, desktop alone
decides, cancelled run stops, terminal answer takes the desktop down,
overwrite second answer, osascript quoting); GOOS=windows/darwin builds.

This commit has no diff to show.