(ctx context.Context)
| 23 | } |
| 24 | |
| 25 | func GetFS(ctx context.Context) FS { |
| 26 | f := ctx.Value(fsKey{}) |
| 27 | if f == nil { |
| 28 | return &osFS{&afero.OsFs{}} |
| 29 | } |
| 30 | |
| 31 | //nolint we should panic if this isn't the case. |
| 32 | return f.(FS) |
| 33 | } |
| 34 | |
| 35 | type osFS struct { |
| 36 | *afero.OsFs |
no outgoing calls