12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package daemon
- import (
- "git.beejay.kim/tool/service/config"
- "github.com/urfave/cli/v2"
- )
- var flags = []cli.Flag{
- &cli.PathFlag{
- Name: "config",
- Usage: "config file path",
- Required: true,
- Aliases: []string{"C"},
- TakesFile: false,
- Action: config.Load[Configuration],
- },
- &cli.StringFlag{
- Name: "topic",
- Usage: "kafka producer topic name",
- Required: true,
- Destination: &topic,
- Aliases: []string{"T"},
- },
- &cli.StringFlag{
- Name: "pid",
- Usage: "platform ID",
- Required: true,
- Destination: &pid,
- },
- &cli.StringFlag{
- Name: "bid",
- Usage: "broadcaster ID",
- Required: true,
- Destination: &bid,
- },
- &cli.PathFlag{
- Name: "record",
- TakesFile: false,
- Destination: &pathRecord,
- },
- &cli.StringFlag{
- Name: "player",
- Usage: "whether we want to watch stream in realtime",
- Destination: &pathPlayer,
- },
- }
|