Add -collect command for debugging.
This commit is contained in:
parent
3ff29872f3
commit
7a6bd536e1
1 changed files with 8 additions and 0 deletions
|
@ -430,6 +430,7 @@ if [[ ( $2 == "help" ) || ( $2 == "-help" ) || ( $2 == "--help" ) ]]; then
|
|||
" "-build run an installation on your extension development files""
|
||||
" "-export export your extension development files""
|
||||
" "-runinstall rerun the blueprint installation script (advanced)""
|
||||
" "-collect collect debug information""
|
||||
" "-upgrade (dev) update/reset to a newer pre-release version (advanced)";
|
||||
fi;
|
||||
|
||||
|
@ -601,6 +602,13 @@ if [[ $2 == "-runinstall" ]]; then
|
|||
bash blueprint.sh;
|
||||
fi;
|
||||
|
||||
# -collect
|
||||
if [[ $2 == "-collect" ]]; then
|
||||
echo -e "@@@@@@@@@@@@ LOGS.TXT START @@@@@@@@@@@@\n\n";
|
||||
echo -e $(cat .blueprint/data/internal/debug/logs.txt);
|
||||
echo -e "\n\n@@@@@@@@@@@@@ LOGS.TXT END @@@@@@@@@@@@@";
|
||||
fi;
|
||||
|
||||
# -upgrade
|
||||
if [[ $2 == "-upgrade" ]]; then
|
||||
log_yellow "[WARNING] This is an advanced feature, only proceed if you know what you are doing.\n";
|
||||
|
|
Loading…
Reference in a new issue