diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-24 05:13:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 05:13:50 -0700 |
commit | 5b2baa5c990fbeae747e952c5dcd7a5369e950b1 (patch) | |
tree | 6fb3766978ae5a05f02443310c7121602841a300 /cli/ops/mod.rs | |
parent | bc467b265fbe06ace24f5d9536bd8eb36ae4a601 (diff) |
Port rest of os ops to JSON (#2802)
Diffstat (limited to 'cli/ops/mod.rs')
-rw-r--r-- | cli/ops/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index 240132960..d945c5e5f 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -34,6 +34,9 @@ pub const OP_IS_TTY: OpId = 4; pub const OP_ENV: OpId = 5; pub const OP_EXEC_PATH: OpId = 6; pub const OP_UTIME: OpId = 7; +pub const OP_SET_ENV: OpId = 8; +pub const OP_HOME_DIR: OpId = 9; +pub const OP_START: OpId = 10; pub fn dispatch( state: &ThreadSafeState, @@ -59,9 +62,18 @@ pub fn dispatch( OP_EXEC_PATH => { dispatch_json::dispatch(os::op_exec_path, state, control, zero_copy) } + OP_HOME_DIR => { + dispatch_json::dispatch(os::op_home_dir, state, control, zero_copy) + } OP_UTIME => { dispatch_json::dispatch(fs::op_utime, state, control, zero_copy) } + OP_SET_ENV => { + dispatch_json::dispatch(os::op_set_env, state, control, zero_copy) + } + OP_START => { + dispatch_json::dispatch(os::op_start, state, control, zero_copy) + } OP_FLATBUFFER => dispatch_flatbuffers::dispatch(state, control, zero_copy), _ => panic!("bad op_id"), }; |