cloudposse / cloudposse/atmos

Feature request: `atmos vendor clean`

Open
#701 9 comments 0 reactions 1 assignee Claimed by @osterman View on GitHub
Dominant language
Go
Stars
1.4k
Forks
175
Avg merge
2d 3h
Merged PRs (30d)
134

Description

### Describe the Feature

We are using the `vendor` feature a lot and especially while developing it is sometimes necessary to purge a vendored directories.

In our case it boils down to a `rm -rf components/terraform` and we could wrap it in a custom command. But it is a dangerous command to script due to the required `-f` flag (required for the `.git` directory within `.terraform/modules` ) and thus it would be nice if there was a "safer" command to give to our novice colleagues.

It would also be useful if flags like `--component` and the like were supported as well.

### Expected Behavior

An official, safe way to remove vendored stuff exists.

### Use Case

A safe way to remove vendored directories for novice users.

### Describe Ideal Solution

Calling `atmos vendor clean` will remove everything added by `atmos vendor pull`. If directories were vendored, they should be deleted recursively with everything included, including non-vendored files and directories.

### Alternatives Considered

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.