{"id":27203585,"url":"https://github.com/harismuneer/command-line-interpreter-cli","last_synced_at":"2025-04-09T22:42:29.960Z","repository":{"id":108166880,"uuid":"139316417","full_name":"harismuneer/Command-Line-Interpreter-CLI","owner":"harismuneer","description":"🔲 A Command Line Interpreter made in C++ which supports commands like quit, remove, rename, rmdir, echo, out, zip, unzip.","archived":false,"fork":false,"pushed_at":"2025-01-30T18:00:32.000Z","size":46,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:38:53.926Z","etag":null,"topics":["cli","cli-clone","cli-interactive","cli-utility","cmd-clone","command-line","command-line-arguments-parser","command-line-clone","command-line-interpreter","command-line-tool","echo","interpreter-clone","interpreter-cplusplus","operating-system","operating-systems","quit","rename-files","rmdir","unzip","zip-files"],"latest_commit_sha":null,"homepage":"https://github.com/harismuneer","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harismuneer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.cyfylabs.com"]}},"created_at":"2018-07-01T09:34:46.000Z","updated_at":"2025-01-30T18:00:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"863d709b-069c-41af-94d0-1854f7660de6","html_url":"https://github.com/harismuneer/Command-Line-Interpreter-CLI","commit_stats":null,"previous_names":["harismuneer/command-line-interpreter-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harismuneer%2FCommand-Line-Interpreter-CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harismuneer%2FCommand-Line-Interpreter-CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harismuneer%2FCommand-Line-Interpreter-CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harismuneer%2FCommand-Line-Interpreter-CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harismuneer","download_url":"https://codeload.github.com/harismuneer/Command-Line-Interpreter-CLI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248124883,"owners_count":21051757,"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":["cli","cli-clone","cli-interactive","cli-utility","cmd-clone","command-line","command-line-arguments-parser","command-line-clone","command-line-interpreter","command-line-tool","echo","interpreter-clone","interpreter-cplusplus","operating-system","operating-systems","quit","rename-files","rmdir","unzip","zip-files"],"created_at":"2025-04-09T22:42:27.696Z","updated_at":"2025-04-09T22:42:29.941Z","avatar_url":"https://github.com/harismuneer.png","language":"C++","readme":"# 🔲 Command Line Interpreter - CLI\n\n\u003ca href=\"https://github.com/harismuneer\"\u003e\u003cimg alt=\"views\" title=\"Github views\" src=\"https://komarev.com/ghpvc/?username=harismuneer\u0026style=flat-square\" width=\"125\"/\u003e\u003c/a\u003e\n[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](#)\n[![GitHub Forks](https://img.shields.io/github/forks/harismuneer/Command-Line-Interpreter-CLI.svg?style=social\u0026label=Fork\u0026maxAge=2592000)](https://www.github.com/harismuneer/Command-Line-Interpreter-CLI/fork)\n[![GitHub Issues](https://img.shields.io/github/issues/harismuneer/Command-Line-Interpreter-CLI.svg?style=flat\u0026label=Issues\u0026maxAge=2592000)](https://www.github.com/harismuneer/Command-Line-Interpreter-CLI/issues)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\u0026label=Contributions\u0026colorA=red\u0026colorB=black\t)](#)\n\n\nA Command Line Interpreter made in C++ which supports commands like quit, remove, rename, rmdir, echo, out, zip, unzip.\n\n## Problem Statement\n\nMaking our own Command Line Interpreter\nIn this problem you have to develop a small-scale command line interpreter. Your CLI should support the following commands:\n\n1. **quit**: Exit your CLI\n\n2. **remove file_name**:  removes the given file name. (Hint: Use remove C/C++’s built-in function  remove() ).\n\n3. **rename old_name new_name**: rename the given file/folder. (Hint: Use C/C++’s built-in function rename() ).\n\n4. **rmdir directory_name**: remove directory.  Assume that the directory is always empty. You do not have to handle the deletion of a directory that is not empty.\n\n5. **echo “data” optional_file_name**: Whatever data is given in the quotation marks is written to the given file. If the file name is not given, the data in string is simply printed on the screen.\n\n6. **out -l file_name_1 file_name2 file_name_3**: The contents of given files are printed one by one on the screen. When the contents of one file are printed, user is asked to press some key to continue. User must enter at least 1 file name. (If the user has specified -l, then the file contents are printed line by line, and the user is asked to press some key to continue after each line.)\n\n7. **zip destination file_name**: zips the given file/folder. (Hint: Use system() function. system(“tar cvf “+ destination+”  “+ file_name) ).\n\n8. **unzip file_name**: unzips the given  zipped file. Use system() in this case, too.\n\nYou can only use system() in zip/unzip command. You must not use it for any other command.\n\n## How to Run\n\nDownload the Code folder and using Ubuntu Bash or Windows or Linux Terminal, change current working directory to the Code folder.\nThen on the terminal, type\n\n```\n./cli.out\n```\n\n\n\u003chr\u003e\n\n\n## Author\nYou can get in touch with me on my LinkedIn Profile: [![LinkedIn Link](https://img.shields.io/badge/Connect-harismuneer-blue.svg?logo=linkedin\u0026longCache=true\u0026style=social\u0026label=Follow)](https://www.linkedin.com/in/harismuneer)\n\nYou can also follow my GitHub Profile to stay updated about my latest projects: [![GitHub Follow](https://img.shields.io/badge/Connect-harismuneer-blue.svg?logo=Github\u0026longCache=true\u0026style=social\u0026label=Follow)](https://github.com/harismuneer)\n\nIf you liked the repo then kindly support it by giving it a star ⭐ and share in your circles so more people can benefit from the effort.\n\n## Contributions Welcome\n[![GitHub Issues](https://img.shields.io/github/issues/harismuneer/Command-Line-Interpreter-CLI.svg?style=flat\u0026label=Issues\u0026maxAge=2592000)](https://www.github.com/harismuneer/Command-Line-Interpreter-CLI/issues)\n\nIf you find any bugs, have suggestions, or face issues:\n\n- Open an Issue in the Issues Tab to discuss them.\n- Submit a Pull Request to propose fixes or improvements.\n- Review Pull Requests from other contributors to help maintain the project's quality and progress.\n\nThis project thrives on community collaboration! Members are encouraged to take the initiative, support one another, and actively engage in all aspects of the project. Whether it’s debugging, fixing issues, or brainstorming new ideas, your contributions are what keep this project moving forward.\n\nWith modern AI tools like ChatGPT, solving challenges and contributing effectively is easier than ever. Let’s work together to make this project the best it can be! 🚀\n\n## License\n[![MIT](https://img.shields.io/cocoapods/l/AFNetworking.svg?style=style\u0026label=License\u0026maxAge=2592000)](../master/LICENSE)\n\nCopyright (c) 2018-present, harismuneer                                                        \n\n\u003c!-- PROFILE_INTRO_START --\u003e\n\n\u003chr\u003e\n\n\u003ch1\u003e \u003ca href=\"#\"\u003e\u003cimg src=\"https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif\" alt=\"Waving hand\" width=\"28\"\u003e\u003c/a\u003e\nHey there, I'm \u003ca href=\"https://www.linkedin.com/in/harismuneer/\"\u003eHaris Muneer\u003c/a\u003e 👨🏻‍💻\n\u003c/h1\u003e\n\n\n\u003ca href=\"https://github.com/harismuneer\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/harismuneer\" alt=\"Total Github Stars\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/harismuneer?tab=followers\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/harismuneer\" alt=\"Total Github Followers\"\u003e\u003c/a\u003e\n\n\u003chr\u003e\n\n- \u003cb\u003e🛠️ Product Builder:\u003c/b\u003e Agile Product Manager with 5+ years of hands-on experience delivering SaaS solutions across sales, recruiting, AI, social media, and public sector domains. Background in Computer Science, with a proven track record of scaling products from inception to $XXM+ ARR, launching 3 top-ranking tools on Product Hunt, and developing solutions adopted by 250+ B2B clients in 40+ countries.  \n \n- \u003cb\u003e🌟 Open Source Advocate:\u003c/b\u003e Passionate about making technology accessible, I’ve developed and open-sourced several software projects for web, mobile, desktop, and AI on my \u003ca href=\"https://github.com/harismuneer\"\u003eGitHub profile\u003c/a\u003e. These projects have been used by thousands of learners worldwide to enhance their skills and knowledge.\n\n- \u003cb\u003e📫 How to Reach Me:\u003c/b\u003e To learn more about my skills and work, visit my \u003ca href=\"https://www.linkedin.com/in/harismuneer\"\u003eLinkedIn profile\u003c/a\u003e. For collaboration or inquiries, feel free to reach out via \u003ca href=\"mailto:haris.muneer5@gmail.com\"\u003eemail\u003c/a\u003e.\n\n\u003chr\u003e\n\n\u003ch2 align=\"left\"\u003e🤝 Follow my journey\u003c/h2\u003e\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://www.linkedin.com/in/harismuneer\"\u003e\u003cimg title=\"Follow Haris Muneer on LinkedIn\" src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/harismuneer\"\u003e\u003cimg title=\"Follow Haris Muneer on GitHub\" src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/@haris_muneer?sub_confirmation=1\"\u003e\u003cimg title=\"Subscribe on YouTube\" src=\"https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white\"/\u003e\u003c/a\u003e \n  \u003ca href=\"mailto:haris.muneer5@gmail.com\"\u003e\u003cimg title=\"Email\" src=\"https://img.shields.io/badge/Gmail-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- PROFILE_INTRO_END --\u003e\n\n\n\n\n","funding_links":["https://www.cyfylabs.com"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharismuneer%2Fcommand-line-interpreter-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharismuneer%2Fcommand-line-interpreter-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharismuneer%2Fcommand-line-interpreter-cli/lists"}