mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-03-15 17:44:45 +01:00
chore: improve output for vars, and add colors
This commit is contained in:
parent
c7ce0407eb
commit
5441c3da5d
24
Taskfile.yml
24
Taskfile.yml
|
|
@ -10,6 +10,24 @@ env:
|
||||||
vars:
|
vars:
|
||||||
TODAY: '{{ now | date "2006-01-02T15:04:05-07:00" }}'
|
TODAY: '{{ now | date "2006-01-02T15:04:05-07:00" }}'
|
||||||
MODEL_DIRECTORY: cache/models
|
MODEL_DIRECTORY: cache/models
|
||||||
|
black: \033[:0;30m
|
||||||
|
red: \033[:0;31m
|
||||||
|
green: \033[:0;32m
|
||||||
|
orange: \033[:0;33m
|
||||||
|
blue: \033[:0;34m
|
||||||
|
purple: \033[:0;35m
|
||||||
|
cyan: \033[:0;36m
|
||||||
|
light_gray: \033[:0;37m
|
||||||
|
dark_gray: \033[:1;30m
|
||||||
|
light_red: \033[:1;31m
|
||||||
|
light_green: \033[:1;32m
|
||||||
|
yellow: \033[:1;33m
|
||||||
|
light_blue: \033[:1;34m
|
||||||
|
light_purple: \033[:1;35m
|
||||||
|
light_cyan: \033[:1;36m
|
||||||
|
white: \033[:1;37m
|
||||||
|
nocolor: \u001b[0m
|
||||||
|
reversed: \u001b[7m
|
||||||
tasks:
|
tasks:
|
||||||
default:
|
default:
|
||||||
cmds:
|
cmds:
|
||||||
|
|
@ -24,7 +42,9 @@ tasks:
|
||||||
cmds:
|
cmds:
|
||||||
- |
|
- |
|
||||||
echo -e "{{.light_gray}}=== ℹ {{ .reversed }} Variable Info from Task {{ .nocolor }} === "
|
echo -e "{{.light_gray}}=== ℹ {{ .reversed }} Variable Info from Task {{ .nocolor }} === "
|
||||||
echo -e "{{.light_gray}}ARTIFACT_DIRECTORY {{.nocolor}}: {{ .orange}}{{ .ARTIFACT_DIRECTORY }} {{ .nocolor }}"
|
echo -e "{{.light_gray}}MODEL_DIRECTORY {{.nocolor}}: {{ .orange}}{{ .MODEL_DIRECTORY }} {{ .nocolor }}"
|
||||||
|
echo -e "{{.light_gray}}DOCKER_BUILDKIT {{.nocolor}}: {{ .orange}}{{ .DOCKER_BUILDKIT }} {{ .nocolor }}"
|
||||||
|
echo -e "{{.light_gray}}UI {{.nocolor}}: {{ .orange}}{{ .UI }} {{ .nocolor }}"
|
||||||
|
|
||||||
### Core Task ###
|
### Core Task ###
|
||||||
init:
|
init:
|
||||||
|
|
@ -40,11 +60,13 @@ tasks:
|
||||||
compose:up:
|
compose:up:
|
||||||
desc: 'compose up with the current profile of: {{ .UI }}'
|
desc: 'compose up with the current profile of: {{ .UI }}'
|
||||||
cmds:
|
cmds:
|
||||||
|
- task: vars
|
||||||
- docker compose --profile {{ .UI }} up
|
- docker compose --profile {{ .UI }} up
|
||||||
update:
|
update:
|
||||||
desc: run updates
|
desc: run updates
|
||||||
interactive: true
|
interactive: true
|
||||||
cmds:
|
cmds:
|
||||||
|
- task: vars
|
||||||
- |
|
- |
|
||||||
docker compose --profile {{ .UI }} up --build
|
docker compose --profile {{ .UI }} up --build
|
||||||
- task: download
|
- task: download
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue