@atlashub/smartstack-cli 1.7.0 → 1.9.0
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/.documentation/init.html +9 -65
- package/README.md +556 -78
- package/dist/index.js +29 -134
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/agents/gitflow/status.md +98 -11
- package/templates/commands/efcore/conflicts.md +98 -32
- package/templates/commands/efcore/db-deploy.md +107 -10
- package/templates/commands/efcore/db-reset.md +69 -14
- package/templates/commands/efcore/db-seed.md +67 -11
- package/templates/commands/efcore/db-status.md +57 -20
- package/templates/commands/efcore/migration.md +84 -23
- package/templates/commands/efcore/rebase-snapshot.md +81 -23
- package/templates/commands/efcore/scan.md +94 -29
- package/templates/commands/efcore/squash.md +97 -41
- package/templates/commands/gitflow/1-init.md +216 -5
- package/templates/commands/gitflow/10-start.md +194 -24
- package/templates/commands/gitflow/11-finish.md +141 -59
- package/templates/commands/gitflow/2-status.md +238 -58
- package/templates/commands/gitflow/3-commit.md +93 -0
- package/templates/commands/gitflow/7-pull-request.md +133 -16
|
@@ -334,6 +334,99 @@ git push origin $(git branch --show-current)
|
|
|
334
334
|
| Conflict detected | Rebase first |
|
|
335
335
|
| **Destructive operation** | Confirm or modify migration |
|
|
336
336
|
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
## Resume
|
|
340
|
+
|
|
341
|
+
**Afficher un resume apres le commit:**
|
|
342
|
+
|
|
343
|
+
```
|
|
344
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
345
|
+
COMMIT CRÉÉ
|
|
346
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
347
|
+
|
|
348
|
+
COMMIT DETAILS
|
|
349
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
350
|
+
• Branche: {branch_name}
|
|
351
|
+
• Hash: {commit_hash_short}
|
|
352
|
+
• Message: {commit_message}
|
|
353
|
+
• Fichiers: {N} fichiers modifiés
|
|
354
|
+
|
|
355
|
+
FICHIERS INCLUS
|
|
356
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
357
|
+
{type_icon} {file_1}
|
|
358
|
+
{type_icon} {file_2}
|
|
359
|
+
{type_icon} {file_3}
|
|
360
|
+
... ({N} fichiers au total)
|
|
361
|
+
|
|
362
|
+
WORKFLOW STATUT
|
|
363
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
364
|
+
✓ Fichiers stagés
|
|
365
|
+
✓ Validations EF Core passées (si applicable)
|
|
366
|
+
✓ Commit créé localement
|
|
367
|
+
✓ Push vers origin/{branch} (si auto-push activé)
|
|
368
|
+
|
|
369
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
370
|
+
PROCHAINES ÉTAPES
|
|
371
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
372
|
+
|
|
373
|
+
1. Continuer à développer et committer:
|
|
374
|
+
/gitflow:3-commit
|
|
375
|
+
|
|
376
|
+
2. Quand prêt, créer une Pull Request:
|
|
377
|
+
/gitflow:7-pull-request {branch_name}
|
|
378
|
+
|
|
379
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**Si des migrations EF Core sont incluses:**
|
|
383
|
+
|
|
384
|
+
```
|
|
385
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
386
|
+
COMMIT AVEC MIGRATIONS
|
|
387
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
388
|
+
|
|
389
|
+
COMMIT DETAILS
|
|
390
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
391
|
+
• Branche: {branch_name}
|
|
392
|
+
• Hash: {commit_hash_short}
|
|
393
|
+
• Message: {commit_message}
|
|
394
|
+
• Fichiers: {N} fichiers modifiés
|
|
395
|
+
|
|
396
|
+
MIGRATIONS EF CORE INCLUSES
|
|
397
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
398
|
+
✓ {timestamp}_{MigrationName}.cs
|
|
399
|
+
✓ {timestamp}_{MigrationName}.Designer.cs
|
|
400
|
+
✓ {Context}ModelSnapshot.cs (updated)
|
|
401
|
+
|
|
402
|
+
VALIDATIONS
|
|
403
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
404
|
+
✓ Les 3 fichiers de migration sont présents
|
|
405
|
+
✓ Build vérifié
|
|
406
|
+
✓ Pas d'opérations destructives détectées
|
|
407
|
+
|
|
408
|
+
WORKFLOW STATUT
|
|
409
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
410
|
+
✓ Fichiers stagés
|
|
411
|
+
✓ Validations EF Core passées
|
|
412
|
+
✓ Commit créé localement
|
|
413
|
+
✓ Push vers origin/{branch}
|
|
414
|
+
|
|
415
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
416
|
+
PROCHAINES ÉTAPES
|
|
417
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
418
|
+
|
|
419
|
+
1. Appliquer la migration en local:
|
|
420
|
+
/efcore:db-deploy
|
|
421
|
+
|
|
422
|
+
2. Continuer à développer ou créer une PR:
|
|
423
|
+
/gitflow:7-pull-request {branch_name}
|
|
424
|
+
|
|
425
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
337
430
|
## Modes
|
|
338
431
|
|
|
339
432
|
| Command | Action |
|
|
@@ -392,23 +392,140 @@ fi
|
|
|
392
392
|
|
|
393
393
|
## Resume
|
|
394
394
|
|
|
395
|
+
**Afficher un resume adapte au TYPE de branche et au PROVIDER:**
|
|
396
|
+
|
|
397
|
+
### Si FEATURE:
|
|
398
|
+
|
|
399
|
+
```
|
|
400
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
401
|
+
PULL REQUEST CRÉÉE
|
|
402
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
403
|
+
|
|
404
|
+
PR DETAILS
|
|
405
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
406
|
+
• PR: #{number} - Statut: ACTIVE
|
|
407
|
+
• Branche: feature/{name} → develop
|
|
408
|
+
• Build: ✓ Passes (TypeScript types verified)
|
|
409
|
+
• Commits: {N} commits ({description})
|
|
410
|
+
|
|
411
|
+
URL DIRECT:
|
|
412
|
+
{url}
|
|
413
|
+
|
|
414
|
+
WORKFLOW STATUT
|
|
415
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
416
|
+
✓ Branche synchronisée avec develop
|
|
417
|
+
✓ Build vérifié
|
|
418
|
+
✓ Tests passés
|
|
419
|
+
✓ PR créée sur {GitHub|Azure DevOps}
|
|
420
|
+
✓ Branche poussée à origin
|
|
421
|
+
|
|
422
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
423
|
+
PROCHAINES ÉTAPES
|
|
424
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
425
|
+
|
|
426
|
+
1. Attendre la review et l'approbation de la PR
|
|
427
|
+
|
|
428
|
+
2. Merger la PR:
|
|
429
|
+
/gitflow:9-merge {pr_number}
|
|
430
|
+
|
|
431
|
+
3. Finaliser et nettoyer:
|
|
432
|
+
/gitflow:11-finish feature/{name}
|
|
433
|
+
Cela va:
|
|
434
|
+
✓ Supprimer la branche feature/{name}
|
|
435
|
+
✓ Nettoyer le worktree
|
|
436
|
+
|
|
437
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Si RELEASE:
|
|
441
|
+
|
|
442
|
+
```
|
|
443
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
444
|
+
PULL REQUEST CRÉÉE
|
|
445
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
446
|
+
|
|
447
|
+
PR DETAILS
|
|
448
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
449
|
+
• PR: #{number} - Statut: ACTIVE
|
|
450
|
+
• Branche: release/v{version} → main
|
|
451
|
+
• Build: ✓ Passes (TypeScript types verified)
|
|
452
|
+
• Commits: {N} commits (version bump + changes)
|
|
453
|
+
|
|
454
|
+
URL DIRECT:
|
|
455
|
+
{url}
|
|
456
|
+
|
|
457
|
+
WORKFLOW STATUT
|
|
458
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
459
|
+
✓ Branche synchronisée avec main
|
|
460
|
+
✓ Build vérifié
|
|
461
|
+
✓ Tests passés
|
|
462
|
+
✓ PR créée sur {GitHub|Azure DevOps}
|
|
463
|
+
✓ Branche poussée à origin
|
|
464
|
+
|
|
465
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
466
|
+
PROCHAINES ÉTAPES
|
|
467
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
468
|
+
|
|
469
|
+
1. Attendre la review et l'approbation de la PR
|
|
470
|
+
|
|
471
|
+
2. Merger la PR:
|
|
472
|
+
/gitflow:9-merge {pr_number}
|
|
473
|
+
|
|
474
|
+
3. Finaliser la release:
|
|
475
|
+
/gitflow:11-finish release/v{version}
|
|
476
|
+
Cela va:
|
|
477
|
+
✓ Créer le tag v{version}
|
|
478
|
+
✓ Merger main → develop (merge back)
|
|
479
|
+
✓ Incrémenter la version sur develop ({version} → {next_minor})
|
|
480
|
+
✓ Nettoyer le worktree
|
|
481
|
+
|
|
482
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Si HOTFIX:
|
|
486
|
+
|
|
395
487
|
```
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
Build:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
488
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
489
|
+
PULL REQUEST CRÉÉE
|
|
490
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
491
|
+
|
|
492
|
+
PR DETAILS
|
|
493
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
494
|
+
• PR: #{number} - Statut: ACTIVE
|
|
495
|
+
• Branche: hotfix/{name} → main
|
|
496
|
+
• Build: ✓ Passes (TypeScript types verified)
|
|
497
|
+
• Commits: {N} commits (bug fixes)
|
|
498
|
+
|
|
499
|
+
URL DIRECT:
|
|
500
|
+
{url}
|
|
501
|
+
|
|
502
|
+
WORKFLOW STATUT
|
|
503
|
+
───────────────────────────────────────────────────────────────────────────────
|
|
504
|
+
✓ Branche synchronisée avec main
|
|
505
|
+
✓ Build vérifié
|
|
506
|
+
✓ Tests passés
|
|
507
|
+
✓ PR créée sur {GitHub|Azure DevOps}
|
|
508
|
+
✓ Branche poussée à origin
|
|
509
|
+
|
|
510
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
511
|
+
PROCHAINES ÉTAPES
|
|
512
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
513
|
+
|
|
514
|
+
1. Attendre la review et l'approbation de la PR
|
|
515
|
+
⚠️ HOTFIX: Priorité élevée - review urgente recommandée
|
|
516
|
+
|
|
517
|
+
2. Merger la PR:
|
|
518
|
+
/gitflow:9-merge {pr_number}
|
|
519
|
+
|
|
520
|
+
3. Finaliser le hotfix:
|
|
521
|
+
/gitflow:11-finish hotfix/{name}
|
|
522
|
+
Cela va:
|
|
523
|
+
✓ Incrémenter la version PATCH ({current} → {current+patch})
|
|
524
|
+
✓ Créer le tag v{new_version}
|
|
525
|
+
✓ Merger main → develop (merge back)
|
|
526
|
+
✓ Nettoyer le worktree
|
|
527
|
+
|
|
528
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
412
529
|
```
|
|
413
530
|
|
|
414
531
|
---
|