protected function installTheme(string $name)
    {
        $this->info('Downloading theme...');

        $this->files->put($this->temp, fopen($this->option('url'), 'r'));

        if (true !== $this->zip->open($this->temp)) {
            $this->error('Cannot open theme zip file.');
        }

        $this->zip->extractTo(themes_path());
        $this->zip->close();

        $this->files->move(
            themes_path($this->option('dir')),
            themes_path(str_replace(' ', '-', $name))
        );
        $this->files->delete($this->temp);
    }