fix: Change the source + add input

This commit is contained in:
J M
2022-05-17 17:25:25 -06:00
committed by Keagan McClelland
parent 52de5426ad
commit c8fc9a98bf
3 changed files with 7 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ if [ "$0" != "./build-prod.sh" ]; then
exit 1
fi
alias 'rust-arm64-builder'='docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src start9/rust-arm-cross:aarch64'
alias 'rust-arm64-builder'='docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src -P start9/rust-arm-cross:aarch64'
cd ..
FLAGS=""

View File

@@ -635,6 +635,11 @@ mod js_runtime {
Ok(ctx.input.clone())
}
#[op]
fn get_input(state: &mut OpState) -> Result<Value, AnyError> {
let ctx = state.borrow::<JsContext>();
Ok(ctx.input.clone())
}
#[op]
fn set_value(state: &mut OpState, value: Value) -> Result<(), AnyError> {
let mut answer = state.borrow::<AnswerState>().0.lock();
*answer = value;

View File

@@ -56,7 +56,7 @@ export async function getConfig(effects) {
volumeId: 'main',
// @ts-ignore
})).value;
await effects.removeFile({
path: "./testing/test2.log",
volumeId: 'main',