-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ogma-cli
: Allow customization of target C filenames
#80
Comments
ogma-cli
: Allow customization of target Copilot file
Change Manager: Confirmed that the issue exists. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for Ogma 1.(0+X).(8+Y). Fix assigned to: @ivanperez-keera. |
ogma-cli
: Allow customization of target Copilot fileogma-cli
: Allow customization of target C file
ogma-cli
: Allow customization of target C fileogma-cli
: Allow customization of target C filenames
…filename. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the FRET component specification backend to customize the name of the target C filenames based on an argument to the backend.
…filename. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command that exposes the component specification backend to customize the name of the target C filenames based on an argument to the backend, and use it when calling the internal FRET-to-Copilot translation module.
…ilename. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command-line interface to include a new flag for the fret-component-spec command, allowing users to customize the name of the target C filenames generated by Copilot.
…e. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the FRET requirements DB backend to customize the name of the target C filenames based on an argument to the backend.
…e. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command that exposes the requirements DB backend to customize the name of the target C filenames based on an argument to the backend, and use it when calling the internal FRET-to-Copilot translation module.
…. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command-line interface to include a new flag for the fret-reqs-db command, allowing users to customize the name of the target C filenames generated by Copilot.
Prior commits have added new flags to the FRET-related commands so that users can customize the prefix used in C filenames generated by Copilot. This commit documents the existence of such a flag in the README.
One of the examples included in the README was using sed to modify the prefix used by Copilot to generate C files. This extra step is no longer necessary, since the customization can now be performed directly via a new flag to FRET-related Ogma commands. This commit modifies the FPrime example to use the new flag --target-file-name to select the name of the C files generated by Copilot, instead of manually performing such a change by calling sed on the Copilot/Haskell file.
Prior commits have added new flags to the FRET-related commands so that users can customize the prefix used in C filenames generated by Copilot. This commit documents the existence of such a flag in the README.
One of the examples included in the README was using sed to modify the prefix used by Copilot to generate C files. This extra step is no longer necessary, since the customization can now be performed directly via a new flag to FRET-related Ogma commands. This commit modifies the FPrime example to use the new flag --target-file-name to select the name of the C files generated by Copilot, instead of manually performing such a change by calling sed on the Copilot/Haskell file.
Prior commits have added new flags to the FRET-related commands so that users can customize the prefix used in C filenames generated by Copilot. This commit documents the existence of such a flag in the README.
One of the examples included in the README was using sed to modify the prefix used by Copilot to generate C files. This extra step is no longer necessary, since the customization can now be performed directly via a new flag to FRET-related Ogma commands. This commit modifies the FPrime example to use the new flag --target-file-name to select the name of the C files generated by Copilot, instead of manually performing such a change by calling sed on the Copilot/Haskell file.
Implementor: Solution implemented, review requested. |
A new field has been added to the FRET component spec backend to take the prefix for the target C files generated by Copilot. That new field is not optional. The tests are currently failing because the value for the field is not being passed in a call to the backend. This commit modifies the tests for the component-spec backend to include the target file prefix "fret", which was originally the default, in the call to the backend.
…ilename. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command-line interface to include a new flag for the fret-component-spec command, allowing users to customize the name of the target C filenames generated by Copilot.
…e. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the FRET requirements DB backend to customize the name of the target C filenames based on an argument to the backend.
…e. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command that exposes the requirements DB backend to customize the name of the target C filenames based on an argument to the backend, and use it when calling the internal FRET-to-Copilot translation module.
A new field has been added to the FRET requirements DB backend to take the prefix for the target C files generated by Copilot. That new field is not optional. The tests are currently failing because the value for the field is not being passed in a call to the backend. This commit modifies the tests for the reqs DB backend to include the target file prefix "fret", which was originally the default, in the call to the backend.
…. Refs #80. Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files. Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process. This commit modifies the top-level command-line interface to include a new flag for the fret-reqs-db command, allowing users to customize the name of the target C filenames generated by Copilot.
Prior commits have added new flags to the FRET-related commands so that users can customize the prefix used in C filenames generated by Copilot. This commit documents the existence of such a flag in the README.
One of the examples included in the README was using sed to modify the prefix used by Copilot to generate C files. This extra step is no longer necessary, since the customization can now be performed directly via a new flag to FRET-related Ogma commands. This commit modifies the FPrime example to use the new flag --target-file-name to select the name of the C files generated by Copilot, instead of manually performing such a change by calling sed on the Copilot/Haskell file.
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
Ogma does not allow users to specify the name of the target file that should be used in applications produced from FRET files.
Without that extra facility, it becomes necessary to rename and modify the Copilot/Haskell (or C) files produced, which detracts from a smooth UX process.
This also affects us when we demonstrate Ogma, since to have to modify the files produced (either via a text editor or via a
sed
command) in the middle of the demo. Users outside of our project do not understand why this is happening, and the extra step distracts from the presentation.This would be easily solved if we had a way to specify the target filename via a command line flag.
Type
Additional context
None.
Requester
Method to check presence of bug
Not applicable (not a bug).
Expected result
Ogma provides a CLI argument for all commands producing standalone Copilot files that allows customizing the name of the target C files.
Desired result
Ogma provides a CLI argument for all commands producing standalone Copilot files that allows customizing the name of the target C files.
Proposed solution
Modify the FRET backends to include a new argument for the target filename.
Expose that flag all the way to the CLI.
Set the default value to the existing filename for backwards compatibility.
Document existence of flag (and possibly simplify README if applicable).
Adjust Dockerfiles produced by different backends if needed.
Further notes
None.
The text was updated successfully, but these errors were encountered: