mirror of
https://github.com/ae-utbm/sith3.git
synced 2024-09-08 12:08:09 +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 .
|