How avivbens/shell-config works
Project type and purpose
• This is an open-source CLI tool (“shell-config”) written in Node/NestJS.
• Purpose: automate and standardize macOS setup—install apps, configure zsh, apply dotfiles, run scripts, manage updates.
File structure
• Top level:
• src/ – application code
• src/commands/ – each CLI command and its sub-commands
• src/services/ – core services (e.g., logger, update checker)
• src/common/ – shared utilities and prompt renderers
• src/models/ – data models for configs and API payloads
• src/scripts/ – shell scripts used by the installer
• templates/ & zsh/ – template files for dotfiles and zsh extensions
• docs/ & assets/ – documentation site powered by VitePress
• Configs and build:
• nest-cli.json, tsconfig*.json, package.json, project-scripts/pack.js
README for additional insights
• CLI entry point is a bootstrap script (src/main.ts called by init.sh).
• Features: install apps, asset management, external installs, init scripts, shell prompt setup, update.
• Structured as a NestJS application (app.module.ts) but geared for CLI.
Detailed capture
• Layering: Presentation (CLI prompts) → Business Logic (commands) → Infrastructure (scripts/OS calls).
• Config files and docs as side modules to show maintenance and documentation flow.