]> Nutra Git (v1) - nutratech/cli.git/commitdiff
update TODOs and helper text (printed off init)
authorShane Jaroch <chown_tee@proton.me>
Sat, 20 Apr 2024 16:16:32 +0000 (12:16 -0400)
committerShane Jaroch <chown_tee@proton.me>
Sat, 20 Apr 2024 16:16:32 +0000 (12:16 -0400)
ntclient/persistence/__init__.py
ntclient/services/__init__.py

index 0110958e69098f6fef99f7e88e79e740a39611e1..76db9a8794c2d758a637dcbfbb65e6c4566a0d6b 100644 (file)
@@ -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)
index 5d45d2605fb606101c78c1ad74eba560c98e3512..0b641d43cfadd30ba6c9d081c71685d879aef674 100644 (file)
@@ -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