dax
dax copied to clipboard
Suport multiline command
I noticed that bun shell supports this
await $`
cd webview
export PATH=/usr/lib/llvm14/bin/:/usr/lib/llvm-14/bin/:/usr/lib64/llvm15/bin/:$PATH
cmake -G Ninja -B build -S . -D CMAKE_BUILD_TYPE=Release -D WEBVIEW_WEBKITGTK_API=6.0 -DWEBVIEW_ENABLE_CHECKS=false -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/host-llvm.cmake
cmake --build build
cp build/core/libwebview.so ../build/libwebview-${arch}.so
strip ../build/libwebview-${arch}.so
`;
Maybe its a good idea to have it
I'd love this too. I end up using this pattern instead: https://github.com/diskuto/diskuto-client/blob/4507837dadd8ea2287b3494563e64d99c6d8d200/src/protobuf/regenerate.ts#L42-L50
@sigmaSd this ticket is about supporting multiple commands with each starting on a new line? As opposed to allowing a single command to support \n as separators (which already works)? I've found that if you put the first command before the first \n and use ; after each command, you can approximate this pattern.