mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:38:30 +00:00
New translations project-commands.mdx (Russian)
[ci skip]
This commit is contained in:
@@ -1,31 +1,31 @@
|
|||||||
---
|
---
|
||||||
sidebar_label: Project commands (new, init)
|
sidebar_label: Команды проекта (new, init)
|
||||||
---
|
---
|
||||||
|
|
||||||
# Project Commands
|
# Команды проекта
|
||||||
|
|
||||||
## `dcr new \<name>`
|
## `dcr new \<name>`
|
||||||
|
|
||||||
Creates a new project with a standard structure and `dcr.toml`. The `name` argument is required.
|
Создает новый проект со стандартной структурой и `dcr.toml`. Аргумент `name` является обязательным.
|
||||||
|
|
||||||
Only ASCII letters, digits, underscores `_` and hyphens `-` are allowed in the project name.
|
В названии проекта допускаются только ASCII буквы, цифры и подчеркивания `_` и дефисы `-`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dcr new my-app
|
dcr new my-app
|
||||||
```
|
```
|
||||||
|
|
||||||
Generates:
|
Генерирует:
|
||||||
|
|
||||||
* `dcr.toml` with basic fields
|
* `dcr.toml` с базовыми полями
|
||||||
* `src/main.c` with a `main` template
|
* `src/main.c` с основным шаблоном
|
||||||
|
|
||||||
## `dcr init`
|
## `dcr init`
|
||||||
|
|
||||||
Initializes a DCR project in the current (empty) directory.
|
Инициализирует проект DCR в текущем (пустом) каталоге.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir app && cd app
|
mkdir app && cd app
|
||||||
dcr init
|
dcr init
|
||||||
```
|
```
|
||||||
|
|
||||||
The project name is taken from the current directory name. The directory name must follow the same naming rules as `dcr new`.
|
Название проекта взято из имени текущего каталога. Имя каталога должно соответствовать тем же правилам именования, что и в `dcr new`.
|
||||||
|
|||||||
Reference in New Issue
Block a user