feat(core, lib-grabenv): Add new grabenv commands and change name of "PanelUrl" command to "AppUrl"
This commit is contained in:
parent
725a152818
commit
dca1cc741e
2 changed files with 14 additions and 5 deletions
|
@ -1155,7 +1155,7 @@ if [[ ( $2 == "-export" || $2 == "-e" ) ]]; then VCMD="y"
|
|||
|
||||
sendTelemetry "EXPOSE_DEVELOPMENT_EXTENSION" > /dev/null
|
||||
log_green log_bold "\n[SUCCESS] Your extension has been exported successfully."
|
||||
log_green " - $(grabPanelUrl)/assets/extensions/blueprint/exports/${randstr}/${identifier}.blueprint"
|
||||
log_green " - $(grabAppUrl)/assets/extensions/blueprint/exports/${randstr}/${identifier}.blueprint"
|
||||
log_green " - ${FOLDER}/${identifier}.blueprint"
|
||||
|
||||
eval $(sleep 120 && rm -R public/assets/extensions/blueprint/exports/${randstr} 2> /dev/null) &
|
||||
|
|
|
@ -2,10 +2,19 @@
|
|||
#
|
||||
# This script has been created as part of the Blueprint source code
|
||||
# and may be intergrated directly into the core in the future.
|
||||
#
|
||||
# Commands:
|
||||
# - grabAppUrl string
|
||||
# - grabAppDebug bool
|
||||
# - grabAppTimezone string
|
||||
# - grabAppLocale string
|
||||
|
||||
|
||||
|
||||
cd "${BLUEPRINT__FOLDER}"
|
||||
|
||||
grabPanelUrl() {
|
||||
source ${BLUEPRINT__FOLDER}/.env
|
||||
echo $APP_URL
|
||||
}
|
||||
|
||||
grabAppUrl() { echo $APP_URL; }
|
||||
grabAppDebug() { echo $APP_DEBUG; }
|
||||
grabAppTimezone() { echo $APP_TIMEZONE; }
|
||||
grabAppLocale() { echo $APP_LOCALE; }
|
Loading…
Reference in a new issue