From 0c05fadbd415b07519cb19a1c421c2dd624d39a9 Mon Sep 17 00:00:00 2001 From: Kyle Bowman Date: Thu, 10 Apr 2025 08:04:40 -0400 Subject: [PATCH] move todo from belfry to golem --- todo.md | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) 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 -- 2.39.5