Kirby\Cli\Command\Plugin::repo PHP Method

repo() protected method

protected repo ( )
    protected function repo()
    {
        $path = $this->input->getArgument('path');
        // shortcut for official getkirby-plugins
        if (preg_match('!^[a-z0-9_-]+$!i', $path)) {
            return 'getkirby-plugins/' . $path;
        } else {
            return $path;
        }
    }