container: root: common: utility: refactor/deprecate, add/enhance free functions, refactor/add tests #249

Merged
AaronFiore merged 0 commits from refs/pull/249/head into master 2025-12-09 23:14:26 +00:00
AaronFiore commented 2025-12-09 22:42:16 +00:00 (Migrated from gitea.com)

Description

  • Factors out (and deprecates) Command
  • Deprecates certain free functions
  • Adds better error handling
  • Adds more free functions
  • Refactors file handling
  • Improves documentation
  • Refactors/adds tests

Notes on file loading (and general file handlers):

The interpreter command .L will load files but appears to not fail if
the file isn't source code or a library.

Calling gSystem->Load() will load a given library but not source file,
and appears to not accept paths (which will be needed for pluggables).

Because gInterpreter->LoadFile("path") will load either a source file
or library by given "path", and is consistent with dfi's approach to
path handling, this function appears to be the winner (for now).

Agreement

### Description - Factors out (and deprecates) `Command` - Deprecates certain free functions - Adds better error handling - Adds more free functions - Refactors file handling - Improves documentation - Refactors/adds tests Notes on file loading (and general file handlers): The interpreter command `.L` will load files but appears to not fail if the file isn't source code or a library. Calling `gSystem->Load()` will load a given library but not source file, and appears to not accept paths (which will be needed for pluggables). Because `gInterpreter->LoadFile("path")` will load either a source file or library by given "path", and is consistent with `dfi`'s approach to path handling, this function appears to be the winner (for now). ### Agreement - [x] I have read and understood the [Development](https://gitea.com/EvergreenCrypto/docker-finance#development) and [License](https://gitea.com/EvergreenCrypto/docker-finance#license-and-disclaimer) documentation
AaronFiore commented 2025-12-09 22:42:26 +00:00 (Migrated from gitea.com)

All tests pass.

All tests pass.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Reference: EvergreenCrypto/docker-finance#249