{"id":28188840,"url":"https://github.com/toro-nicolas/my_cut","last_synced_at":"2025-05-16T09:12:08.641Z","repository":{"id":246067056,"uuid":"779620105","full_name":"toro-nicolas/my_cut","owner":"toro-nicolas","description":"Reproduction of the linux command \"cut\" in C. ","archived":false,"fork":false,"pushed_at":"2024-06-25T14:56:28.000Z","size":490,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-25T17:44:45.708Z","etag":null,"topics":["c","cut","linux-command","stumper"],"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/toro-nicolas.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":"2024-03-30T10:25:47.000Z","updated_at":"2024-06-25T17:44:51.013Z","dependencies_parsed_at":"2024-06-25T17:44:50.527Z","dependency_job_id":"484bf98f-ef3c-4e71-a3b0-3f4c2a1f312e","html_url":"https://github.com/toro-nicolas/my_cut","commit_stats":null,"previous_names":["toro-nicolas/my_cut"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toro-nicolas%2Fmy_cut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toro-nicolas%2Fmy_cut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toro-nicolas%2Fmy_cut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toro-nicolas%2Fmy_cut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toro-nicolas","download_url":"https://codeload.github.com/toro-nicolas/my_cut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501542,"owners_count":22081532,"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":["c","cut","linux-command","stumper"],"created_at":"2025-05-16T09:12:06.900Z","updated_at":"2025-05-16T09:12:08.630Z","avatar_url":"https://github.com/toro-nicolas.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# my_cut ✂️\n\n## Table of contents 📑\n- [Description](https://github.com/toro-nicolas/my_cut/blob/main/README.md#description-)\n- [Usage](https://github.com/toro-nicolas/my_cut/blob/main/README.md#usage-%EF%B8%8F)\n- [Result](https://github.com/toro-nicolas/my_cut/blob/main/README.md#result-)\n- [Compilation](https://github.com/toro-nicolas/my_cut/blob/main/README.md#compilation-%EF%B8%8F)\n- [Code mandatory](https://github.com/toro-nicolas/my_cut/blob/main/README.md#code-mandatory-)\n- [What's next ?](https://github.com/toro-nicolas/my_cut/blob/main/README.md#whats-next--)\n- [Contributors](https://github.com/toro-nicolas/my_cut/blob/main/README.md#contributors-)\n\n\n## Description 📝\nThe **my_cut** is a **personal project** I did on my own during a study break.  \nIts purpose is to create in [**C**](https://en.wikipedia.org/wiki/C_(programming_language)) a **reproduction of the cut command**.  \nThe cut command allows you to **display only certain parts** of what you **give it as input**.  \nThis project applies to the **EPITECH Duo Stumper** (the stumper version can be found in the **bonus folder**).  \nThe following **flags** are **supported**:  \n- **-f / --field**: select only these fields\n- **-c / --characters**: select only these characters\n- **-d / --delimiter**: use DELIM instead of TAB for field delimiter\n\n\n## Usage ⚔️\nYou can run the my_cut like this :\n```sh\ncat file | ./my_cut [OPTIONS]\n```\n\n\n## Result 🚩\nThe result of this project is a **a simple recreation** of the **cut command**, with **fewer features** than the **real thing** for the moment.  \nIf you discover a **problem** or an **error**, don't hesitate to **create an issue** and **report it** to us as soon as possible.\n\n\n### Tests and code coverage\n**Unit tests** were performed using [criterion](https://criterion.readthedocs.io/en/master/intro.html).  \nIn this project, **only** the **library code is covered**.\nUnit tests are still to be performed, but a large part of the code is already covered.\n\nYou can compile the project and run the unit tests with this command :\n```sh\nmake tests_run\n```\n\n\n## Compilation 🛠️\nYou can compile the project with this command :\n```sh\nmake\n```\n\nIf you want clean the project, you can run this command :\n```sh\nmake fclean\n```\n\nYou can clean and compile the project with ```make re```.\n\nYou can compile the unit tests with this command :\n```sh\nmake unit_tests\n```\n\n\n## Code mandatory 📦\n- You'll need to create a branch where you'll push your code. Once you've completed your tasks on this branch, we'll work together to merge it and check that everything works.\n- Every function you add must be code-style.\n- Before merging, you'll need to check that all unit tests pass by running ```make tests_run```.\n- Each commit will contain ```[+]``` or ```[-]``` or ```[~]``` followed by a message\n    - ```[+]``` : Add feature\n    - ```[-]``` : Delete feature\n    - ```[~]``` : Edit feature\n\n**Of course, in exceptional cases, we may depart from these rules.**\n\n\n## What's next ? 🚀\n- Add help section\n- Add and handle more flags\n- Improve github actions\n- Improve the memory management\n- Add a documentation for each function\n- Add unit tests on each piece of code\n\n\n## Contributors 👤\nThis project was carried out alone by [**Nicolas TORO**](https://github.com/toro-nicolas).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoro-nicolas%2Fmy_cut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoro-nicolas%2Fmy_cut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoro-nicolas%2Fmy_cut/lists"}