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