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

Added option description setter #199

Merged
merged 6 commits into from
Jan 22, 2019

Conversation

helmesjo
Copy link
Contributor

Option description can be modified after adding option.

Related: #193

Copy link
Collaborator

@henryiii henryiii left a comment

Choose a reason for hiding this comment

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

One minor comment. It would be nice to be able to edit the app description too.

include/CLI/Option.hpp Outdated Show resolved Hide resolved
Format-fix to make clang-format happy.
@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #199 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #199   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        1902   1903    +1     
=====================================
+ Hits         1902   1903    +1
Impacted Files Coverage Δ
include/CLI/Option.hpp 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72c384c...be4fbbb. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #199 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #199   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        1902   1908    +6     
=====================================
+ Hits         1902   1908    +6
Impacted Files Coverage Δ
include/CLI/Option.hpp 100% <100%> (ø) ⬆️
include/CLI/App.hpp 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72c384c...7317e6a. Read the comment docs.

@henryiii
Copy link
Collaborator

If that passes CI, I'll merge. Are you planning to make one for App description, too?

@helmesjo
Copy link
Contributor Author

Are you planning to make one for App description, too?

Done!

@henryiii henryiii merged commit 8d7aefe into CLIUtils:master Jan 22, 2019
@henryiii
Copy link
Collaborator

That looks great, thank you!

@helmesjo helmesjo deleted the option-description-setter branch January 22, 2019 17:24
@helmesjo
Copy link
Contributor Author

What's the ETA on the next release?

@henryiii
Copy link
Collaborator

Soon, 1 day to 1 week. Basically consider the current master an RC. Depends on how much testing I can do or if bugs are found.

@helmesjo
Copy link
Contributor Author

Great!

@helmesjo
Copy link
Contributor Author

When it's released, could you create an issue in bincrafters-community notifying about this? The conan package in question is conan-cli11. Or, just ping me and I'll do it. :)

@henryiii
Copy link
Collaborator

I'm going to see if I can get #200 in. It's a name change close to release, but the old behavior was dangerous. I'll ping you or open an issue when 1.7 is out! (PS: new releases show up in RSS form here:
https://github.com/CLIUtils/CLI11/releases.atom, or GitHub now lets you Watch -> Releases Only (which I have not tried, because I use the RSS feeds to watch projects, but sounds useful).

@helmesjo
Copy link
Contributor Author

Sweet!
Oh yeah, forgot about that feature! 😇

@henryiii
Copy link
Collaborator

It's out! Can you raise the issue?

@helmesjo
Copy link
Contributor Author

I'll fix!

@henryiii
Copy link
Collaborator

Just curious, how is bincrafters different from conan? I already have an official conan package that gets pushed out by the CI on tags.

@helmesjo
Copy link
Contributor Author

helmesjo commented Jan 24, 2019

Oh, alright. Yeah I can see you build conan packages, but they are never pushed to any repository, right?

Nah bincrafters is just a group of people doing great work of writing/collecting conan packages/recipes, build them on travis/appveyor and push all of the pre-built packages to their own repository on bintray.

Bincrafters host sort of an inofficial "official" conan repository, and over time packages are included in the official conan repository.

Perhaps @Croydon have some thoughts about where to go from here?

@henryiii
Copy link
Collaborator

Not sure how repositories work. I'm not using Conan at the moment, just providing packages. I'm happy to have them in bincrafters, just was checking to make sure work wasn't duplicated if unnecessary.

Packages are here: https://bintray.com/cliutils/CLI11

@helmesjo
Copy link
Contributor Author

Ah, nice! I'll hand it over to @Croydon to take this forward. :) I guess you could submit an inclusion request into bincrafters, with you as official maintainer. That recipe would then solely wrap yours, or something like that. I don't know the specifics but something similar is being done for magnum.

@helmesjo
Copy link
Contributor Author

In the meantime: bincrafters/community#619

@Croydon
Copy link

Croydon commented Jan 24, 2019

Hi! :)

I didn't follow this project so far, but from a quick look it seems like everything is already fine. Since CLI11 is header-only packaging + deploying is pretty simple. The recipe could need some more meta data like topics, author, homepage and the license field should be a SPDX identifier (https://spdx.org/licenses/), in general I recommend to have a look at https://github.com/bincrafters/conan-templates/blob/2dbf5261858c817faea420b3c32b7436f204fd85/header_only/conanfile.py#L8

CLI11 is already in conan-center so I'm not seeing any major things left to do here. @helmesjo What did you had in mind? Maybe the confusion comes because at Bincrafters we had a recipe as well, but we are stopping maintaining those when there is official support https://github.com/bincrafters/conan-cli11

@helmesjo
Copy link
Contributor Author

Oh, I totally missed that it is already in conan-center..! 🤦‍♂️ I've been using the bincrafters-package since way back so just figured that was still the one... :)

Sorry for the confusion people! 😊

@henryiii
Copy link
Collaborator

@Croydon Thanks, I'll update the metadata soon (traveling for a few days).

@helmesjo
Copy link
Contributor Author

So, I'm a little confused... (this is a conan/bintray question, but related to this release):

@Croydon mentioned that it is already part of conan-center, which one can see here when searching for CLI11. It is a so called "linked package" which is described by bintray as:

Linking a package to another user’s repository. A package that belongs to one repository may be linked and displayed as if it also belongs to another repository. This means that your package will be downloaded, visible in search results, and promoted just as much as the repository to which it is linked (in addition to, not instead of, the repository to which it actually belongs). This is one more option Bintray provides for cooperation between developers.

Given this, why can't I see this package locally when searching for cli11* on remote conan-center?
All I get is:

cli11/1.3.0@bincrafters/stable
cli11/1.4.0@bincrafters/stable
cli11/1.5.3@bincrafters/stable
cli11/1.6.0@bincrafters/stable
cli11/1.6.1@bincrafters/stable

Remote: https://api.bintray.com/conan/conan/conan-center (using the url displayed on bintray as https://dl.bintray.com/conan/conan-center does not work, it gives error ERROR: Not implemented endpoint. [Remote: https://conan.bintray.com]).

I'm missing some piece of the puzzle...

@henryiii
Copy link
Collaborator

Is there a way to update your cache, perhaps? I know Conan center/bin tray are very picky about caps, but that should be fine for the last several releases. I’m traveling without my computer, can test in a few days.

@Croydon
Copy link

Croydon commented Jan 28, 2019

conan search CLI11* -r conan-center

works for me as expected. The search is case-sensitive as such

conan search cli11* -r conan-center

only returns the results of our Bincrafters' recipe

@helmesjo
Copy link
Contributor Author

Oh, wow. Case sensitivity totally got me... 🤦‍♂️ Yep, now I see it! :)

Thanks!

@henryiii henryiii added this to the v1.7 milestone Feb 9, 2019
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.

3 participants