-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit_all.ps1
More file actions
94 lines (87 loc) · 2.87 KB
/
commit_all.ps1
File metadata and controls
94 lines (87 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/env pwsh
# Script pour faire les commits de manière organisée
# Usage: .\commit_all.ps1
Write-Host ""
Write-Host "===================================" -ForegroundColor Cyan
Write-Host "Phototheque Intelligente - Git Setup" -ForegroundColor Cyan
Write-Host "===================================" -ForegroundColor Cyan
Write-Host ""
$commits = @(
@{
step = 1
desc = "Configuration et dependencies"
files = @("config/settings.py", ".env", "requirements.txt", ".gitignore")
msg = "Initial: Configuration et dependencies"
},
@{
step = 2
desc = "Module d'ingestion"
files = @("scripts/ingest.py")
msg = "Feature: Ingestion images et detection doublons"
},
@{
step = 3
desc = "Module métadonnées"
files = @("scripts/extract_metadata.py")
msg = "Feature: Extraction metadonnees et EXIF"
},
@{
step = 4
desc = "Module OCR"
files = @("scripts/ocr.py")
msg = "Feature: OCR et reconnaissance texte"
},
@{
step = 5
desc = "Module tagging"
files = @("scripts/tag_clip.py")
msg = "Feature: Tagging automatique avec CLIP"
},
@{
step = 6
desc = "Embeddings et recherche"
files = @("scripts/embeddings.py", "scripts/search.py")
msg = "Feature: Embeddings et moteur de recherche"
},
@{
step = 7
desc = "Interface utilisateur"
files = @("ui/")
msg = "Feature: Interface Streamlit"
},
@{
step = 8
desc = "Pipeline principal"
files = @("main.py", "scripts/__init__.py", "ui/__init__.py")
msg = "Core: Pipeline orchestrateur principal"
},
@{
step = 9
desc = "Documentation et outils"
files = @("README.md", "GUIDE_UTILISATION.md", "INSTALLATION.md", "tools/")
msg = "Docs: Documentation et outils"
}
)
foreach ($commit in $commits) {
Write-Host "[{0}/9] {1}..." -f $commit.step, $commit.desc -ForegroundColor Yellow
# Ajouter les fichiers
foreach ($file in $commit.files) {
git add $file
}
# Créer le commit
git commit -m $commit.msg
Write-Host "✓ Commit: $($commit.msg)" -ForegroundColor Green
Write-Host ""
}
Write-Host "===================================" -ForegroundColor Cyan
Write-Host "Commits crees avec succes!" -ForegroundColor Green
Write-Host "===================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Etapes suivantes:" -ForegroundColor Yellow
Write-Host "1. Creer un repo sur GitHub: ilyasFardaouix/phototheque_intelligente"
Write-Host "2. Executer: git remote add origin https://github.com/ilyasFardaouix/phototheque_intelligente.git"
Write-Host "3. Executer: git push -u origin main"
Write-Host ""
Write-Host "Historique des commits:" -ForegroundColor Cyan
git log --oneline
Write-Host ""