Files
mac_os/lib/options.sh
Brooke Kuhlmann 35663cf8b3 Added Rust crates script
Necessary to implement the installation of Rust and associated crates
which can be used by downstream configurations. This functionality was
originally part of the macOS Configuration project but has been moved
here to provide a common foundation in which to build upon.
2021-03-16 18:20:44 -06:00

72 lines
1.5 KiB
Bash

#! /usr/bin/env bash
# Defines command line prompt options.
# Process option selection.
# Parameters: $1 (required) - The option to process.
process_option() {
case $1 in
'B')
bin/create_boot_disk;;
'b')
bin/apply_basic_settings;;
't')
bin/install_dev_tools;;
'hf')
bin/install_homebrew_formulas;;
'hc')
bin/install_homebrew_casks;;
'm')
bin/install_app_store;;
'a')
bin/install_applications;;
'x')
bin/install_extensions;;
'rc')
bin/install_rust_crates;;
'd')
bin/apply_default_settings;;
's')
bin/setup_software;;
'i')
caffeinate_machine
bin/apply_basic_settings
bin/install_dev_tools
bin/install_homebrew_formulas
bin/install_homebrew_casks
bin/install_app_store
bin/install_applications
bin/install_extensions
bin/install_rust_crates
bin/apply_default_settings
bin/setup_software
clean_work_path;;
'R')
caffeinate_machine
bin/restore_backup;;
'c')
verify_homebrew_formulas
verify_homebrew_casks
verify_app_store_applications
verify_applications
verify_extensions
verify_rust_crates;;
'C')
caffeinate_machine;;
'ua')
uninstall_application;;
'ux')
uninstall_extension;;
'ra')
reinstall_application;;
'rx')
reinstall_extension;;
'w')
clean_work_path;;
'q');;
*)
printf "ERROR: Invalid option.\n";;
esac
}
export -f process_option