]> git.rocketbowman.com Git - golems.git/commitdiff
move todo from belfry into golem issues
authorKyle Bowman <kyle+github@rocketbowman.com>
Thu, 10 Apr 2025 12:03:40 +0000 (08:03 -0400)
committerKyle Bowman <kyle+github@rocketbowman.com>
Thu, 10 Apr 2025 12:03:40 +0000 (08:03 -0400)
todo.md

diff --git a/todo.md b/todo.md
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..77217fe2256de3f8f16a923095e7826f2e3d5004 100644 (file)
--- a/todo.md
+++ b/todo.md
@@ -0,0 +1,30 @@
+# To Do
+
+* add_ssh - use ssh-keygen and scp
+
+## Import Module
+
+There's no need to import a library before it's needed. But many libraries can 
+be imported for the first time from many places. It would be nice to have a 
+standardized way to check if a module has been imported.
+
+Some thoughts:
+
+* On import, add the module's name to a global variable
+* On check, see if module's name is in global variable
+* On teardown, unset the global variable
+
+Or, I could just check `declare -F` for the function I want.
+
+Or, I could source without a check. A function-only library should be idempotent.
+
+## Improve Logs with Stderr Capture
+
+You can capture stderr, stdout like this:
+
+``` bash
+echo "test output" > .test \
+  && { TEST="$(<.test)"; echo "$TEST"; rm .test; }
+do_whatever "$TEST"
+unset TEST
+``symlink`
\ No newline at end of file