Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- .woodpecker.yaml: image paths -> library/autojanet-{agent,dispatcher}
- .woodpecker.yaml: secret names RS_HARBOR_USER / RS_HARBOR_PASS (global)
- container/Dockerfile: restore COPY skills/, skills/ populated from opencode config
- skills/: 84 opencode skills bundled into image
- k8s/manifests: update image refs to library/
1.8 KiB
1.8 KiB
Shell Language Prompt Snippet
Key Concepts
- Shebang Line:
#!/bin/bashor#!/usr/bin/env bashspecifying the interpreter - Variables:
VAR=valueassignment,$VARor${VAR}expansion, no spaces around= - Functions:
function name()orname()for reusable command groups - Conditionals:
if [[ condition ]]; then ... fiwith[[ ]]for extended tests - Loops:
for item in list,while condition,until conditioniteration patterns - Pipes and Redirection:
|for chaining commands,>/>>/2>&1for output redirection - Exit Codes:
$?captures last command status;set -eexits on any failure - Strict Mode:
set -euo pipefailfor robust error handling (exit on error, undefined vars, pipe failures) - Command Substitution:
$(command)captures command output as a string - Here Documents:
<<EOF ... EOFfor multi-line string input to commands
Notable File Patterns
*.sh/*.bash— Shell script filesscripts/*.sh— Project automation scripts (build, deploy, setup)entrypoint.sh— Docker container entry point scriptinstall.sh/setup.sh— Environment setup scripts.bashrc/.bash_profile/.zshrc— Shell configuration files
Edge Patterns
- Shell scripts
triggersother scripts or build processes they invoke - Entry point scripts
deploysthe application they start - Setup scripts
configuresthe development environment - Build scripts
depends_onthe source files they compile or package
Summary Style
"Build automation script compiling TypeScript, running tests, and packaging the release artifact." "Docker entry point script handling signal forwarding and graceful shutdown." "Environment setup script installing dependencies and configuring development tools."