/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/cli_parser/src/lib.rs
30 строк
889 B
Bartek Iwańczuk
refactor: remove clap from the tree (#36489)
08 авг 2026, 01:24
Не верифицирован
08 авг 2026, 01:24
41b646e
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. // `flags` holds the canonical flag type definitions (`Flags`, // `DenoSubcommand`, etc.), shared by this crate and re-exported by the Deno CLI. pub mod flags; // The zero-cost argument parser. `types` defines the static `CommandDef` / // `ArgDef` tables, `defs` is the actual command tree for Deno, `parse` walks // argv against the tables into a `ParseResult`, `convert` turns that into // `Flags`, and `help` / `completions` render help text and shell completions // from the same static tables. `error` is the parser's public error type. pub mod completions; pub mod convert; pub mod defs; pub mod env_vars; mod error; pub mod help; mod parse; pub mod permission_help; mod types; pub use error::CliError; pub use error::CliErrorKind; pub use parse::parse; pub use types::*; #[cfg(test)] mod tests; #[cfg(test)] mod tests_full;