Files
mac_os/lib/options.sh
Brooke Kuhlmann d546d79759 Added script hooks for unfinished custom configurations.
- These scripts default to calling out to scripts of the same name as
  defined by the custom configuration project (i.e.
  `$MAC_OS_CONFIG_PATH`).
- This helps ensure the scripts in this project can be run
  appropriately even if the custom configuration project hasn't fully
  implemented all scripts yet.
- This also helps illustrate what scripts are necessary when creating a
  custom configuration.
2016-10-11 16:31:47 -06:00

64 lines
1.2 KiB
Bash

#! /usr/bin/env bash
# DESCRIPTION
# Defines command line prompt options.
# Process option selection.
# Parameters:
# $1 = The option to process.
process_option() {
case $1 in
'B')
bin/create_boot_disk;;
'b')
bin/apply_basic_settings;;
't')
bin/install_dev_tools;;
'h')
bin/install_homebrew;;
'm')
bin/install_app_store;;
'a')
bin/install_applications;;
'x')
bin/install_extensions;;
'd')
bin/apply_default_settings;;
's')
bin/setup_software;;
'i')
caffeinate_machine
bin/apply_basic_settings
bin/install_dev_tools
bin/install_homebrew
bin/install_app_store
bin/install_applications
bin/install_extensions
bin/apply_default_settings
bin/setup_software
clean_work_path;;
'R')
bin/restore_backup;;
'c')
verify_homebrews
verify_applications
verify_extensions;;
'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