-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstruct.sh
More file actions
108 lines (104 loc) · 6.98 KB
/
struct.sh
File metadata and controls
108 lines (104 loc) · 6.98 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash
# Créer les répertoires principaux (sûr avec -p)
mkdir -p src/core src/languages src/interfaces src/interfaces/plugins/vscode src/interfaces/plugins/pycharm src/config tests/unit tests/integration tests/benchmarks tests/data/french tests/data/spanish tests/data/malformed examples/french examples/spanish examples/other scripts docs .github/workflows .github/ISSUE_TEMPLATE config tools requirements .github
# Créer les fichiers __init__.py uniquement s'ils n'existent pas
[ ! -f src/__init__.py ] && touch src/__init__.py
[ ! -f src/core/__init__.py ] && touch src/core/__init__.py
[ ! -f src/languages/__init__.py ] && touch src/languages/__init__.py
[ ! -f src/interfaces/__init__.py ] && touch src/interfaces/__init__.py
[ ! -f src/interfaces/plugins/__init__.py ] && touch src/interfaces/plugins/__init__.py
[ ! -f src/interfaces/plugins/vscode/__init__.py ] && touch src/interfaces/plugins/vscode/__init__.py
[ ! -f src/interfaces/plugins/pycharm/__init__.py ] && touch src/interfaces/plugins/pycharm/__init__.py
[ ! -f src/config/__init__.py ] && touch src/config/__init__.py
[ ! -f tests/__init__.py ] && touch tests/__init__.py
[ ! -f tests/unit/__init__.py ] && touch tests/unit/__init__.py
[ ! -f tests/integration/__init__.py ] && touch tests/integration/__init__.py
[ ! -f tests/benchmarks/__init__.py ] && touch tests/benchmarks/__init__.py
[ ! -f tests/data/__init__.py ] && touch tests/data/__init__.py
[ ! -f examples/__init__.py ] && touch examples/__init__.py
[ ! -f examples/french/__init__.py ] && touch examples/french/__init__.py
[ ! -f examples/spanish/__init__.py ] && touch examples/spanish/__init__.py
[ ! -f examples/other/__init__.py ] && touch examples/other/__init__.py
[ ! -f scripts/__init__.py ] && touch scripts/__init__.py
[ ! -f docs/__init__.py ] && touch docs/__init__.py
[ ! -f .github/__init__.py ] && touch .github/__init__.py # Optionnel
# Créer les autres fichiers uniquement s'ils n'existent pas
[ ! -f src/core/transpiler.py ] && touch src/core/transpiler.py
[ ! -f src/core/parser.py ] && touch src/core/parser.py
[ ! -f src/core/validator.py ] && touch src/core/validator.py
[ ! -f src/core/cache.py ] && touch src/core/cache.py
[ ! -f src/core/errors.py ] && touch src/core/errors.py
[ ! -f src/core/utils.py ] && touch src/core/utils.py
[ ! -f src/languages/fr.json ] && touch src/languages/fr.json
[ ! -f src/languages/es.json ] && touch src/languages/es.json
[ ! -f src/languages/template.json ] && touch src/languages/template.json
[ ! -f src/languages/schema.json ] && touch src/languages/schema.json
[ ! -f src/languages/validate_lang.py ] && touch src/languages/validate_lang.py
[ ! -f src/interfaces/cli.py ] && touch src/interfaces/cli.py
[ ! -f src/interfaces/api.py ] && touch src/interfaces/api.py
[ ! -f src/config/settings.py ] && touch src/config/settings.py
[ ! -f src/config/logging.py ] && touch src/config/logging.py
[ ! -f src/__main__.py ] && touch src/__main__.py
[ ! -f tests/unit/test_transpiler.py ] && touch tests/unit/test_transpiler.py
[ ! -f tests/unit/test_parser.py ] && touch tests/unit/test_parser.py
[ ! -f tests/unit/test_validator.py ] && touch tests/unit/test_validator.py
[ ! -f tests/unit/test_cache.py ] && touch tests/unit/test_cache.py
[ ! -f tests/unit/test_utils.py ] && touch tests/unit/test_utils.py
[ ! -f tests/integration/test_french.py ] && touch tests/integration/test_french.py
[ ! -f tests/integration/test_spanish.py ] && touch tests/integration/test_spanish.py
[ ! -f tests/integration/test_multilang.py ] && touch tests/integration/test_multilang.py
[ ! -f tests/benchmarks/benchmark_transpiler.py ] && touch tests/benchmarks/benchmark_transpiler.py
[ ! -f tests/benchmarks/benchmark_parser.py ] && touch tests/benchmarks/benchmark_parser.py
[ ! -f tests/data/french/valid.py ] && touch tests/data/french/valid.py
[ ! -f tests/data/french/invalid.py ] && touch tests/data/french/invalid.py
[ ! -f tests/data/spanish/valid.py ] && touch tests/data/spanish/valid.py
[ ! -f tests/data/malformed/syntax_error.py ] && touch tests/data/malformed/syntax_error.py
[ ! -f examples/french/hello_world.py ] && touch examples/french/hello_world.py
[ ! -f examples/french/calculator.py ] && touch examples/french/calculator.py
[ ! -f examples/french/data_processing.py ] && touch examples/french/data_processing.py
[ ! -f examples/spanish/hello_world.py ] && touch examples/spanish/hello_world.py
[ ! -f examples/other/placeholder.md ] && touch examples/other/placeholder.md
[ ! -f scripts/add_language.py ] && touch scripts/add_language.py
[ ! -f scripts/validate_all.py ] && touch scripts/validate_all.py
[ ! -f scripts/generate_docs.py ] && touch scripts/generate_docs.py
[ ! -f scripts/setup_dev.py ] && touch scripts/setup_dev.py
[ ! -f scripts/watch.py ] && touch scripts/watch.py
[ ! -f docs/README.md ] && touch docs/README.md
[ ! -f docs/USER_GUIDE.md ] && touch docs/USER_GUIDE.md
[ ! -f docs/CONTRIBUTING.md ] && touch docs/CONTRIBUTING.md
[ ! -f docs/ARCHITECTURE.md ] && touch docs/ARCHITECTURE.md
[ ! -f docs/API.md ] && touch docs/API.md
[ ! -f docs/CHANGELOG.md ] && touch docs/CHANGELOG.md
[ ! -f docs/FAQ.md ] && touch docs/FAQ.md
[ ! -f docs/RELEASE.md ] && touch docs/RELEASE.md
[ ! -f .github/workflows/test.yml ] && touch .github/workflows/test.yml
[ ! -f .github/workflows/lint.yml ] && touch .github/workflows/lint.yml
[ ! -f .github/workflows/benchmark.yml ] && touch .github/workflows/benchmark.yml
[ ! -f .github/workflows/docs.yml ] && touch .github/workflows/docs.yml
[ ! -f .github/workflows/release.yml ] && touch .github/workflows/release.yml
[ ! -f .github/ISSUE_TEMPLATE/bug_report.md ] && touch .github/ISSUE_TEMPLATE/bug_report.md
[ ! -f .github/ISSUE_TEMPLATE/feature_request.md ] && touch .github/ISSUE_TEMPLATE/feature_request.md
[ ! -f .github/ISSUE_TEMPLATE/language_request.md ] && touch .github/ISSUE_TEMPLATE/language_request.md
[ ! -f .github/PULL_REQUEST_TEMPLATE.md ] && touch .github/PULL_REQUEST_TEMPLATE.md
[ ! -f .github/dependabot.yml ] && touch .github/dependabot.yml
[ ! -f config/flake8.ini ] && touch config/flake8.ini
[ ! -f config/pytest.ini ] && touch config/pytest.ini
[ ! -f config/logging.yaml ] && touch config/logging.yaml
[ ! -f tools/release.sh ] && touch tools/release.sh
[ ! -f tools/lint.sh ] && touch tools/lint.sh
[ ! -f tools/format.sh ] && touch tools/format.sh
[ ! -f requirements/dev.txt ] && touch requirements/dev.txt
[ ! -f requirements/test.txt ] && touch requirements/test.txt
[ ! -f requirements/docs.txt ] && touch requirements/docs.txt
[ ! -f requirements.txt ] && touch requirements.txt
[ ! -f setup.py ] && touch setup.py
[ ! -f pyproject.toml ] && touch pyproject.toml
[ ! -f MANIFEST.in ] && touch MANIFEST.in
[ ! -f LICENSE ] && touch LICENSE
[ ! -f CODE_OF_CONDUCT.md ] && touch CODE_OF_CONDUCT.md
[ ! -f SECURITY.md ] && touch SECURITY.md
[ ! -f .gitignore ] && touch .gitignore
[ ! -f .editorconfig ] && touch .editorconfig
[ ! -f multilang-python ] && touch multilang-python
[ ! -f Dockerfile ] && touch Dockerfile
echo "Structure created successfully without overwriting existing files. Please add content and install with 'pip install -e .'."