summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-20 14:46:13 -0600
committerJeff Carr <[email protected]>2023-12-20 14:46:13 -0600
commita329d9de9d0458d2b0898d3aec8ae6eb4e8e012b (patch)
tree8c8d2a300a4b9174c146e82c31a99da673f28fee
parentce748973b9b663e3d735e5501d46c83966e91a81 (diff)
move to go.wit.com/shell
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--README.md2
-rw-r--r--example1/main.go2
-rw-r--r--example2/main.go2
-rw-r--r--go.mod17
-rw-r--r--go.sum30
-rw-r--r--linux.go2
-rw-r--r--nohup.out0
-rw-r--r--run.go2
-rw-r--r--wget.go2
-rw-r--r--windows.go2
10 files changed, 54 insertions, 7 deletions
diff --git a/README.md b/README.md
index 0813d3e..3711e26 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ non-blocking unbuffered way
# install
```
-go get -v -t -u git.wit.org/wit/shell
+go get -v -t -u go.wit.com/shell
```
# License
diff --git a/example1/main.go b/example1/main.go
index e71ef27..6aa9399 100644
--- a/example1/main.go
+++ b/example1/main.go
@@ -9,7 +9,7 @@ import "os"
// import "github.com/davecgh/go-spew/spew"
-import "git.wit.org/wit/shell"
+import "go.wit.com/shell"
func main() {
shell.Run("ls /tmp")
diff --git a/example2/main.go b/example2/main.go
index 2e94c7f..56ec1e6 100644
--- a/example2/main.go
+++ b/example2/main.go
@@ -2,7 +2,7 @@ package main
import "log"
// import "fmt"
-import "git.wit.org/wit/shell"
+import "go.wit.com/shell"
func main() {
err := shell.Run("cat /etc/issue")
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..9db1c34
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,17 @@
+module go.wit.com/shell
+
+go 1.21.4
+
+require (
+ github.com/sirupsen/logrus v1.9.3
+ github.com/svent/go-nbreader v0.0.0-20150201200112-7cef48da76dc
+ github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef
+ github.com/wercker/journalhook v0.0.0-20230927020745-64542ffa4117
+ golang.org/x/crypto v0.17.0
+)
+
+require (
+ github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
+ golang.org/x/sys v0.15.0 // indirect
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..db8ed0b
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,30 @@
+github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf h1:iW4rZ826su+pqaw19uhpSCzhj44qo35pNgKFGqzDKkU=
+github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
+github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
+github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/svent/go-nbreader v0.0.0-20150201200112-7cef48da76dc h1:usYkrH2/es/TT7ETdC/qLAagcJPW3EEYFKqvibSnFbA=
+github.com/svent/go-nbreader v0.0.0-20150201200112-7cef48da76dc/go.mod h1:pPzZl0vMkUhyoxUF8PAGG5bDRGo7PY80oO/PMmpLkkc=
+github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef h1:7D6Nm4D6f0ci9yttWaKjM1TMAXrH5Su72dojqYGntFY=
+github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef/go.mod h1:WLFStEdnJXpjK8kd4qKLwQKX/1vrDzp5BcDyiZJBHJM=
+github.com/wercker/journalhook v0.0.0-20230927020745-64542ffa4117 h1:67A5tweHp3C7osHjrYsy6pQZ00bYkTTttZ7kiOwwHeA=
+github.com/wercker/journalhook v0.0.0-20230927020745-64542ffa4117/go.mod h1:XCsSkdKK4gwBMNrOCZWww0pX6AOt+2gYc5Z6jBRrNVg=
+golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
+golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
+golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
+golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
+golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/linux.go b/linux.go
index ebcdc8b..5a602a1 100644
--- a/linux.go
+++ b/linux.go
@@ -13,7 +13,7 @@ import "syscall"
// import "time"
// import "reflect"
-// import "git.wit.org/wit/shell"
+// import "go.wit.com/shell"
// import "github.com/davecgh/go-spew/spew"
import "github.com/wercker/journalhook"
diff --git a/nohup.out b/nohup.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nohup.out
diff --git a/run.go b/run.go
index e56c34c..6dfda3f 100644
--- a/run.go
+++ b/run.go
@@ -13,7 +13,7 @@ import "github.com/svent/go-nbreader"
// import "github.com/davecgh/go-spew/spew"
import "log"
-// import "git.wit.org/wit/log"
+// import "go.wit.com/log"
var msecDelay int = 20 // check every 20 milliseconds
diff --git a/wget.go b/wget.go
index d45bd32..f32f545 100644
--- a/wget.go
+++ b/wget.go
@@ -19,7 +19,7 @@ import "strings"
import "net/http"
/*
-import "git.wit.org/wit/shell"
+import "go.wit.com/shell"
import "github.com/davecgh/go-spew/spew"
*/
diff --git a/windows.go b/windows.go
index 380eba0..66be4b0 100644
--- a/windows.go
+++ b/windows.go
@@ -6,7 +6,7 @@ package shell
import "log"
-// import "git.wit.org/wit/shell"
+// import "go.wit.com/shell"
// import "github.com/davecgh/go-spew/spew"
func handleSignal(err interface{}, ret int) {