/**
  * Handle the command.
  *
  * @return string
  */
 public function handle(Filesystem $files)
 {
     /* Create addon folder */
     $files->makeDirectory($this->dist, 0755, true, true);
     /* Copy/parse Builder's template files */
     $files->parseDirectory($this->src . '/template', $this->dist . '/', $this->context);
     return $this->dist;
 }
 /**
  * Load the template metadata.
  *
  * @param string $template, the Builder template
  *
  * @return array
  */
 protected function getTemplateMetadata($template)
 {
     if ($this->files->exists($path = $this->getBuilderPath("{$template}/builder.json"))) {
         return json_decode($this->files->get($path), true);
     }
     return [];
 }