From: Kyle Bowman Date: Thu, 10 Apr 2025 11:39:10 +0000 (-0400) Subject: add todo items X-Git-Url: https://git.rocketbowman.com/?a=commitdiff_plain;h=ee517f68e265855af6b01862abe7a7b968c4f6db;p=belfry.git add todo items --- diff --git a/todo.md b/todo.md new file mode 100644 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