@atlashub/smartstack-cli 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/gitflow/10-start.md +14 -2
package/package.json
CHANGED
|
@@ -12,6 +12,14 @@ Tu es expert GitFlow. Cree une branche dans un **worktree separe** (par defaut).
|
|
|
12
12
|
|
|
13
13
|
**Argument:** `$ARGUMENTS` = `{type} {name} [--no-worktree]`
|
|
14
14
|
|
|
15
|
+
**FLUX D'EXECUTION:**
|
|
16
|
+
```
|
|
17
|
+
AVEC arguments: ETAPE 1 → ETAPE 5 → ETAPE 6 → ETAPE 7 → ETAPE 8
|
|
18
|
+
SANS arguments: ETAPE 1 → ETAPE 2 → ETAPE 3 → ETAPE 4 → ETAPE 5 → ETAPE 6 → ETAPE 7 → ETAPE 8
|
|
19
|
+
↑
|
|
20
|
+
TOUJOURS OBLIGATOIRE
|
|
21
|
+
```
|
|
22
|
+
|
|
15
23
|
---
|
|
16
24
|
|
|
17
25
|
## ETAPE 1: Analyser le contexte
|
|
@@ -77,14 +85,16 @@ EF CORE (si projet .NET)
|
|
|
77
85
|
|
|
78
86
|
## ETAPE 3: Questions dynamiques selon contexte
|
|
79
87
|
|
|
80
|
-
### Si `$ARGUMENTS` fourni → Parser et
|
|
88
|
+
### Si `$ARGUMENTS` fourni → Parser et aller aux verifications
|
|
81
89
|
|
|
82
90
|
```
|
|
83
91
|
$ARGUMENTS = "feature add-user-auth"
|
|
84
92
|
→ TYPE = "feature", NAME = "add-user-auth"
|
|
85
|
-
→ Sauter les questions,
|
|
93
|
+
→ Sauter les questions (ETAPES 3-4), aller directement a ETAPE 5 (verifications)
|
|
86
94
|
```
|
|
87
95
|
|
|
96
|
+
**IMPORTANT:** Meme avec des arguments, tu DOIS executer l'ETAPE 5 (verifications) avant de creer la branche.
|
|
97
|
+
|
|
88
98
|
### Si PAS d'arguments → Questionnaire dynamique
|
|
89
99
|
|
|
90
100
|
**Construire les options selon le contexte:**
|
|
@@ -404,6 +414,8 @@ echo "Branche: $BRANCH_NAME"
|
|
|
404
414
|
|
|
405
415
|
## ETAPE 5: Verifications pre-creation
|
|
406
416
|
|
|
417
|
+
> **OBLIGATOIRE:** Cette etape doit TOUJOURS etre executee, meme quand des arguments sont fournis via `$ARGUMENTS`. Ne JAMAIS sauter cette etape.
|
|
418
|
+
|
|
407
419
|
| Check | Commande | Action si echec |
|
|
408
420
|
|-------|----------|-----------------|
|
|
409
421
|
| Working tree clean | `git status --porcelain` | Proposer stash ou commit |
|