Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from drajathasan/development
Browse files Browse the repository at this point in the history
Improve : Plugin feature & Add : Module feature
  • Loading branch information
drajathasan authored Jun 4, 2021
2 parents bf67620 + fed6530 commit c264bf9
Show file tree
Hide file tree
Showing 4 changed files with 410 additions and 31 deletions.
14 changes: 7 additions & 7 deletions src/SLiMSTarsius/Docgenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function banner()
| | (_| | | \__ \ | |_| \__ \
|_|\__,_|_| |___/_|\__,_|___/
";
echo "\t\t\t v1.2.3 \n";
echo "\t\t\t v".TAR_VERSION." \n";
}
public static function firstMeet()
{
Expand All @@ -43,12 +43,12 @@ public static function usage()
echo "\n\e[36m --plugin \033[0m";
echo "\n\e[32m --plugin:create \033[0m\tMembuat kerangka dasar plugin (mode non-hook)";
echo "\n\e[32m --plugin:list \033[0m\tMenampilkan plugin tersedia";
echo "\n\e[32m --plugin:info \033[0m\tMenampilkan informasi plugin";
echo "\n\e[32m --plugin:info \033[0m\tMenampilkan informasi plugin\n";
/* Module */
echo "\n\e[36m --module \033[0m";
echo "\n\e[32m --module:create \033[0m\tMembuat kerangka dasar module (fitur mendatang)";
echo "\n\e[32m --module:list \033[0m\tMenampilkan module tersedia (fitur mendatang)";
echo "\n\e[32m --module:info \033[0m\tMenampilkan informasi module (fitur mendatang)\n";
echo "\n\e[32m --module:create \033[0m\tMembuat kerangka dasar module";
echo "\n\e[32m --module:list \033[0m\tMenampilkan module tersedia";
echo "\n\e[32m --module:info \033[0m\tMenampilkan informasi module\n";
/* Template */
echo "\n\e[36m --template \033[0m\t(fitur mendatang)\n";
/* Library */
Expand All @@ -62,7 +62,7 @@ public static function usage()
echo "\n";
}

public static function list($label, $data, $heading = '')
public static function list($label, $data, $heading = '', $type = 'plugin')
{
echo "\n\e[33m $label \033[0m\n\n";
echo $heading;
Expand All @@ -73,7 +73,7 @@ public static function list($label, $data, $heading = '')
}
$numPlugin = count($data);
echo " --------------------------------------------------------------------------------------------------------\n";
echo "\n Ditemukan \e[1m$numPlugin\033[0m plugin\n";
echo "\n Ditemukan \e[1m$numPlugin\033[0m $type\n";
echo "\n";
}

Expand Down
Loading

0 comments on commit c264bf9

Please sign in to comment.