mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-07 22:50:39 +00:00
chore(lint): consolidate naming, fix command shadowing
This commit is contained in:
@@ -72,21 +72,22 @@ parse_options()
|
|||||||
# @description
|
# @description
|
||||||
# Install all configured components by calling each individual
|
# Install all configured components by calling each individual
|
||||||
# installation routine unless skipped via options.
|
# installation routine unless skipped via options.
|
||||||
function all() {
|
install_all()
|
||||||
|
{
|
||||||
parse_options "$@"
|
parse_options "$@"
|
||||||
|
|
||||||
lib::log "Installing all packages..."
|
lib::log "Installing all packages..."
|
||||||
|
|
||||||
if [[ $SKIP_FONTS -eq 0 ]]; then
|
if [[ $SKIP_FONTS -eq 0 ]]; then
|
||||||
fonts
|
install_fonts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SKIP_BREW -eq 0 ]]; then
|
if [[ $SKIP_BREW -eq 0 ]]; then
|
||||||
brew
|
install_brew
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SKIP_CARGO -eq 0 ]]; then
|
if [[ $SKIP_CARGO -eq 0 ]]; then
|
||||||
cargo
|
install_cargo
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,10 +106,11 @@ function all() {
|
|||||||
# None.
|
# None.
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# fonts
|
# install_fonts
|
||||||
#
|
#
|
||||||
# @description Install all configured fonts from helper script, prompting the user unless automation is disabled.
|
# @description Install all configured fonts from helper script, prompting the user unless automation is disabled.
|
||||||
function fonts() {
|
install_fonts()
|
||||||
|
{
|
||||||
|
|
||||||
: "${SKIP_FONTS:=0}"
|
: "${SKIP_FONTS:=0}"
|
||||||
: "${NO_AUTOMATION:=0}"
|
: "${NO_AUTOMATION:=0}"
|
||||||
@@ -144,10 +146,11 @@ function fonts() {
|
|||||||
# Logs a message indicating the start of the Homebrew installation process.
|
# Logs a message indicating the start of the Homebrew installation process.
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# brew
|
# install_brew
|
||||||
#
|
#
|
||||||
# @description Install Homebrew and declared packages using the Brewfile.
|
# @description Install Homebrew and declared packages using the Brewfile.
|
||||||
function brew() {
|
install_brew()
|
||||||
|
{
|
||||||
|
|
||||||
: "${SKIP_BREW:=0}"
|
: "${SKIP_BREW:=0}"
|
||||||
: "${NO_AUTOMATION:=0}"
|
: "${NO_AUTOMATION:=0}"
|
||||||
@@ -192,10 +195,11 @@ function brew() {
|
|||||||
# Uses lib::log for logging the installation process.
|
# Uses lib::log for logging the installation process.
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# cargo
|
# install_cargo
|
||||||
#
|
#
|
||||||
# @description Install Rust tooling and cargo packages using helper scripts.
|
# @description Install Rust tooling and cargo packages using helper scripts.
|
||||||
function cargo() {
|
install_cargo()
|
||||||
|
{
|
||||||
|
|
||||||
: "${SKIP_CARGO:=0}"
|
: "${SKIP_CARGO:=0}"
|
||||||
: "${NO_AUTOMATION:=0}"
|
: "${NO_AUTOMATION:=0}"
|
||||||
|
|||||||
Reference in New Issue
Block a user