This cli shows rate of exchange via this free api.
rate
is default command to run.
This command shows 1 dollar and euro value opposing turkish lira as in picture below.
Help command is similar like other CLIs. rate --h
On previos version, i was using Option
to get parameters.
We were supposed to use parameter by dash. I changed it with Argument
.
You can see the usage in picture below
- Edit project file and add these lines into PropertyGroup tag.
<PackAsTool>true</PackAsTool>
<ToolCommandName>rate</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
- run
dotnet pack
- run
dotnet tool install --global --add-source ./nupkg exchange-cli