hmp workspace#
$ hmp workspace [-h] <action> ...Scaffold, list and clean a workspace
| Command | What it does |
|---|---|
hmp workspace init | Scaffold a HydroModPy workspace (data + projects). Default: ~/hydromodpy/ |
hmp workspace list | List the sealed runs of every project under a workspace, from their directories |
hmp workspace clean | Trash the results of a workspace and remove its rebuildable caches |
hmp workspace init#
$ hmp workspace init [-h] [-w WORKSPACE] [--format {table,json,csv}] [--force] [--project-name PROJECT_NAME] [--creator-name CREATOR_NAME] [--creator-email CREATOR_EMAIL] [path]Scaffold a HydroModPy workspace (data + projects). Default: ~/hydromodpy/
| Argument | What it does |
|---|---|
path | Workspace path, or give it with -w |
--force | Go past the refusal: reuse a workspace that exists |
--project-name PROJECT_NAME | Project name written to workspace.toml (default: the workspace folder name) |
--creator-name CREATOR_NAME | Creator name written to workspace.toml |
--creator-email CREATOR_EMAIL | Creator e-mail written to workspace.toml |
Also takes the shared options --workspace --format.
Examples
$ hmp workspace init ~/hydromodpy $ hmp workspace init ./ws --project-name my_project
Exit codes it sets itself: 14. All exit codes.
hmp workspace list#
$ hmp workspace list [-h] [-w WORKSPACE] [--format {table,json,csv}] [path]List the sealed runs of every project under a workspace, from their directories
| Argument | What it does |
|---|---|
path | Workspace or project root (default: -w, else the current directory) |
Also takes the shared options --workspace --format.
Examples
$ hmp workspace list $ hmp workspace list ~/hydromodpy --format json $ hmp workspace list -w ~/hydromodpy/projects/demo
Exit codes it sets itself: 10. All exit codes.
hmp workspace clean#
$ hmp workspace clean [-h] [-w WORKSPACE] [-y] [--dry-run] [--format {table,json,csv}] [--all] [--results] [--data-cache] [--runtime] [--scratch] [--force]Trash the results of a workspace and remove its rebuildable caches
| Argument | What it does |
|---|---|
-y, --yes | Carry the plan out. Without it the verb prints the plan and changes nothing |
--all | Clean every group below |
--results | Move every run and session to the trash of its project, remove the index |
--data-cache | data/blobs and the data cache database that a pre-release left in data/ |
--runtime | The .hmp/ runtime folder |
--scratch | The scratch folders (.hmp/scratch) |
--force | With --results: go past the pin and the stale attempt, and trash those runs too |
Also takes the shared options --workspace --dry-run --format.
Examples
$ hmp workspace clean --results --dry-run $ hmp workspace clean --all -y
Exit codes it sets itself: 10 14. All exit codes.