Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete local cache by default #20

Closed
mnuttall opened this issue Mar 30, 2020 · 3 comments
Closed

Delete local cache by default #20

mnuttall opened this issue Mar 30, 2020 · 3 comments
Assignees

Comments

@mnuttall
Copy link
Collaborator

After one call to promote, it is necessary to rm -rf ~/.promotion/cache before the next. Modify the CLI so that the cache is deleted by default. Add a --keep flag to prevent cache deletion.

@bigkevmcd
Copy link
Collaborator

bigkevmcd commented Mar 30, 2020

Add a Remove() error method to the Repository and trigger it (defer) at the end of the Promote method.

Inside Remove(), use https://golang.org/pkg/os/#RemoveAll to delete the tree.

@dibbles
Copy link
Contributor

dibbles commented Mar 31, 2020

I'll take a look at doing this.

@dibbles
Copy link
Contributor

dibbles commented Apr 1, 2020

This can be closed by someone with relevant powers. @mnuttall @bigkevmcd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants