{"id":19418062,"url":"https://github.com/florian-a/minishell","last_synced_at":"2025-02-25T03:41:38.389Z","repository":{"id":169585924,"uuid":"558353627","full_name":"Florian-A/Minishell","owner":"Florian-A","description":"Le projet qui fait blackhole 10% d'une promo","archived":false,"fork":false,"pushed_at":"2024-06-12T22:57:38.000Z","size":2818,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T17:26:47.815Z","etag":null,"topics":["42","42born2code","42cursus","42projects","c","minishell","shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Florian-A.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-27T11:37:01.000Z","updated_at":"2024-06-12T22:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"28ddb1fb-9091-4276-81f4-8460d1d5ca5f","html_url":"https://github.com/Florian-A/Minishell","commit_stats":null,"previous_names":["florian-a/minishell"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florian-A%2FMinishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florian-A%2FMinishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florian-A%2FMinishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florian-A%2FMinishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Florian-A","download_url":"https://codeload.github.com/Florian-A/Minishell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240599184,"owners_count":19826959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","42born2code","42cursus","42projects","c","minishell","shell"],"created_at":"2024-11-10T13:12:36.306Z","updated_at":"2025-02-25T03:41:38.371Z","avatar_url":"https://github.com/Florian-A.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eMinishell\u003c/h1\u003e\n\nSeptième projet de [42](https://42.fr/) et premier projet de groupe.\n\nL'objectif est de recréer un petit shell avec les caractéristiques suivantes :\n\n- Historique des commandes\n- Variables d'environements\n- Redirections et pipes\n- Signaux \u003ckbd\u003ectrl\u003c/kbd\u003e +  \u003ckbd\u003ec\u003c/kbd\u003e, \u003ckbd\u003ectrl\u003c/kbd\u003e +  \u003ckbd\u003ed\u003c/kbd\u003e, \u003ckbd\u003ectrl\u003c/kbd\u003e + \u003ckbd\u003e \\ \u003c/kbd\u003e\n\nAinsi que les builtins suivants :\n\n- `echo` (avec l'option -n)\n- `cd` (uniquement avec le chemin relatif ou absolu)\n- `pwd` (sans aucune option)\n- `export` (sans aucune option)\n- `unset` (sans aucune option)\n- `env` (sans aucune option ou argument)\n- `exit` (sans aucune option)\n\n---\n\n### Compilation :\n\nPour compiler le projet, exécutez la commande suivante :\n\n```\nmake\n```\n\nPour compiler les tests unitaires, exécutez la commande suivante :\n\n```\nmake test\n```\n\n### Utilisation :\n\nPour lancer le programme, `./minishell` `mode debug`\n\nExemple :\n\n```\n./minishell DEBUG=0\n```\n\n##### Debug 1, affichage des nodes :\n\n```txt\n-------- 🚧 DEBUG 🚧 --------\n         🧩 node: 0 \n  builtin: 0 \n  path: /bin/ls \n  args: /bin/ls \n  args: -la \n  fd_in : 0 \n  fd_out : 0 \n  pipe_in : 5 \n  pipe_out : 6 \n  error: 0 \n\n-----------------------------\n```\n\n##### Debug 2, affichage du découpage du parsing :\n\n```txt\n-------- 🚧 DEBUG 🚧 --------\n         🧲 parsing: 6 \n{echo}{pif}{|}{cat}{|}{rev}\n\n-----------------------------\n```\n\n##### Debug 3, affichage de la liste chainées des variables d'environements :\n\n```txt\n-------- 🚧 DEBUG 🚧 --------\n         💈 lst_env: \n--- \n  key : _ \n  value : /usr/bin/env \n  displayable : 1 \n--- \n  key : PWD \n  value : /Users/*****/Projets/42/minishell-private \n  displayable : 1 \n-----------------------------\n```\n\nLes tests unitaires s'executent de la façon suivante :\n\n```\n./utest\n```\n\n### Démonstration :\n\n\u003cimg src=\"./img/video1.gif\" /\u003e\n\n### Intégration continue :\n\n[![norminette](https://github.com/Florian-A/Minishell/actions/workflows/norm.yml/badge.svg)](https://github.com/Florian-A/Minishell/actions/workflows/norm.yml) [![unit test + build](https://github.com/Florian-A/Minishell/actions/workflows/utest+build.yml/badge.svg)](https://github.com/Florian-A/Minishell/actions/workflows/utest+build.yml)\n\n---\n\n### Correction :\n\n| |\n| --- |\n| \u003cimg src=\"./img/note.png\" style=\"zoom: 50%;\" /\u003e |\n\n| | |\n| --- | --- |\n| Correcteur 1 | \u003cimg src=\"./img/correction1.png\" style=\"zoom: 67%;\" /\u003e |\n| Correcteur 2 | \u003cimg src=\"./img/correction2.png\" style=\"zoom:67%;\" /\u003e |\n| Correcteur 3 | \u003cimg src=\"./img/correction3.png\" style=\"zoom:67%;\" /\u003e |\n\n---\n\n### Contributeurs :\n\n| ![Yvan](https://github.com/ycurbill.png?size=75) | ![Kellian](https://github.com/florian-a.png?size=75) |\n|:-----------------------------------------------------------:|:--------------------------------------------------------:|\n| **[Yvan](https://github.com/ycurbill)**          | **[Florian](https://github.com/florian-a)**           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorian-a%2Fminishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorian-a%2Fminishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorian-a%2Fminishell/lists"}