Step 7 – running the program
Perfect! We have completed the refactoring of the export
command. Let’s run the code to ensure that it still works as expected.
The syntax to invoke the export
command hasn’t changed. So, let’s invoke it the same way as before by typing the following:
dotnet run export --file 'bookmarks33.json'
We will get the following results:

Figure 8.6 – Invoking the export command after refactoring
Wonderful! The application still works as expected.
We have done a lot of refactoring to our application so far. But is that all? Or can we take it to another level?