mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
12 lines
356 B
Bash
Executable File
12 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
title="Creating project..."
|
|
script="${SCRIPTS:-$HOME/.local/scripts}/utils/hpa/hpa-create"
|
|
first_arg=${1:-""}
|
|
if [[ $first_arg == "-h" ]] || [[ $first_arg == "--help" ]]; then
|
|
. "$script" $*
|
|
else
|
|
# bash -c "$script $*" | tr -d '\r' | head -1
|
|
gum spin --show-output --title "$title" -- bash -c "$script $*" | tr -d '\r' | head -1
|
|
fi
|