Skip to content

Commit

Permalink
update some for plugin info
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 29, 2021
1 parent a9cb2af commit 0e379aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Plugin/AbstractPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ public function getSimpleInfo(): array
// $meta = $this->metadata();
return [
'name' => $this->name,
'version' => $this->metadata['version'],
'author' => $this->metadata['author'],
// 'desc' => $meta['desc'] ?? '',
'class' => $this->classname,
'author' => $this->metadata['author'],
'version' => $this->metadata['version'],
'path' => $this->filepath,
];
}
Expand Down
4 changes: 4 additions & 0 deletions app/Console/Plugin/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ public function showInfo(AbstractPlugin $plugin): void
$panel['example'] = $meta['example'];
}

if ($meta['help']) {
$panel['help'] = $meta['help'];
}

Show::mList($panel);
}

Expand Down
File renamed without changes.

0 comments on commit 0e379aa

Please sign in to comment.