mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:38:30 +00:00
docs: rewrite documentation.
add: Nix and Snapcraft support.
This commit is contained in:
28
docs/commands/project-commands.mdx
Normal file
28
docs/commands/project-commands.mdx
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
sidebar_label: Project commands (new, init)
|
||||
---
|
||||
|
||||
# Project Commands
|
||||
|
||||
## `dcr new <name>`
|
||||
|
||||
Creates a new project with a standard structure and `dcr.toml`. The `name` argument is required.
|
||||
|
||||
```bash
|
||||
dcr new my-app
|
||||
```
|
||||
|
||||
Generates:
|
||||
- `dcr.toml` with basic fields
|
||||
- `src/main.c` with a `main` template
|
||||
|
||||
## `dcr init`
|
||||
|
||||
Initializes a DCR project in the current (empty) directory.
|
||||
|
||||
```bash
|
||||
mkdir app && cd app
|
||||
dcr init
|
||||
```
|
||||
|
||||
The project name is taken from the current directory name.
|
||||
Reference in New Issue
Block a user