scripts/summary.sh
#!/bin/sh

. ./_utils.sh

# ------------------------------------------------------------------------------
e_message "Creating summary"
# ------------------------------------------------------------------------------

e_pending "Checking system"
e_success "$(uname -p) Architecture"

e_pending "Checking defaults"
if has_path "Developer"; then
    e_success "~/Developer"
else
    e_failure "~/Developer"
fi
if has_path "Sandbox"; then
    e_success "~/Sandbox"
else
    e_failure "~/Sandbox"
fi
test_command "xcode-select"
test_command "brew"

e_pending "Checking tools"
test_command "watchman"
test_command "trash"
test_command "git"
test_command "zsh"
test_path ".oh-my-zsh"
test_brew "oh-my-posh"
test_brew "powerlevel10k"
test_brew "zsh-autosuggestions"
test_brew "zsh-syntax-highlighting"
test_command "n"
test_command "nvm"
test_command "node"
test_command "pnpm"
test_command "yarn"
test_command "npm"
test_command "serve"

e_pending "Checking casks"
test_cask "font-jetbrains-mono-nerd-font" "JetBrainsMono Nerd Font"
test_app "1Password"
test_app "Brave Browser"
test_app "Bruno"
test_app "Discord"
test_app "Figma"
test_app "Google Chrome"
test_app "iTerm"
test_app "Rectangle"
test_app "Slack"
test_app "Sourcetree"
test_app "Spotify"
test_app "Visual Studio Code"
test_app "Warp"
test_app "Zoom.us"

# ------------------------------------------------------------------------------
e_message "Summary complete"
# ------------------------------------------------------------------------------
