more input changes

This commit is contained in:
ark-lamp-umbrella 2024-04-12 20:09:52 -07:00
parent fddebef42b
commit ba49f2c9e7
Signed by: ark-lamp-umbrella
GPG Key ID: 15E48F7B97025652
2 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,7 @@ else
end
set gitpush "$(string lower $gitpush)"
if [ "$gitpush" = "y" ]
read -P "[INPUT] Commit message: " cmessage
set cmessage "$(logprinti "commit message" "c")"
logprintn "INFO" "blue" "adding changes to git repo"
git add .
logprintn "INFO" "blue" "creating commit with message \"$cmessage\""

View File

@ -21,6 +21,8 @@ function logprinti
set message "$(logprint "INPT" "green" "$argv[1]: ")"
if [ "$argv[2]" = "c" ]
read -P "$message" input
else if [ "$argv[2]" = "p"]
read -sP "$message" input
end
echo "$input"
end