Options loops through the given [ReaderOption] functions and applies them to the [Reader].
(opts ...ReaderOption)
| 79 | // Options loops through the given [ReaderOption] functions and applies them to |
| 80 | // the [Reader]. |
| 81 | func (r *Reader) Options(opts ...ReaderOption) { |
| 82 | for _, opt := range opts { |
| 83 | opt.ApplyToReader(r) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // WithInsecure allows the [Reader] to make insecure connections when reading |
| 88 | // remote taskfiles. By default, insecure connections are rejected. |
no test coverage detected