diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/ops/process.rs | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r-- | cli/ops/process.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs index fe461bd28..9da87bd39 100644 --- a/cli/ops/process.rs +++ b/cli/ops/process.rs @@ -2,7 +2,6 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use super::io::StreamResource; use crate::op_error::OpError; -use crate::ops::json_op; use crate::signal::kill; use crate::state::State; use deno_core::*; @@ -22,12 +21,9 @@ use tokio::process::Command; use std::os::unix::process::ExitStatusExt; pub fn init(i: &mut Isolate, s: &State) { - i.register_op("run", s.core_op(json_op(s.stateful_op(op_run)))); - i.register_op( - "run_status", - s.core_op(json_op(s.stateful_op(op_run_status))), - ); - i.register_op("kill", s.core_op(json_op(s.stateful_op(op_kill)))); + i.register_op("op_run", s.stateful_json_op(op_run)); + i.register_op("op_run_status", s.stateful_json_op(op_run_status)); + i.register_op("op_kill", s.stateful_json_op(op_kill)); } fn clone_file(rid: u32, state: &State) -> Result<std::fs::File, OpError> { |