mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:38:30 +00:00
New translations dcr-toml.mdx (Polish)
[ci skip]
This commit is contained in:
@@ -41,9 +41,10 @@ Main project configuration file. Located at the project root.
|
|||||||
## [package]
|
## [package]
|
||||||
|
|
||||||
| Field | Required | Description |
|
| Field | Required | Description |
|
||||||
| --------- | -------- | ------------------------------------------- |
|
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
|
||||||
| `name` | yes | Project name |
|
| `name` | yes | Project name |
|
||||||
| `version` | yes | Semantic version |
|
| `version` | yes | Semantic version of the **project** |
|
||||||
|
| `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. |
|
||||||
| `type` | no | `app`, `lib`, `none` (defaults to `"none"`) |
|
| `type` | no | `app`, `lib`, `none` (defaults to `"none"`) |
|
||||||
| `license` | no | SPDX license identifier |
|
| `license` | no | SPDX license identifier |
|
||||||
| `author` | no | Author |
|
| `author` | no | Author |
|
||||||
@@ -52,11 +53,26 @@ Main project configuration file. Located at the project root.
|
|||||||
[package]
|
[package]
|
||||||
name = "my-app"
|
name = "my-app"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
dcr-version = "0.8.4"
|
||||||
type = "app"
|
type = "app"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
author = "John Doe"
|
author = "John Doe"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `package.dcr-version`
|
||||||
|
|
||||||
|
Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load:
|
||||||
|
|
||||||
|
| Situation | Behaviour |
|
||||||
|
| ------------------------------ | ---------------------------------------------------------- |
|
||||||
|
| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) |
|
||||||
|
| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) |
|
||||||
|
| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready |
|
||||||
|
| Equal | Silent |
|
||||||
|
| Invalid semver | Warning once, field ignored |
|
||||||
|
|
||||||
|
Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`).
|
||||||
|
|
||||||
## [build]
|
## [build]
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user