Files
mac_os/lib/options.sh
andreas 2fcf26506a Flatten directory structure and update documentation
- Moved all files from mac_os/ subdirectory to repository root
- Updated README.adoc to reflect simplified architecture
- Updated QUICK_INSTALL.md with all current apps
- Added claude-cli to install.sh and bin/install_homebrew_formulas
- Repository now shows clean file structure without nested mac_os folder
- Documentation now accurately describes opinionated installer approach

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 13:31:07 -06:00

54 lines
1.4 KiB
Bash

#! /usr/bin/env bash
# Defines command line prompt options.
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Label: Process Option
# Description: Run script based on selection.
# Parameters: $1 (required): The option to process.
process_option() {
case $1 in
'b')
bin/install_basics;;
't')
bin/install_dev_tools;;
'hf')
bin/install_homebrew_formulas;;
'hc')
bin/install_homebrew_casks;;
'm')
bin/install_app_store;;
'i')
caffeinate_machine
bin/install_basics
bin/install_dev_tools
bin/install_homebrew_formulas
bin/install_homebrew_casks
bin/install_app_store
clean_work_path
printf "\n🎉 ${GREEN}Installation Complete!${NC}\n\n"
printf "✅ All software has been installed successfully!\n\n"
printf "${YELLOW}Next steps:${NC}\n"
printf " • Restart your terminal to use Homebrew commands\n"
printf " • Configure installed applications as needed\n"
printf " • Run 'bin/run c' to check installation status\n\n"
printf "${GREEN}Enjoy your new macOS setup!${NC}\n\n";;
'c')
verify_homebrew_formulas
verify_homebrew_casks
verify_app_store_applications;;
'C')
caffeinate_machine;;
'w')
clean_work_path;;
'q');;
*)
printf "ERROR: Invalid option.\n";;
esac
}
export -f process_option