diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-07 20:21:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 20:21:18 +0100 |
commit | 1a472ad06bdc55b1fa0c0f26ca2d24d709f2e0c3 (patch) | |
tree | 7b1c8b615f36916744723e8d60162801eb6127a7 /cli/main.rs | |
parent | 192f07bb7e2076808cae1eeb6c701cdd3d8d42cd (diff) |
feat(repl): run "deno repl" with no permissions (#16795)
This commit changes "deno repl" command to run with no permissions by
default and accept "--allow-*" flags.
This change is dictated by the fact that currently there is no way to
run REPL with limited permissions. Technically it's a breaking
change in the CLI command, but there's agreement in the team
that it has merit and it's a good solution.
Running just "deno" command still starts the REPL with full permissions
allowed, but now a banner is printed to inform users about that:
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cli/main.rs b/cli/main.rs index 445649e5f..98700c2b7 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -585,13 +585,7 @@ async fn repl_command( ) .await?; worker.setup_repl().await?; - tools::repl::run( - &ps, - worker.into_main_worker(), - repl_flags.eval_files, - repl_flags.eval, - ) - .await + tools::repl::run(&ps, worker.into_main_worker(), repl_flags).await } async fn run_from_stdin(flags: Flags) -> Result<i32, AnyError> { |