mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
18 lines
468 B
ReStructuredText
18 lines
468 B
ReStructuredText
Commandes utiles
|
|
================
|
|
|
|
Appliquer le header de licence sur tout le projet
|
|
-------------------------------------------------
|
|
|
|
.. code-block:: bash
|
|
|
|
for f in $(find . -name "*.py" ! -path "*migration*" ! -path "./env/*" ! -path "./doc/*"); do cat ./doc/header "$f" > /tmp/temp && mv /tmp/temp "$f"; done
|
|
|
|
Compter le nombre de lignes de code
|
|
-----------------------------------
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt install cloc
|
|
cloc --exclude-dir=doc,env .
|