From f03c271e19f4b417a21515048fd026ddb5dff47e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 22 Dec 2023 16:04:54 +0700 Subject: all: support cancellation when running command using SSH client This changes require us to replace golang.org/x/crypto with our fork, since the [ssh.Session.Run] with context is not available yet in upstream. Implements: https://todo.sr.ht/~shulhan/awwan/9 --- _example/localhost/test.aww | 3 +++ 1 file changed, 3 insertions(+) (limited to '_example/localhost/test.aww') diff --git a/_example/localhost/test.aww b/_example/localhost/test.aww index 6773668..ff4019f 100644 --- a/_example/localhost/test.aww +++ b/_example/localhost/test.aww @@ -6,3 +6,6 @@ ls -al ~/ | grep .ssh echo "test" > /tmp/awwan.test cat /tmp/awwan.test # test + +## Test cancellation. +sleep 300 -- cgit v1.3