Skip to content

Commit cb2bf4d

Browse files
committed
feat: add config value names to -init
1 parent 1158ae7 commit cb2bf4d

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

scripts/commands/developer/init.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Command() {
3333

3434
ask_name() {
3535
INPUT_DEFAULT="SpaceInvaders"
36-
PRINT INPUT "Name [$INPUT_DEFAULT]:"
36+
PRINT INPUT "Name (info.name) [$INPUT_DEFAULT]:"
3737
read -r ASKNAME
3838
REDO_NAME=false
3939

@@ -48,7 +48,7 @@ Command() {
4848

4949
ask_identifier() {
5050
INPUT_DEFAULT="spaceinvaders"
51-
PRINT INPUT "Identifier [$INPUT_DEFAULT]:"
51+
PRINT INPUT "Identifier (info.identifier) [$INPUT_DEFAULT]:"
5252
read -r ASKIDENTIFIER
5353
REDO_IDENTIFIER=false
5454

@@ -68,7 +68,7 @@ Command() {
6868

6969
ask_description() {
7070
INPUT_DEFAULT="Shoot down space aliens!"
71-
PRINT INPUT "Description [$INPUT_DEFAULT]:"
71+
PRINT INPUT "Description (info.description) [$INPUT_DEFAULT]:"
7272
read -r ASKDESCRIPTION
7373
REDO_DESCRIPTION=false
7474

@@ -83,7 +83,7 @@ Command() {
8383

8484
ask_version() {
8585
INPUT_DEFAULT="1.0"
86-
PRINT INPUT "Version [$INPUT_DEFAULT]:"
86+
PRINT INPUT "Version (info.version) [$INPUT_DEFAULT]:"
8787
read -r ASKVERSION
8888
REDO_VERSION=false
8989

@@ -98,7 +98,7 @@ Command() {
9898

9999
ask_author() {
100100
INPUT_DEFAULT="byte"
101-
PRINT INPUT "Author [$INPUT_DEFAULT]:"
101+
PRINT INPUT "Author (info.author) [$INPUT_DEFAULT]:"
102102
read -r ASKAUTHOR
103103
REDO_AUTHOR=false
104104

@@ -170,4 +170,4 @@ Command() {
170170
mkdir -p .blueprint/tmp
171171

172172
PRINT SUCCESS "Extension files initialized and imported to '.blueprint/dev'."
173-
}
173+
}

scripts/helpers/blueprint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export BLUEPRINT__FOLDER="BLUEPRINT_FOLDER_HERE"
1111
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
1212
export BLUEPRINT__PROFILE="available"
1313
source "$BLUEPRINT__FOLDER/blueprint.sh"
14+
# shellcheck disable=SC2317
1415
return 0
1516
fi
1617

1718
# Run Blueprint command
18-
bash "$BLUEPRINT__FOLDER/blueprint.sh" -bash $@
19+
bash "$BLUEPRINT__FOLDER/blueprint.sh" -bash "${@}"

0 commit comments

Comments
 (0)