Run runs the command logic
(cobraCmd *cobra.Command, args []string)
| 36 | |
| 37 | // Run runs the command logic |
| 38 | func (cmd *DownstreamCmd) Run(cobraCmd *cobra.Command, args []string) error { |
| 39 | absolutePath, err := ensurePath(args) |
| 40 | if err != nil { |
| 41 | return err |
| 42 | } |
| 43 | |
| 44 | return server.StartDownstreamServer(os.Stdin, os.Stdout, &server.DownstreamOptions{ |
| 45 | RemotePath: absolutePath, |
| 46 | ExcludePaths: cmd.Exclude, |
| 47 | |
| 48 | Throttle: cmd.Throttle, |
| 49 | Polling: cmd.Polling, |
| 50 | ExitOnClose: true, |
| 51 | NoRecursiveWatch: !cmd.RecursiveWatch, |
| 52 | Ping: true, |
| 53 | }) |
| 54 | } |
nothing calls this directly
no test coverage detected