From eee70da2755b53733bd7c89ba1023b1f01a0f9ed Mon Sep 17 00:00:00 2001 From: Dexoron Date: Mon, 6 Jul 2026 02:20:59 +0800 Subject: [PATCH] New translations dependency-commands.mdx (Russian) [ci skip] --- .../docs/commands/dependency-commands.mdx.mdx | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx b/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx index 4b5b982..079c4ec 100644 --- a/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx +++ b/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx @@ -1,47 +1,47 @@ --- -sidebar_label: Dependency commands (add, tree) +sidebar_label: Команды зависимостей (add, tree) --- -# Dependency Commands +# Команды зависимостей ## `dcr add \ [source]` -Adds a dependency to `dcr.toml`. +Добавляет зависимость в `dcr.toml`. ```bash -dcr add fmt # registry lookup -dcr add mylib ../path/to/lib # path as source -dcr add mylib path:./lib # explicit path prefix -dcr add mylib git:https://github.com/user/repo # explicit git prefix -dcr add mylib github:user/repo # GitHub shorthand -dcr add mylib gitlab:user/repo # GitLab shorthand +dcr add fmt # поиск в реестре +dcr add mylib ../path/to/lib # путь как источник +dcr add mylib path:./lib # явный префикс пути +dcr add mylib git:https://github.com/user/repo # явный префикс git +dcr add mylib github:user/repo # сокращённая запись GitHub +dcr add mylib gitlab:user/repo # сокращённая запись GitLab ``` -Source prefixes: +Префиксы источника: -* `path:` — local path -* `git:` — generic git URL -* `github:` — expands to `https://github.com/\/\` -* `gitlab:` — expands to `https://gitlab.com/\/\` -* `http://` / `https://` / `git@` — full URL +* `path:` — локальный путь +* `git:` — URL адрес git-репозитория +* `github:` — расширение `https://github.com/\/\` +* `gitlab:` — расширение `https://gitlab.com/\/\` +* `http://` / `https://` / `git@` — полный URL -Flags: +Флаги: -* `--branch \` — git branch +* `--branch \` — git ветка * `--tag \` — git tag * `--rev \` — git commit -If source is omitted — DCR searches connected registries. +Если источник не указан — DCR выполняет поиск в подключенных реестрах. ## `dcr tree` -Displays the project dependency tree. +Показывает дерево зависимостей проекта. ```bash dcr tree ``` -Example output: +Пример вывода: ``` my-app v0.1.0 @@ -50,4 +50,4 @@ my-app v0.1.0 └── catch2 (registry) ``` -For path dependencies, recursively shows their own dependencies (from their `dcr.toml`). +В случае path зависимостей, рекурсивно отображает их собственные зависимости (из файла `dcr.toml`).