Skip to content

Commit f08f946

Browse files
committed
Added BcaslOnlyMod application and GUI implementation
1 parent 2acccfe commit f08f946

3 files changed

Lines changed: 1814 additions & 0 deletions

File tree

OnlyMod/BcaslOnlyMod/__main__.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright 2026 Ague Samuel Amen
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
"""
17+
BcaslOnlyMod - Point d'entrée principal
18+
19+
Module autonome permettant d'exécuter et configurer les plugins BCASL
20+
indépendamment de l'application principale PyCompiler ARK.
21+
22+
Utilisation:
23+
python -m OnlyMod.BcaslOnlyMod [options]
24+
25+
Options:
26+
-w, --workspace DIR Répertoire du workspace
27+
-l, --language LANG Langue de l'interface (en/fr)
28+
-t, --theme THEME Thème visuel (light/dark)
29+
-g, --gui Lancer l'interface graphique
30+
--list-plugins Lister les plugins disponibles
31+
-r, --run Exécuter les plugins (mode CLI)
32+
--timeout SECONDS Timeout d'exécution des plugins
33+
34+
Exemples:
35+
# Lancer l'interface graphique
36+
python -m OnlyMod.BcaslOnlyMod --gui
37+
38+
# Lancer avec workspace spécifique
39+
python -m OnlyMod.BcaslOnlyMod --gui --workspace /path/to/workspace
40+
41+
# Lister les plugins (mode CLI)
42+
python -m OnlyMod.BcaslOnlyMod --list-plugins
43+
44+
# Exécuter les plugins (mode CLI)
45+
python -m OnlyMod.BcaslOnlyMod --run --workspace /path/to/workspace
46+
"""
47+
48+
from __future__ import annotations
49+
50+
import sys
51+
52+
53+
def main():
54+
"""Point d'entrée principal du module."""
55+
from .app import main as app_main
56+
57+
sys.exit(app_main())
58+
59+
60+
if __name__ == "__main__":
61+
main()
62+

0 commit comments

Comments
 (0)