A net global tool helping to generate and validate phone numbers
In this repo, i m building a global tool that allows to generate and validate phone numbers.
The tool is based on multiple sub commands :
- Use sub command
Generate
to generate phone numbers- Use sub command
Validate
to validate phone numbers- Use sub command
Info
to get country/calling phone codesTo install global tool from nuget source, type command :
- For stable version :
dotnet tool install -g PhoneCli --ignore-failed-sources
- For prerelease version :
dotnet tool install -g PhoneCli --version "*-*" --ignore-failed-sources
To install global tool from a local source path, type command :
dotnet tool install -g --configfile .\nugets\local.config PhoneCli --version "*-*" --ignore-failed-sources
To uninstall global tool, type command :
dotnet tool uninstall -g PhoneCli
To run global tool, type commands :
PhoneCli -h
to show helpPhoneCli -s
to show settingsPhoneCli Generate
to generate phone numbersPhoneCli Validate
to validate phone numbersPhoneCli Info
to get country/calling phone codes
Tools
: net 6.0/7.0/8.0, command-line, spectre-console, libphonenumber, fluent-validation, fluent-assertions, xunit