These days, everything is extensible. Whether they are called plugins, extensions, add-ons, or sub-commands—everything is about customizing the (developer) experience. cargo provides a very easy path to achieve this: by using a binary's name. This allows for quickly extending the cargo base to include functions that are specific to your own use case or way of working. In this recipe, we are going to build our own extension.
Extending cargo with sub-commands
Getting ready
For this recipe, we will stay on the command line and we will use a sample code for a simple binary, so open a Terminal/PowerShell (we are using PowerShell features on Windows) to run the commands in this recipe.