debug: special command can turn debug mode on and off

Using the .debug command, debug mode can be toggled. It starts turned off.

When it is on, each command, before being executed, is debug-printed using the
tree-printing facilities.
This commit is contained in:
Khaïs COLIN 2025-04-09 13:45:56 +02:00
parent 18014cda98
commit ac411d36cc
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
4 changed files with 40 additions and 18 deletions

View file

@ -6,13 +6,15 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/19 18:02:19 by khais #+# #+# */
/* Updated: 2025/02/19 18:03:06 by khais ### ########.fr */
/* Updated: 2025/04/09 13:51:41 by khais ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_COMMAND_H
# define GET_COMMAND_H
char *get_command(void);
# include "minishell.h"
char *get_command(t_minishell *app);
#endif