✓
Passing This code compiles and runs correctly.
Code
// Test 640: build:command.sh - Frontend shell command execution
//
// This test validates that shell commands can be declared and executed
// instantly from the frontend without backend compilation overhead.
import std/build
std/build:command.sh(name: "hello") {
echo "Hello from Koru!"
}
std/build:command.sh(name: "args") {
echo "Args: $@"
}
Flows
flow ~command.sh click a branch to expand · @labels scroll to their anchor
command.sh (name: "hello", source: echo "Hello from Koru!")
flow ~command.sh click a branch to expand · @labels scroll to their anchor
command.sh (name: "args", source: echo "Args: $@")
Test Configuration
Post-validation Script:
#!/bin/bash
# Test shell command execution
set -e
echo "=== Testing shell command 'hello' ==="
koruc "$KORU_INPUT" hello
echo ""
echo "=== Testing shell command 'args' with arguments ==="
koruc "$KORU_INPUT" args one two three