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

Add subcommand to clean cache files #4

Merged
merged 5 commits into from Jun 3, 2022
Merged

Conversation

mcflugen
Copy link
Member

@mcflugen mcflugen commented Jun 2, 2022

This pull request adds the clean subcommand to ww3 that remove cached data files.

The following removes all cached data files from the default location (~/.wavewatch3/data)

$ ww3 clean

A user can specify another location through the --cache-dir option.

@mdpiper
Copy link
Member

mdpiper commented Jun 2, 2022

I wonder if we should use a top-level directory (like ~/.csdms) to group the cache files for our data components? So we'd have ~/.csdms/wavewatch3, ~/.csdms/bmi-topography, etc.

@mcflugen
Copy link
Member Author

mcflugen commented Jun 2, 2022

@mdpiper I was wondering the same thing. I don't have a strong opinion at the moment but it's something worth thinking about.

@mdpiper
Copy link
Member

mdpiper commented Jun 2, 2022

@mcflugen I'll add a placeholder issue to https://github.com/csdms/bmi-topography (since I'm less likely to forget about it there).

@mcflugen mcflugen merged commit 12c1a0b into main Jun 3, 2022
@mcflugen mcflugen deleted the mcflugen/add-clean-subcommand branch June 3, 2022 01:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants