Compare commits
5 Commits
add-licens
...
main
Author | SHA1 | Date | |
---|---|---|---|
a5f20e07a7 | |||
5e6ea7bd88 | |||
d99886af43 | |||
42425c82a1 | |||
b888bd3a63 |
|
@ -1,16 +1,19 @@
|
||||||
# tail2redis
|
# tail2redis
|
||||||
Tailing a file to Redis server
|
Tailing a file to Redis server (PubSub)
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ./tail2redis -h
|
$ ./tail2redis -h
|
||||||
NAME:
|
NAME:
|
||||||
tail2redis - Tailing a file to redis PubSub
|
tail2redis - Tailing a file to redis server (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
|
||||||
|
|
||||||
|
@ -22,7 +25,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/message
|
$ ./tail2redis -H localhost -P 6379 -p [PASSWORD] -c [CHANNEL] -f /var/log/messages
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contact me
|
## Contact me
|
||||||
|
|
9
main.go
9
main.go
|
@ -21,7 +21,14 @@ var ctx = context.Background()
|
||||||
func main() {
|
func main() {
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "tail2redis",
|
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{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "file",
|
Name: "file",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user