Skip to content

Commit 7b5e707

Browse files
committed
add command hints and bump version
1 parent 751a84a commit 7b5e707

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

pygeoweaver/commands/pgw_cleanh2db.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def clean_h2db(h2_jar_path=None, temp_dir=None, db_path=None, db_username=None,
213213
# Alternative scratch locations
214214
f"/tmp/{username}",
215215
# Fallback to home directory
216-
os.path.join(home_dir, "geoweaver", "h2")
216+
# os.path.join(home_dir, "geoweaver", "h2")
217217
]
218218

219219
logger.info(f"Potential directories to check: {potential_dirs}")
@@ -521,7 +521,13 @@ def clean_h2db(h2_jar_path=None, temp_dir=None, db_path=None, db_username=None,
521521
logger.info("=== clean_h2db function completed successfully ===")
522522
print("\nH2 database cleanup completed successfully!")
523523
print(f"Temporary files are stored in {temp_dir}")
524-
print("You can delete these files if the database is working correctly.")
524+
print(f"To delete the temporary files, run:")
525+
print(f" rm -rf '{temp_dir}'")
526+
print(f" rm -f '{sql_file}'")
527+
print("\nTo verify the cleanup was successful, run:")
528+
print(" gw list host")
529+
print("If you see your expected hosts, the cleanup was successful.")
530+
print("You can delete the temp directory above if everything works.")
525531

526532
return True
527533

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pygeoweaver"
7-
version = "1.2.7"
7+
version = "1.2.8"
88
authors = [{ name="Geoweaver team", email="geoweaver.app@gmail.com" }]
99
description = "This is a wrapper package of the Geoweaver app."
1010
readme = "README.md"

0 commit comments

Comments
 (0)