StringSliceSep defines string slice env var descriptor with custom separator. The separator is read from the provided StringVar descriptor's env variable.
(name string, separatorDesc StringVar)
| 178 | // StringSliceSep defines string slice env var descriptor with custom separator. |
| 179 | // The separator is read from the provided StringVar descriptor's env variable. |
| 180 | func StringSliceSep(name string, separatorDesc StringVar) StringSliceVar { |
| 181 | return StringSliceVar{ |
| 182 | Name: name, |
| 183 | format: "separated list of strings", |
| 184 | parseFn: parseStringSliceSep(separatorDesc), |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // StringSliceFile defines string slice from file env var descriptor. |
| 189 | // The file path is read from CLI args (--{cliArgName}) or falls back to the env variable. |