Compare commits

..

5 Commits

Author SHA1 Message Date
a5f20e07a7
Update README.md 2023-02-23 01:53:40 +09:00
5e6ea7bd88
Update README.md 2023-02-22 20:20:27 +09:00
d99886af43
Update main.go 2023-02-22 20:19:56 +09:00
42425c82a1
Update README.md 2023-02-22 20:15:27 +09:00
b888bd3a63
Merge pull request #1 from gnh1201/add-license-1
Create LICENSE
2023-02-22 20:12:59 +09:00
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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",