The self.run method is the first, as well as the most important, function/method in the plugin. It details the actual commands that this plugin will execute:
- You have the option of adding a lane context (which lane to call this within) or running without context, as shown in the following.
- The method then assigns, to the variable tag from the options dictionary, the value of the key :tag, as well as :grouping and :prefix. We will discuss the options dictionary shortly.
- The message variable is assigned the :message key value; if there isn't one, assign it the value of the :tag key we constructed in the previous step.
- Using cmd, we construct our shell commands, calling the git tag command adding the various properties we assigned ...