mateothegreat
mateothegreat
Explore posts from servers
TTask
Created by mateothegreat on 8/10/2024 in #help
Blocking Task?
Is there a way to have a "blocking" task so that it waits for it to complete first? (see the first task infra/up below)
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

includes:
pkg/rest:
dir: ../pkg/rest
taskfile: ../pkg/rest
pkg/broker:
dir: ../pkg/broker
taskfile: ../pkg/broker
pkg/webrtc:
dir: ../pkg/webrtc
taskfile: ../pkg/webrtc/taskfile.yaml
apps/spa:
dir: ../apps/spa
taskfile: ../apps/spa/taskfile.yaml
tasks:
infra-up:
cmds:
- make infra/up
status:
- curl -s http://localhost:15672
stack:
deps:
- infra-up # wait for this task <---------
- pkg/rest:run
- pkg/broker:run
- pkg/webrtc:run
- apps/spa:run
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

includes:
pkg/rest:
dir: ../pkg/rest
taskfile: ../pkg/rest
pkg/broker:
dir: ../pkg/broker
taskfile: ../pkg/broker
pkg/webrtc:
dir: ../pkg/webrtc
taskfile: ../pkg/webrtc/taskfile.yaml
apps/spa:
dir: ../apps/spa
taskfile: ../apps/spa/taskfile.yaml
tasks:
infra-up:
cmds:
- make infra/up
status:
- curl -s http://localhost:15672
stack:
deps:
- infra-up # wait for this task <---------
- pkg/rest:run
- pkg/broker:run
- pkg/webrtc:run
- apps/spa:run
3 replies
WWindmill
Created by mateothegreat on 8/28/2023 in #help
Dynamically controlling components at run time?
I want to programmatically open/close modals, etc. when a user clicks a button and other events. The way it is now you can bind a button to a small set of pre-defined functions, one being opening a modal.. I want to perform some logic and then show the modal or hide it, etc.. from a runnable. I've perused the docs to no avail and could use some tips. Thanks!! 🙏 -Matthew
3 replies