diff --git a/go.mod b/go.mod index 3d9ac43..279a601 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mylxsw/remote-tail require ( - github.com/BurntSushi/toml v0.3.1 // indirect + github.com/BurntSushi/toml v0.3.1 golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c ) diff --git a/main.go b/main.go index 51fc5f6..917a15f 100644 --- a/main.go +++ b/main.go @@ -21,8 +21,8 @@ var welcomeMessage = getWelcomeMessage() + console.ColorfulText(console.TextMage var filePath = flag.String("file", "", "-file=\"/var/log/*.log\"") var hostStr = flag.String("hosts", "", "-hosts=root@192.168.1.101,root@192.168.1.102") var configFile = flag.String("conf", "", "-conf=example.toml") +var tailFlags = flag.String("tail-flags", "--retry --follow=name", "flags for tail command, you can use -f instead if your server does't support `--retry --follow=name` flags") var slient = flag.Bool("slient", false, "-slient=false") -var tailFlags = flag.String("tail_flags", "--retry --follow=name", "flags for tail command, you can use `-f` instead when your server does't support `--retry --follow=name` flags") var Version = "" var GitCommit = ""