Skip to content

ogma-core: Move functions related to reading specs to dedicated module. Refs #413.#414

Merged
ivanperez-keera merged 3 commits intonasa:developfrom
ivanperez-keera:develop-structure-spec-reading
Apr 26, 2026
Merged

ogma-core: Move functions related to reading specs to dedicated module. Refs #413.#414
ivanperez-keera merged 3 commits intonasa:developfrom
ivanperez-keera:develop-structure-spec-reading

Conversation

@ivanperez-keera
Copy link
Copy Markdown
Member

Move the functions related to reading specs in different formats to a new internal module, adjusting imports and calls accordingly across the codebase, as prescribed in the solution proposed for #413.

@ivanperez-keera ivanperez-keera force-pushed the develop-structure-spec-reading branch 3 times, most recently from 2715cd2 to 078ddd7 Compare April 26, 2026 21:39
…e. Refs nasa#413.

The spec and diagram parsing features inside `ogma-core` are organized
differently. Diagrams have a `Data.Diagram.Parser` module that serves as
entrypoint for parsing, whereas spec parsing functions are located in
`Command.Common`, which acts as an entrypoint for parsing of specs from
different formats.

This commit moves the functions dedicated to parsing of specs from
`Command.Common` into a new, internal module `Data.Spec.Parser`.

The functions are renamed to use the term _read_ rather than _parse_,
consistent with the interface provided by the diagram parsing module.
…pec.Parser`. Refs nasa#413.

The spec and diagram parsing features inside `ogma-core` are organized
differently. Diagrams have a `Data.Diagram.Parser` module that serves as
entrypoint for parsing, whereas spec parsing functions are located in
`Command.Common`, which acts as an entrypoint for parsing of specs from
different formats.

A prior commit introduced a new module `Data.Spec.Parser` that contains
functions for reading specs from different formats.

This commit adjusts all commands to use the functions provided by
`Data.Spec.Parser`, rather than the functions that were provided by
`Command.Common`.
@ivanperez-keera ivanperez-keera force-pushed the develop-structure-spec-reading branch from 078ddd7 to 9d1e511 Compare April 26, 2026 21:40
@ivanperez-keera
Copy link
Copy Markdown
Member Author

Change Manager: Verified that:

@ivanperez-keera ivanperez-keera merged commit e685fa2 into nasa:develop Apr 26, 2026
6 checks passed
@ivanperez-keera ivanperez-keera deleted the develop-structure-spec-reading branch April 27, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant