From: Shane Jaroch Date: Sat, 20 Apr 2024 16:16:32 +0000 (-0400) Subject: update TODOs and helper text (printed off init) X-Git-Tag: v0.2.8.dev2~5 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=448ca8802132d932911bd04a4e1fc762660ba3ce;p=nutratech%2Fcli.git update TODOs and helper text (printed off init) --- diff --git a/ntclient/persistence/__init__.py b/ntclient/persistence/__init__.py index 0110958..76db9a8 100644 --- a/ntclient/persistence/__init__.py +++ b/ntclient/persistence/__init__.py @@ -13,8 +13,6 @@ import os from ntclient import NUTRA_HOME -# TODO: create and maintain prefs.json file? See if there's a library for that, lol - PREFS_FILE = os.path.join(NUTRA_HOME, "prefs.ini") os.makedirs(NUTRA_HOME, 0o755, exist_ok=True) diff --git a/ntclient/services/__init__.py b/ntclient/services/__init__.py index 5d45d26..0b641d4 100644 --- a/ntclient/services/__init__.py +++ b/ntclient/services/__init__.py @@ -28,6 +28,7 @@ def init(yes: bool = False) -> tuple: if not os.path.isdir(NUTRA_HOME): os.makedirs(NUTRA_HOME, 0o755) print("..DONE!") + # TODO: should creating preferences/settings file be handled in persistence module? # TODO: print off checks, return False if failed print("USDA db ", end="") @@ -38,12 +39,12 @@ def init(yes: bool = False) -> tuple: build_ntsqlite() nt_init() - print("\nAll checks have passed!") + print("\nSuccess! All checks have passed!") print( """ -Nutrient tracker is free software. It comes with NO warranty or guarantee. +Nutrient Tracker is free software. It comes with NO warranty or guarantee. You may use it as you please. -You may make changes, as long as you disclose and publish them. +You may make changes as long as you disclose and publish them. """ ) return 0, True