implement cache drop
This commit is contained in:
parent
4f7d9d71b3
commit
1a9561bc0d
2 changed files with 22 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ from .toml import import_tomls, update_project, reimport_project
|
|||
from .find import find_record, list_projects
|
||||
from .tools import str2list
|
||||
from .main import update_aliases
|
||||
from .meas_io import drop_cache as mio_drop_cache
|
||||
import os
|
||||
|
||||
app = typer.Typer()
|
||||
|
|
@ -157,6 +158,21 @@ def init(
|
|||
return
|
||||
|
||||
|
||||
@app.command()
|
||||
def drop_cache(
|
||||
path: str = typer.Option(
|
||||
str('./corrlib'),
|
||||
"--dataset",
|
||||
"-d",
|
||||
),
|
||||
) -> None:
|
||||
"""
|
||||
Drop the currect cache directory of the dataset.
|
||||
"""
|
||||
mio_drop_cache(path)
|
||||
return
|
||||
|
||||
|
||||
@app.callback()
|
||||
def main(
|
||||
version: Optional[bool] = typer.Option(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue