-
Notifications
You must be signed in to change notification settings - Fork 78
[DONE] Add "help" command to makefile #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok pour moi, je suppose que tu as testé la commande ;)
# Affiche la liste des commandes disponibles | ||
help: | ||
echo "Syntax: [make target] where target is in this list:" | ||
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est beau ! ca faisait longtemps que j'avais pas vu une commande shell de cette taille !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha ha elle n'est pas de moi ;) je l'ai vue dans un autre projet et du coup je me suis dit que ce serait bien de la reprendre ;)
Voici le résultat qu'elle affiche :
Esup-Pod-dev3 % make help
echo "Syntax: [make target] where target is in this list:"
Syntax: [make target] where target is in this list:
help Affiche la liste des commandes disponibles
start Démarre le serveur de test
starts Démarre le serveur de test en https auto-signé
install Première installation de pod (BDD SQLite intégrée)
upgrade Mise à jour de Pod
createDB Création des données initiales dans la BDD SQLite intégrée
lang Mise à jour des fichiers de langue
updatedb Look for changes to apply in DB
migrate Apply all changes in DB
tests Launch all unit tests.
pystyle Ensure coherence of all code style
statics Collects all static files inside all apps and put a copy inside the static directory declared in settings.py
createconfigs Generate configuration docs in .MD format
docker-logs Display app logs (follow mode)
echo-env Display environment variables for docker
docker-build Démarre le serveur de test en recompilant les conteneurs de la stack
docker-start Démarre le serveur de test
docker-stop Arrête le serveur de test
docker-reset Arrête le serveur de test et supprime les fichiers générés
* 🐛 podfile fix pagination display (#787) * improve clean_video_files and code cleaning (#782) * Fix wrong url of paginated sub-themes (#789) * Add "help" command to makefile (#792) * Ptitloup/fix thumbnail (#790) * Hide channel desc (#794) * fix podfile (#798) * Correct podfile sidebar (#799) * Ptitloup/fix link playlist (#801) * Fix video theme (#800) --------- Co-authored-by: MattBild <34771705+mattbild@users.noreply.github.com> Co-authored-by: Olivier Bado-Faustin <bado@unice.fr> Co-authored-by: pampletousse <51699553+pampletousse@users.noreply.github.com>
* 🐛 podfile fix pagination display (EsupPortail#787) * improve clean_video_files and code cleaning (EsupPortail#782) * Fix wrong url of paginated sub-themes (EsupPortail#789) * Add "help" command to makefile (EsupPortail#792) * Ptitloup/fix thumbnail (EsupPortail#790) * Hide channel desc (EsupPortail#794) * fix podfile (EsupPortail#798) * Correct podfile sidebar (EsupPortail#799) * Ptitloup/fix link playlist (EsupPortail#801) * Fix video theme (EsupPortail#800) --------- Co-authored-by: MattBild <34771705+mattbild@users.noreply.github.com> Co-authored-by: Olivier Bado-Faustin <bado@unice.fr> Co-authored-by: pampletousse <51699553+pampletousse@users.noreply.github.com>
Il est maintenant possible en tapant
make help
de lister automatiquement toutes les options possibles de la commande "make" de Pod.