dax icon indicating copy to clipboard operation
dax copied to clipboard

Suport multiline command

Open sigmaSd opened this issue 11 months ago • 2 comments

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

sigmaSd avatar Jan 26 '25 08:01 sigmaSd

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

NfNitLoop avatar Feb 22 '25 04:02 NfNitLoop

@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.

Yohe-Am avatar Jul 14 '25 22:07 Yohe-Am