(ctx context.Context, explanation, targetFile string)
| 124 | } |
| 125 | |
| 126 | func (env *Environment) FileDelete(ctx context.Context, explanation, targetFile string) error { |
| 127 | err := env.apply(ctx, env.container().WithoutFile(targetFile)) |
| 128 | if err != nil { |
| 129 | return fmt.Errorf("failed applying file delete, skipping git propagation: %w", err) |
| 130 | } |
| 131 | env.Notes.Add("Delete %s", targetFile) |
| 132 | return nil |
| 133 | } |
| 134 | |
| 135 | func (env *Environment) FileList(ctx context.Context, path string) (string, error) { |
| 136 | entries, err := env.container().Directory(path).Entries(ctx) |
no test coverage detected