Compare commits
No commits in common. "main" and "add-license-1" have entirely different histories.
main
...
add-licens
|
@ -1,19 +1,16 @@
|
||||||
# tail2redis
|
# tail2redis
|
||||||
Tailing a file to Redis server (PubSub)
|
Tailing a file to Redis server
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ./tail2redis -h
|
$ ./tail2redis -h
|
||||||
NAME:
|
NAME:
|
||||||
tail2redis - Tailing a file to redis server (PubSub)
|
tail2redis - Tailing a file to redis PubSub
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
tail2redis [global options] command [command options] [arguments...]
|
tail2redis [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
AUTHOR:
|
|
||||||
Namhyeon Go <abuse@catswords.net>
|
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
help, h Shows a list of commands or help for one command
|
help, h Shows a list of commands or help for one command
|
||||||
|
|
||||||
|
@ -25,7 +22,7 @@ GLOBAL OPTIONS:
|
||||||
--channel value, -c value Redis PubSub channel (default: "tail2redis")
|
--channel value, -c value Redis PubSub channel (default: "tail2redis")
|
||||||
--help, -h show help
|
--help, -h show help
|
||||||
|
|
||||||
$ ./tail2redis -H localhost -P 6379 -p [PASSWORD] -c [CHANNEL] -f /var/log/messages
|
$ ./tail2redis -H localhost -P 6379 -p [PASSWORD] -c [CHANNEL] -f /var/log/message
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contact me
|
## Contact me
|
||||||
|
|
9
main.go
9
main.go
|
@ -21,14 +21,7 @@ var ctx = context.Background()
|
||||||
func main() {
|
func main() {
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "tail2redis",
|
Name: "tail2redis",
|
||||||
Usage: "Tailing a file to redis server (PubSub)",
|
Usage: "Tailing a file to redis PubSub",
|
||||||
Compiled: time.Now(),
|
|
||||||
Authors: []*cli.Author{
|
|
||||||
&cli.Author{
|
|
||||||
Name: "Namhyeon Go",
|
|
||||||
Email: "abuse@catswords.net",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "file",
|
Name: "file",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user