SetOptions sets the options in ctx from flags passed in. Any existing flags will be overwritten. s should be in the same format as cmd line flags, i.e. "all,prefix=XXX"
(ctx context.Context, s ...string)
| 36 | // Any existing flags will be overwritten. |
| 37 | // s should be in the same format as cmd line flags, i.e. "all,prefix=XXX" |
| 38 | func SetOptions(ctx context.Context, s ...string) (err error) { |
| 39 | ci := fs.GetConfig(ctx) |
| 40 | ci.NameTransform = s |
| 41 | _, err = getOptions(ctx) |
| 42 | return err |
| 43 | } |
| 44 | |
| 45 | // cache to minimize re-parsing |
| 46 | var ( |
searching dependent graphs…