Skip to content
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

Typed variants of Alire.Config.Edit.Set #1353

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Mar 20, 2023

Mostly because it's too easy to mix Boolean with String now.

@mosteo mosteo marked this pull request as ready for review March 20, 2023 12:59
@mosteo mosteo requested a review from Fabien-Chouteau March 20, 2023 12:59
Copy link
Member

@Fabien-Chouteau Fabien-Chouteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to merge the feature in CLIC before this in Alire in my opinion.

@@ -22,6 +23,23 @@ package Alire.Config.Edit is
Value : String;
Check : CLIC.Config.Check_Import := null);

-- Typed alternatives

procedure Set_Boolean (Level : Config.Level;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these used somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet, but there are old uses of Set that could be migrated

@mosteo mosteo marked this pull request as draft March 21, 2023 13:40
@mosteo mosteo force-pushed the feat/typed-config-set branch from ab70c71 to 919b8b0 Compare March 22, 2023 11:04
mosteo added 2 commits March 22, 2023 12:15
Mostly because it's too easy to mix Boolean with String
@mosteo mosteo force-pushed the feat/typed-config-set branch from 919b8b0 to 8abeff9 Compare March 22, 2023 11:16
@mosteo mosteo force-pushed the feat/typed-config-set branch from 4ac82bf to c758f80 Compare March 24, 2023 11:44
@mosteo mosteo marked this pull request as ready for review March 30, 2023 11:01
@mosteo mosteo merged commit ec767ef into alire-project:master Mar 30, 2023
@mosteo mosteo deleted the feat/typed-config-set branch March 30, 2023 11:19
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.

2 participants