Skip to content

Commit 6d0ff1d

Browse files
authored
Merge pull request #45 from StrangeDaysTech/chore/bump-cli-3.1.0
chore: bump CLI version to 3.1.0
2 parents a032997 + 7d58eeb commit 6d0ff1d

8 files changed

Lines changed: 49 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project uses [independent versioning](README.md#versioning) for Framewo
77

88
---
99

10+
## CLI 3.1.0 — crates.io Distribution & Smart Self-Update
11+
12+
### Added (CLI)
13+
- **crates.io distribution**: `cargo install devtrail-cli` now available as an installation method
14+
- **Install method detection**: `devtrail update-cli` auto-detects whether the CLI was installed via cargo or prebuilt binary and uses the appropriate update mechanism
15+
- **`--method` flag**: Override auto-detection on `update-cli` and `update` commands (`auto`, `github`, `cargo`)
16+
- **`devtrail about`**: Now displays the detected installation method
17+
- **CI**: `release-cli.yml` workflow publishes to crates.io after GitHub Release upload
18+
19+
### Changed (CLI)
20+
- `Cargo.toml`: Added `include` field for crate packaging, removed `readme` path (outside crate boundary)
21+
22+
---
23+
1024
## Framework 4.1.1 — Status Skill Complexity Fix
1125

1226
### Fixed (Framework)

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DevTrail uses **independent versions** for framework and CLI:
4343
| Component | Tag format | Current | Example |
4444
|-----------|-----------|---------|---------|
4545
| Framework | `fw-X.Y.Z` | fw-4.1.1 | `fw-4.1.1` |
46-
| CLI | `cli-X.Y.Z` | cli-3.0.1 | `cli-3.0.1` |
46+
| CLI | `cli-X.Y.Z` | cli-3.1.0 | `cli-3.1.0` |
4747

4848
Follow [semver](https://semver.org/):
4949
- **Major**: breaking changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ DevTrail uses independent version tags for each component:
150150
| Component | Tag prefix | Example | Includes |
151151
|-----------|-----------|---------|----------|
152152
| Framework | `fw-` | `fw-4.1.1` | Templates (12 types), governance, directives |
153-
| CLI | `cli-` | `cli-3.0.1` | The `devtrail` binary |
153+
| CLI | `cli-` | `cli-3.1.0` | The `devtrail` binary |
154154

155155
Check installed versions with `devtrail status` or `devtrail about`.
156156

cli/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "devtrail-cli"
3-
version = "3.0.1"
3+
version = "3.1.0"
44
edition = "2021"
55
description = "CLI tool for DevTrail - Documentation Governance for AI-Assisted Development"
66
license = "MIT"

docs/adopters/CLI-REFERENCE.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DevTrail uses **independent version tags** for each component:
4949
| Component | Tag prefix | Example | What it includes |
5050
|-----------|-----------|---------|------------------|
5151
| Framework | `fw-` | `fw-4.1.1` | Templates (12 types), governance docs, directives |
52-
| CLI | `cli-` | `cli-3.0.1` | The `devtrail` binary |
52+
| CLI | `cli-` | `cli-3.1.0` | The `devtrail` binary |
5353

5454
Framework and CLI are released independently. A framework update does not require a CLI update, and vice versa.
5555

@@ -110,7 +110,7 @@ $ devtrail update
110110
Updating framework...
111111
✔ Framework updated to fw-4.1.1
112112
Updating CLI...
113-
✔ CLI updated to cli-3.0.1
113+
✔ CLI updated to cli-3.1.0
114114
```
115115

116116
---
@@ -132,13 +132,22 @@ $ devtrail update-framework
132132

133133
### `devtrail update-cli`
134134

135-
Auto-update the `devtrail` binary itself. Looks for the latest `cli-*` release on GitHub and replaces the current binary.
135+
Auto-update the `devtrail` binary itself. Automatically detects the installation method and uses the appropriate update mechanism:
136+
137+
- **Prebuilt binary** (installed via `install.sh` / `install.ps1`): Downloads the latest binary from GitHub Releases
138+
- **Cargo** (installed via `cargo install`): Runs `cargo install --force devtrail-cli`
139+
140+
Use `--method` to override auto-detection: `--method=github` or `--method=cargo`.
136141

137142
**Example:**
138143

139144
```bash
140145
$ devtrail update-cli
141-
✔ CLI updated to cli-3.0.1
146+
✔ CLI updated to cli-3.1.0
147+
148+
$ devtrail update-cli --method=cargo
149+
Compiling from source, this may take a few minutes...
150+
✔ CLI updated to cli-3.1.0
142151
```
143152

144153
---
@@ -201,7 +210,7 @@ $ devtrail status
201210
┌───────────┬──────────────────────────┐
202211
│ Path │ /home/user/my-project │
203212
│ Framework │ fw-4.1.1 │
204-
│ CLI │ cli-3.0.1
213+
│ CLI │ cli-3.1.0
205214
│ Language │ en │
206215
└───────────┴──────────────────────────┘
207216
@@ -625,7 +634,7 @@ Show version, authorship, and license information.
625634
```bash
626635
$ devtrail about
627636
DevTrail CLI
628-
CLI version: cli-3.0.1
637+
CLI version: cli-3.1.0
629638
Framework version: fw-4.1.1
630639
Author: Strange Days Tech, S.A.S.
631640
License: MIT

docs/i18n/es/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ DevTrail usa tags de versión independientes para cada componente:
150150
| Componente | Prefijo de tag | Ejemplo | Incluye |
151151
|------------|---------------|---------|---------|
152152
| Framework | `fw-` | `fw-4.1.1` | Plantillas (12 tipos), gobernanza, directivas |
153-
| CLI | `cli-` | `cli-3.0.1` | El binario `devtrail` |
153+
| CLI | `cli-` | `cli-3.1.0` | El binario `devtrail` |
154154

155155
Verifica las versiones instaladas con `devtrail status` o `devtrail about`.
156156

docs/i18n/es/adopters/CLI-REFERENCE.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DevTrail usa **tags de versión independientes** para cada componente:
4949
| Componente | Prefijo de tag | Ejemplo | Qué incluye |
5050
|------------|---------------|---------|-------------|
5151
| Framework | `fw-` | `fw-4.1.1` | Plantillas (12 tipos), docs de gobernanza, directivas |
52-
| CLI | `cli-` | `cli-3.0.1` | El binario `devtrail` |
52+
| CLI | `cli-` | `cli-3.1.0` | El binario `devtrail` |
5353

5454
Framework y CLI se publican de forma independiente. Una actualización del framework no requiere actualización del CLI, y viceversa.
5555

@@ -109,7 +109,7 @@ $ devtrail update
109109
Updating framework...
110110
✔ Framework updated to fw-4.1.1
111111
Updating CLI...
112-
✔ CLI updated to cli-3.0.1
112+
✔ CLI updated to cli-3.1.0
113113
```
114114

115115
---
@@ -131,13 +131,22 @@ $ devtrail update-framework
131131

132132
### `devtrail update-cli`
133133

134-
Auto-actualiza el binario `devtrail`. Busca el último release `cli-*` en GitHub y reemplaza el binario actual.
134+
Auto-actualiza el binario `devtrail`. Detecta automáticamente el método de instalación y usa el mecanismo de actualización apropiado:
135+
136+
- **Binario precompilado** (instalado via `install.sh` / `install.ps1`): Descarga el último binario de GitHub Releases
137+
- **Cargo** (instalado via `cargo install`): Ejecuta `cargo install --force devtrail-cli`
138+
139+
Usa `--method` para forzar el método: `--method=github` o `--method=cargo`.
135140

136141
**Ejemplo:**
137142

138143
```bash
139144
$ devtrail update-cli
140-
✔ CLI updated to cli-3.0.1
145+
✔ CLI updated to cli-3.1.0
146+
147+
$ devtrail update-cli --method=cargo
148+
Compiling from source, this may take a few minutes...
149+
✔ CLI updated to cli-3.1.0
141150
```
142151

143152
---
@@ -195,7 +204,7 @@ DevTrail Status
195204
───────────────
196205
Path: /home/user/my-project
197206
Framework version: fw-4.1.1
198-
CLI version: cli-3.0.1
207+
CLI version: cli-3.1.0
199208
Language: en
200209
Structure: ✔ Complete
201210

@@ -504,7 +513,7 @@ Muestra información de versión, autoría y licencia.
504513
```bash
505514
$ devtrail about
506515
DevTrail CLI
507-
CLI version: cli-3.0.1
516+
CLI version: cli-3.1.0
508517
Framework version: fw-4.1.1
509518
Author: Strange Days Tech, S.A.S.
510519
License: MIT

0 commit comments

Comments
 (0)