]> git.rocketbowman.com Git - belfry.git/commitdiff
add todo items
authorKyle Bowman <kyle+github@rocketbowman.com>
Thu, 10 Apr 2025 11:39:10 +0000 (07:39 -0400)
committerKyle Bowman <kyle+github@rocketbowman.com>
Thu, 10 Apr 2025 11:39:10 +0000 (07:39 -0400)
todo.md [new file with mode: 0644]

diff --git a/todo.md b/todo.md
new file mode 100644 (file)
index 0000000..2fa3c84
--- /dev/null
+++ b/todo.md
@@ -0,0 +1,46 @@
+# Belfry TODO
+
+* assert packages
+  * ssh 
+  * sudo
+* add_ssh - use ssh-keygen and scp
+
+## Link in and out by with Makefile like Jetsam
+
+Split existing lib out into `demo` dir and add testing by symlinking.
+(When you mount a symlink into a container, does it copy the target or the 
+link?)
+
+Nope. Symlinks will break in the container unless you mount the target file too.
+
+## Standard entry point
+
+It would be nice to have certain variables and functions be declared by default
+so that I can use them everywhere in my library.
+
+## 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