public function discoverPlugin($plugin)
    {
        $scanner = new CommandScanner();
        $shells = $scanner->scanPlugin($plugin);

        return $this->resolveNames($shells);
    }
public function discoverPlugin($plugin)
    {
        $scanner = new CommandScanner();
        $shells = $scanner->scanPlugin($plugin);

        return $this->resolveNames($shells);
    }
public function discoverPlugin ( $ plugin ) { $ scanner = new CommandScanner ( ) ; $ shells = $ scanner -> scanPlugin ( $ plugin ) ; return $ this -> resolveNames ( $ shells ) ; }
Auto-discover shell & commands from the named plugin.

Discovered commands will have their names de-duplicated with
existing commands in the collection. If a command is already
defined in the collection and discovered in a plugin, only
the long name (`plugin.command`) will be returned.

@param string $plugin The plugin to scan.
@return string[] Discovered plugin commands.
Auto - discover shell & commands from the named plugin .