Skip to content

Conversation

LinuxBoy-96
Copy link

@mmstick mentioned to me that he would like to see clap_lex instead of clap, so... here it is.

To my knowledge, it works perfectly.

The only bad news is that I removed the cfg attributes from individual functions, as they made the code really hard to read.
I think there are better ways to handle specific functionality when it's not applicable to a platform than doing it at compile time.

Feel free to hate it, but please don't leave me in the dark.

"WindowManagement" => Some(Self::WindowManagement),
"Wired" => Some(Self::Wired),
"Wireless" => Some(Self::Wireless),
"Workspaces" => Some(Self::Workspaces),
Copy link
Member

Choose a reason for hiding this comment

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

This is not in the same format as clap was using before. Make sure every desktop entry works.

Copy link
Author

Choose a reason for hiding this comment

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

@mmstick By that you mean only conditionnal compilation annotation? If not I tested it... this if the Clap_lex way to do it. :p

Copy link
Member

Choose a reason for hiding this comment

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

No, our desktop entries are launched via the name of the page, but it is not written in the same way as in the source code. WindowManagement is Exec=cosmic-settings window-management, for example. So again, make sure the desktop entries work with the change.

@LinuxBoy-96 LinuxBoy-96 requested a review from mmstick June 30, 2025 22:17
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