{"id":13781212,"url":"https://github.com/aashutoshrathi/Elf","last_synced_at":"2025-05-11T14:34:47.540Z","repository":{"id":87573231,"uuid":"101925359","full_name":"aashutoshrathi/Elf","owner":"aashutoshrathi","description":"Linux Terminal interpreter in C","archived":false,"fork":false,"pushed_at":"2017-09-12T18:21:56.000Z","size":538,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T23:41:25.176Z","etag":null,"topics":["c","linux","terminal","terminal-based"],"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/aashutoshrathi.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}},"created_at":"2017-08-30T20:23:27.000Z","updated_at":"2021-05-16T08:13:13.000Z","dependencies_parsed_at":"2024-04-24T11:51:44.501Z","dependency_job_id":"59a12c8e-c2e5-465b-a50a-43fbcf56ef83","html_url":"https://github.com/aashutoshrathi/Elf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashutoshrathi%2FElf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashutoshrathi%2FElf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashutoshrathi%2FElf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashutoshrathi%2FElf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aashutoshrathi","download_url":"https://codeload.github.com/aashutoshrathi/Elf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253580326,"owners_count":21930924,"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","linux","terminal","terminal-based"],"created_at":"2024-08-03T18:01:23.931Z","updated_at":"2025-05-11T14:34:47.071Z","avatar_url":"https://github.com/aashutoshrathi.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Elf\nOS Lab Mini Project\n\n### Instructions\n\n* First of all fork this repository using \u003ca class=\"github-button\" href=\"https://github.com/aashutoshrathi/Elf/fork\" data-size=\"small\" data-show-count=\"true\" aria-label=\"Fork aashutoshrathi/Elf on GitHub\"\u003eFork\u003c/a\u003e\n* Clone your forked repo using \n```md\ngit clone https://github.com/Your-Username/Elf.git\n```\n\n* Change Directory to Elf, using \n```md\ncd Elf\n```\n\n* Add remote branch using \n```md\ngit remote add upstream https://github.com/aashutoshrathi/Elf.git\n```\n\n* Do your work in a seprate branch never make a function in master itself.\n* You just need to implement function part in [Basic Structure](#bs) in a file named same as function.\n* Create a new branch using \n```md\ngit checkout -b \"Branch-Name\"\n```\n\n* When completed push your work, and Send a Pull-Request.\n* Try maintaing code quality, indentation and standards.\n* After review it will be added to Project and merged with our master function.\n\n\u003ca name=\"bs\"\u003e\u003c/a\u003e\n### Basic Structure\n\n```c\n#include \u003cunistd.h\u003e\n#include \u003cstdio.h\u003e\n#include \u003cstring.h\u003e\n#include \u003cstdlib.h\u003e\n\nint function(void); // Declaration\n\nint main() {\n\tchar arg[1024];\n\twhile(strcmp(arg,\"exit\") != 0){\t\n\t\tprintf(\"myshell$ \"); // As we are making bash.\n\t\tscanf(\"%s\", arg);\n\t\tswitch(arg[0]) {\n\t\t\tcase 'TriggerKey':\n\t\t\tfunction();\n\t\t}\n\t}\n\texit(0);\n}\n\nint function() {\n\t/*\n        Your implementation here...\n    */\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashutoshrathi%2FElf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faashutoshrathi%2FElf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashutoshrathi%2FElf/lists"}