29 lines
507 B
Plaintext
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;
|
|
}
|