feat/implement-basic-management-commands #2

Merged
Denaerium merged 6 commits from feat/implement-basic-management-commands into main 2026-07-07 09:44:07 +03:00
Owner

Changes:

  • Added extra pre-commit functionality that runs clippy and refuses commits if any warnings are not suppressed.
  • Added basic commands, such as:
    • Start: alias to up -d
    • Stop: alias to down
    • Enable: custom functionality that takes in a folder name, looks up all services inside that folder's compose file, and then puts that folder's compose file into the parent compose file's include list. Afterwards, it uses the previously computed services list to up -d all services (by default, there is a flag to turn this off)
    • Disable: same as enable, but instead downs services and removes them from the root compose file's include list.
  • Changed OnceLock global CLI to LazyLock, with the first statement of main() ensuring it initialises immediately. Removes OnceLock's required getters with optional logic, but introduces LazyLock poisoning, which is of little consequence as if CLI's ::parse fails, we would like to fail as well (potential TODO: intercept the poisoning panic and add a readable error instead?)
Changes: - Added extra pre-commit functionality that runs clippy and refuses commits if any warnings are not suppressed. - Added basic commands, such as: - Start: alias to up -d - Stop: alias to down - Enable: custom functionality that takes in a folder name, looks up all services inside that folder's compose file, and then puts that folder's compose file into the parent compose file's include list. Afterwards, it uses the previously computed services list to up -d all services (by default, there is a flag to turn this off) - Disable: same as enable, but instead downs services and removes them from the root compose file's include list. - Changed OnceLock global CLI to LazyLock, with the first statement of main() ensuring it initialises immediately. Removes OnceLock's required getters with optional logic, but introduces LazyLock poisoning, which is of little consequence as if CLI's ::parse fails, we would like to fail as well (potential TODO: intercept the poisoning panic and add a readable error instead?)
Denaerium deleted branch feat/implement-basic-management-commands 2026-07-07 09:44:08 +03:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Denaerium/domctl!2
No description provided.