xc icon indicating copy to clipboard operation
xc copied to clipboard

Shared State?

Open johnallen3d opened this issue 1 year ago • 0 comments

I have a use case where I want to share some state between tasks. Take this simplistic example:

# `runme` Test

## Tasks

### hello

/```bash
export FOO=bar
/```

### world

requires: hello

/```bash
echo $FOO
/```
  • note: using / to prevent fence-block closing too soon.

Imaging task hello is executing a curl request and the output of that is useful in several other tasks. Is it possible to "share state" or receive output from a dependent task?

The above does not work:

❯ xc -f test.md world
world| + echo
world|

Maybe this is too close to #103? If so, please feel free to close this issue.

johnallen3d avatar Sep 13 '24 16:09 johnallen3d