mirror of
https://github.com/denoland/deno.git
synced 2025-07-07 21:35:07 +00:00

Alternative to https://github.com/denoland/deno/pull/28127 that does cli flag parsing, then env file loading, then resolves config with env vars. This also fixes several other issues related to env vars in the --env-file not being used for certain config. Closes https://github.com/denoland/deno/issues/27851 Closes https://github.com/denoland/deno/issues/29171 Closes https://github.com/denoland/deno/pull/28127 Closes #29256
19 lines
411 B
Rust
19 lines
411 B
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub enum UnstableFeatureKind {
|
|
Cli,
|
|
Runtime,
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
#[allow(dead_code)]
|
|
pub struct UnstableFeatureDefinition {
|
|
pub name: &'static str,
|
|
pub flag_name: &'static str,
|
|
pub help_text: &'static str,
|
|
pub show_in_help: bool,
|
|
pub id: i32,
|
|
pub kind: UnstableFeatureKind,
|
|
pub config_file_option: &'static str,
|
|
}
|