churn-v2/crates/churn/wit/world.wit
kjuulh 8923c60d9e
All checks were successful
continuous-integration/drone/push Build is passing
feat: add http client
2025-01-10 21:42:35 +01:00

29 lines
507 B
Plaintext

package component:churn-tasks@0.1.0;
interface process {
resource process {
constructor();
run-process: func(inputs: list<string>) -> string;
get-variable: func(key: string) -> string;
}
}
interface http {
resource client {
constructor();
get: func(url: string) -> list<u8>;
}
}
interface task {
id: func() -> string;
should-run: func() -> bool;
execute: func();
}
world churn {
export task;
import process;
import http;
}