Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.28 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.28 KB

Exchange CLI

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




Packing

  1. Edit project file and add these lines into PropertyGroup tag.
<PackAsTool>true</PackAsTool>
<ToolCommandName>rate</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
  1. run dotnet pack
  2. run dotnet tool install --global --add-source ./nupkg exchange-cli