Skip to content

Update CLI to the v2 of System.CommandLine #174

Merged
VJalili merged 32 commits intoGenometric:devfrom
VJalili:cli
Oct 15, 2022
Merged

Update CLI to the v2 of System.CommandLine #174
VJalili merged 32 commits intoGenometric:devfrom
VJalili:cli

Conversation

@VJalili
Copy link
Copy Markdown
Member

@VJalili VJalili commented Oct 10, 2022

This PR updates the command line interface, by replacing the deprecated underlying library, "Microsoft.Extensions.CommandLineUtils", with its successor, the current latest version of System.CommandLine. System.CommandLine is currently in the preview mode and its API may change, hence the logic implemented in this PR may also need to be updated.

This PR tries to keep changes to the user-facing interface at the minimum possible, only making the required improvements or dropping features currently not supported by System.CommandLine. All the arguments remain unchanged (with the exception of one), but the help page is improved.

Interface change

  • Removed the --folder argument because --input can be used to get the same functionality.

Known issues

  • The exit code may not be set correctly for some exceptions. This is mainly driven by some known bugs in the current version of command-line-api.

Postponed improvements

  • Code coverage on the validators, parsers, and exceptions raised in the CLI Option<T>s.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 10, 2022

Codecov Report

Merging #174 (d8d7f2c) into dev (d384b7a) will decrease coverage by 0.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #174      +/-   ##
==========================================
- Coverage   97.41%   97.03%   -0.39%     
==========================================
  Files          43       43              
  Lines        2091     2091              
==========================================
- Hits         2037     2029       -8     
- Misses         10       13       +3     
- Partials       44       49       +5     
Impacted Files Coverage Δ
Core.Tests/PublicMembers.cs 91.66% <0.00%> (-5.56%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@VJalili VJalili merged commit 0b0f9cc into Genometric:dev Oct 15, 2022
@VJalili VJalili deleted the cli branch October 15, 2022 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant