Bump DotMake.CommandLine from 3.5.0 to 3.7.0 - #19
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: DotMake.CommandLine dependency-version: 3.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated DotMake.CommandLine from 3.5.0 to 3.7.0.
Release notes
Sourced from DotMake.CommandLine's releases.
3.7.0
Improved: Redesigned
CliNamerclass. From now on, auto generated short aliases for commands and optionswill be single character only to be compatible with POSIX conventions
(to prevent confusion with argument bundling/clustering e.g.
-wpmeaning-wand-p).This may be a BREAKING CHANGE in your CLI app so check your short aliases if you depended on auto-generation.
The new rules:
First letter of the name will be used to create short form which is converted according to
[CliCommand].NameCasingConventionproperty;if it conflicts, the case of the letter is changed;
if it conflicts again, first letter of the next word in the name is tried and so on.
(e.g.
Info->iorI,ServerPort->sorSorporP,Option1->oorO)No short form alias will be added if a non-conflicting one can not be found, user can manually set a specific alias for these missing ones.
For options, single hyphen/dash prefix is added to the short form.
(e.g.
Info->-ior-I,ServerPort->-sor-Sor-por-P,Option1->-oor-O)This can be changed via
[CliCommand].ShortFormPrefixConventionproperty (default: SingleHyphen).More robust handling of conflicts in
CliNamer, i.e. checks all conflicts at once and then throws an exception whichlists all errors.
Improved: Strong name sign the DLLs for NuGet package. Signing will be done only when
DotMake.snkexists,it's not committed to this repository.
3.6.0
Improved: Do not generate any source code if
DotMake.CommandLine.dllis not actually referenced in the project.This should at least fix the issue: by default analyzers/generators in Unity apply to every referenced child projects.
However for the main project which has the
<PackageReference Include="DotMake.CommandLine" />,the DLL is implicitly referenced and there is no feasible/performant way in source generator
to find if the DLL is actually used/consumed.
First way: In
.csproj, set this new property tofalseordisableto disable source generator (totrueorenablefor reverse):Second Way: In
.csproj, exclude compile assets to mimic noDotMake.CommandLine.dllreference:Improved: Updated to version
2.0.11of System.CommandLine.Improved:
context.ShowValues()will now show directives, and also parent commands and their options and arguments.It will also use the theme colors for columns.
Fixed:
context.Result.HasArgswas not returningtruewhen there was some argument/option with default value.Fixed:
CliParser.FixArgs()should not blindly remove trailing escaped double quotes inargs.It should remove only if the double quote is the only one per
argsarray element (no matching starting double quote).So for example it should not be removed for this
-e "CompanyRegistrationNumber == \"24256790\""but it should be removed for
--source "C:\myfiles\".This effects
Cli.Parse(string[]),Cli.Run(string[] args)andCli.RunAsync(string[])which usesCliParser.FixArgs().Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)