π« Toolkit to help you get started with SDD or any other process!
fix: correct `run_command` exit behavior and improve installation instructions (for `Amazon Q`) in `post-create.sh` + fix typos in `CONTRIBUTING.md`
Tine Kondof3c77e2f4fe9
diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.shindex 797fd831b..d66544953 100755--- a/.devcontainer/post-create.sh+++ b/.devcontainer/post-create.sh@@ -17,7 +17,7 @@ run_command() {echo -e "\033[0;31m[ERROR] Command failed (Exit Code $exit_code): $command_to_run\033[0m" >&2echo -e "\033[0;31m$output\033[0m" >&2- return $exit_code+ exit $exit_codefi}@@ -25,7 +25,6 @@ run_command() {# It is a drop-in replacement for Node.js, so we can install npm packages through it without issuesecho "π¦ Installing Bun Package Manager..."run_command "curl -fsSL https://bun.sh/install | bash"-run_command "source ~/.bashrc"echo "β Done"export BUN_INSTALL="$HOME/.bun"@@ -61,11 +60,33 @@ echo -e "\nπ€ Installing OpenCode CLI..."run_command "bun add --global opencode-ai@latest"echo "β Done"-echo -e "\nπ€ Installing Amazon Developer Q CLI..."-run_command "curl --proto '=https' --tlsv1.2 -sSf \"https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip\" -o \"q.zip\""-run_command "unzip q.zip && rm q.zip"++echo -e "\nπ€ Installing Amazon Q CLI..."+# ππΎ https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-verify-download.html++run_command "curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip' -o 'q.zip'"+run_command "curl --proto '=https' --tlsv1.2 -sSf 'https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip.sig' -o 'q.zip.sig'"+cat > amazonq-public-key.asc << 'EOF'+-----BEGIN PGP PUBLIC KEY BLOCK-----++mDMEZig60RYJKwYBBAHaRw8BAQdAy/+G05U5/EOA72WlcD4WkYn5SInri8pc4Z6D+BKNNGOm0JEFtYXpvbiBRIENMSSBUZWFtIDxxLWNsaUBhbWF6b24uY29tPoiZBBMW+CgBBFiEEmvYEF+gnQskUPgPsUNx6jcJMVmcFAmYoOtECGwMFCQPCZwAFCwkIBwIC+IgIGFQoJCAsCBBYCAwECHgcCF4AACgkQUNx6jcJMVmef5QD/QWWEGG/cOnbDnp68+SJXuFkwiNwlH2rPw9ZRIQMnfAS0A/0V6ZsGB4kOylBfc7CNfzRFGtovdBBgHqA6P+zQ/PNscGuDgEZig60RIKKwYBBAGXVQEFAQEHQC4qleONMBCq3+wJwbZSr0vbuRba+D1xr4wUPn4Avn4AnAwEIB4h+BBgWCgAmFiEEmvYEF+gnQskUPgPsUNx6jcJMVmcF+AmYoOtECGwwFCQPCZwAACgkQUNx6jcJMVmchMgEA6l3RveCM0YHAGQaSFMkguoAo+vK6FgOkDawgP0NPIP2oA/jIAO4gsAntuQgMOsPunEdDeji2t+AhV02+DQIsXZpoB+=f8yY+-----END PGP PUBLIC KEY BLOCK-----+EOF+run_command "gpg --batch --import amazonq-public-key.asc"+run_command "gpg --verify q.zip.sig q.zip"+run_command "unzip -q q.zip"+run_command "chmod +x ./q/install.sh"run_command "./q/install.sh --no-confirm"-run_command "rm -rf ./q"+run_command "rm -rf ./q q.zip q.zip.sig amazonq-public-key.asc"echo "β Done"# Installing UV (Python package manager)diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 39ba07b95..928949154 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -14,7 +14,7 @@ These are one time installations required to be able to test your changes locall1. Have an [AI coding agent available](README.md#-supported-ai-agents)<details>-<summary><b>π‘ Hint if you are using <code>VSCode</code> or <code>Github Codespaces</code> as your IDE</b></summary>+<summary><b>π‘ Hint if you are using <code>VSCode</code> or <code>GitHub Codespaces</code> as your IDE</b></summary><br>@@ -26,7 +26,7 @@ To do so, simply:- Open it with VSCode- Open the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and select "Dev Containers: Open Folder in Container..."-On [Github Codespaces](https://github.com/features/codespaces) it's even simpler, as it leverages the `.devcontainer/devcontainer.json` automatically upon opening the codespace.+On [GitHub Codespaces](https://github.com/features/codespaces) it's even simpler, as it leverages the `.devcontainer/devcontainer.json` automatically upon opening the codespace.</details>