From: Kyle Bowman Date: Thu, 10 Apr 2025 12:04:40 +0000 (-0400) Subject: move todo from belfry to golem X-Git-Url: https://git.rocketbowman.com/?a=commitdiff_plain;h=refs%2Fheads%2Fissues;p=belfry.git move todo from belfry to golem --- diff --git a/todo.md b/todo.md index 2fa3c84..27d5d73 100644 --- a/todo.md +++ b/todo.md @@ -1,46 +1,9 @@ # 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 +Nope. Symlinks will break in the container unless you mount the target file too. \ No newline at end of file