move to go.wit.com/shell
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ce748973b9
commit
a329d9de9d
|
@ -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
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
)
|
|
@ -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=
|
2
linux.go
2
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"
|
||||
|
|
2
run.go
2
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
|
||||
|
||||
|
|
2
wget.go
2
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"
|
||||
*/
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue