diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-04-27 12:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 12:44:36 +0200 |
commit | baf7092ea2ac97bee93213ddf639bb9b41f0888e (patch) | |
tree | a89f9794f4e1fcb0cd8eae9d1e8058d90668a8f4 /cli/main.rs | |
parent | 83770e898e365579dcc30650f706116a312bd9f6 (diff) |
remove --unstable flag from CLI features (#10190)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/cli/main.rs b/cli/main.rs index f33bdd3a9..d66bdcee9 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -44,7 +44,6 @@ use crate::flags::Flags; use crate::fmt_errors::PrettyJsError; use crate::media_type::MediaType; use crate::module_loader::CliModuleLoader; -use crate::program_state::exit_unstable; use crate::program_state::ProgramState; use crate::source_maps::apply_source_map; use crate::specifier_handler::FetchHandler; @@ -320,10 +319,6 @@ async fn compile_command( args: Vec<String>, target: Option<String>, ) -> Result<(), AnyError> { - if !flags.unstable { - exit_unstable("compile"); - } - let debug = flags.log_level == Some(log::Level::Debug); let run_flags = @@ -382,9 +377,6 @@ async fn info_command( maybe_specifier: Option<String>, json: bool, ) -> Result<(), AnyError> { - if json && !flags.unstable { - exit_unstable("--json"); - } let program_state = ProgramState::build(flags).await?; if let Some(specifier) = maybe_specifier { let specifier = resolve_url_or_path(&specifier)?; @@ -441,16 +433,12 @@ async fn lsp_command() -> Result<(), AnyError> { } async fn lint_command( - flags: Flags, + _flags: Flags, files: Vec<PathBuf>, list_rules: bool, ignore: Vec<PathBuf>, json: bool, ) -> Result<(), AnyError> { - if !flags.unstable { - exit_unstable("lint"); - } - if list_rules { tools::lint::print_rules_list(json); return Ok(()); @@ -898,10 +886,6 @@ async fn coverage_command( exclude: Vec<String>, lcov: bool, ) -> Result<(), AnyError> { - if !flags.unstable { - exit_unstable("coverage"); - } - if files.is_empty() { println!("No matching coverage profiles found"); std::process::exit(1); |