lib/plugins/plugin/uninstall/uninstall.js/PluginUninstall/constructor
class PluginUninstall:  constructor(serverless, options) {
    this.serverless = serverless;
    this.options = options;

    Object.assign(this, pluginUtils);

    this.commands = {
      plugin: {
        commands: {
          uninstall: {
            usage: 'Uninstall and remove a plugin from your service',
            lifecycleEvents: ['uninstall'],
            options: {
              name: {
                usage: 'The plugin name',
                required: true,
                shortcut: 'n',
              },
            },
          },
        },
      },
    };

    this.hooks = {
      'plugin:uninstall:uninstall': () =>
        BbPromise.bind(this)
          .then(this.uninstall)
          .then(this.trackPluginUninstall),
    };
  }