From 78ce37db9f13c5439b30663a3c54b283bd3f539c Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 28 Sep 2020 23:48:51 +0100 Subject: Run multiple instances by attaching to original Fixes #1. When another instance is detected, a command is sent over the socket for the original to write to stdout and to a temporary file, which is then tailed by the new instance. Can be overridden with --replace. --- go.mod | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go.mod') diff --git a/go.mod b/go.mod index 272b53e..42086c6 100644 --- a/go.mod +++ b/go.mod @@ -4,5 +4,9 @@ go 1.15 require ( github.com/godbus/dbus/v5 v5.0.3 + github.com/hpcloud/tail v1.0.0 github.com/spf13/pflag v1.0.5 + golang.org/x/sys v0.0.0-20200928205150-006507a75852 // indirect + gopkg.in/fsnotify.v1 v1.4.7 // indirect + gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect ) -- cgit v1.2.3