File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,25 @@ age = "latest"
1212[tasks .play ]
1313description =" Run the application (SSH)"
1414usage = """
15- arg "[file]" help="path to executable" default="target/bin /app"
15+ arg "[file]" help="path to executable" default="workspace/ target/debug /app"
1616 flag "--example -x <example>" help="run an example"
1717 flag "--build-args -B <args>" var=#true
1818 flag "--env -e <env>" help="environment variables"
1919 flag "--args -a <arguments>" help="command arguments"
20- flag "--assets -A <assets>" help="assets path" default="./assets"
20+ flag "--assets -A <assets>" help="assets path" default="./workspace/ assets"
2121"""
2222run = """
2323#!/bin/bash
24+ set -e
2425if [ -n "$usage_example" ]; then
2526 EXAMPLE="--example $usage_example"
2627fi
2728mise build $usage_build_args $EXAMPLE
2829if [ -n "$usage_example" ]; then
29- TARGET_PATH="target/debug/examples/$usage_example"
30+ TARGET_PATH="./workspace/ target/debug/examples/$usage_example"
3031else
3132 TARGET_PATH=$usage_file
3233fi
33- psync "$TARGET_PATH" -e "${usage_env}" -a "${usage_args}" -A "${usage_assets}"
34+ set -x
35+ uvx --from cubething_psync psync "$TARGET_PATH" -e "${usage_env}" -a "${usage_args}" -A "${usage_assets}"
3436"""
You can’t perform that action at this time.
0 commit comments