summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-08-24 11:21:34 +0200
committerGitHub <noreply@github.com>2023-08-24 11:21:34 +0200
commitf9beb928186f4edb07e07c96b677f14e75c428bb (patch)
tree4b9b6a3d6151ee2c1525e95678a99eedfc4647b3 /cli/args/flags.rs
parentb1ce2e41676ab5bc807a705b072986d9357fece5 (diff)
refactor: use "deno_config" crate (#20260)
Moved the configuration file to https://github.com/denoland/deno_config as we will have to use it in other projects.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index bd3740bdb..544123887 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -7,6 +7,7 @@ use clap::ArgMatches;
use clap::ColorChoice;
use clap::Command;
use clap::ValueHint;
+use deno_config::ConfigFlag;
use deno_core::resolve_url_or_path;
use deno_core::url::Url;
use deno_graph::GraphKind;
@@ -334,19 +335,6 @@ impl Default for TypeCheckMode {
}
#[derive(Clone, Debug, Eq, PartialEq)]
-pub enum ConfigFlag {
- Discover,
- Path(String),
- Disabled,
-}
-
-impl Default for ConfigFlag {
- fn default() -> Self {
- Self::Discover
- }
-}
-
-#[derive(Clone, Debug, Eq, PartialEq)]
pub enum CaData {
/// The string is a file path
File(String),