Milestone 2.2: finish the migration, make the module usable from a host #23

Closed
opened 2026-11-08 14:10:20 +01:00 by michael · 1 comment
Owner

Goal

Finish what the 2.x migration started, so that the module can be installed
and used from a host program.

Principle

A module does simple work and decides nothing. It returns data (results,
questions, warnings, errors). The host program decides how to handle them and
passes them on for display and input.

Scope

Acceptance criteria

  • make test passes under Lua 5.1 and 5.4
  • the DAW code check reports no errors for the module
  • berhtjan-core 2.2.0 builds the index from contribution.json with a
    label_resource_id for every command and subcommand and resolves them
## Goal Finish what the 2.x migration started, so that the module can be installed and used from a host program. ## Principle A module does simple work and decides nothing. It returns data (results, questions, warnings, errors). The host program decides how to handle them and passes them on for display and input. ## Scope - [ ] commands.lua only translates the parsed command line into an API call and returns the result: no output, no direct system access, no host knowledge (core version and timeout come from the host) - [ ] config/ui/contribution.json uses label_resource_id for the command and its subcommands (hard cutover in berhtjan-core 2.2.0); the labels ship as daw_i18n/v1 resources in i18n/ (English canonical, German) - [ ] remove the obsolete --yes flag (the confirmation is a decision result now) - [ ] fix the open bugs: DAW/daw-module-manager#18 (signed_with), DAW/daw-module-manager#19 (rollback), DAW/daw-module-manager#21 (list), DAW/daw-module-manager#13 (package name vs require name for Lua libraries) - [ ] decide the metadata question DAW/daw-module-manager#14 - [ ] README, release note, module.conf, version sentinel checked before tagging - [ ] close the issues that are done: DAW/daw-module-manager#2, DAW/daw-module-manager#3, DAW/daw-module-manager#6, DAW/daw-module-manager#8, DAW/daw-module-manager#9, DAW/daw-module-manager#10, DAW/daw-module-manager#12; DAW/daw-module-manager#11 is superseded (version detection now lives behind ct.sys.dependency in common; overrides are DAW/daw-module-manager#20) ## Acceptance criteria - [ ] make test passes under Lua 5.1 and 5.4 - [ ] the DAW code check reports no errors for the module - [ ] berhtjan-core 2.2.0 builds the index from contribution.json with a label_resource_id for every command and subcommand and resolves them
Author
Owner

Done in v2.0.0 (tag v2.0.0). Two items of the scope were decided differently: '--yes' stays, together with '--upgrade', as a flag for batch runs (the host asks in a terminal and uses the flags only without one), and the metadata question DAW/daw-module-manager#14 stays parked until anagild. The remaining work is in DAW/daw-module-manager#24 and DAW/daw-module-manager#25.

Done in v2.0.0 (tag v2.0.0). Two items of the scope were decided differently: '--yes' stays, together with '--upgrade', as a flag for batch runs (the host asks in a terminal and uses the flags only without one), and the metadata question DAW/daw-module-manager#14 stays parked until anagild. The remaining work is in DAW/daw-module-manager#24 and DAW/daw-module-manager#25.
michael 2026-11-14 20:41:11 +01:00
Sign in to join this conversation.
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
DAW/daw-module-manager#23
No description provided.