{"id":12677738,"url":"https://github.com/jamiescode/bash-menu-generator","last_synced_at":"2025-02-24T07:32:30.170Z","repository":{"id":17886930,"uuid":"20833590","full_name":"jamiescode/bash-menu-generator","owner":"jamiescode","description":"A simple bash script that will generate menus","archived":false,"fork":false,"pushed_at":"2024-06-28T12:42:35.000Z","size":64,"stargazers_count":59,"open_issues_count":0,"forks_count":28,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-15T03:30:58.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/jamiescode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2014-06-14T14:16:35.000Z","updated_at":"2024-09-23T07:11:22.000Z","dependencies_parsed_at":"2024-07-17T05:16:32.620Z","dependency_job_id":null,"html_url":"https://github.com/jamiescode/bash-menu-generator","commit_stats":null,"previous_names":["jamiescode/bash-menu-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiescode%2Fbash-menu-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiescode%2Fbash-menu-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiescode%2Fbash-menu-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiescode%2Fbash-menu-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiescode","download_url":"https://codeload.github.com/jamiescode/bash-menu-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240437375,"owners_count":19801093,"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":[],"created_at":"2024-07-17T05:07:12.413Z","updated_at":"2025-02-24T07:32:29.771Z","avatar_url":"https://github.com/jamiescode.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"bash-menu-generator\n=================\n\nA simple bash script that will generate menus.\n\nExamples\n=================\n\n![alt Bash Menu Options Example](https://raw.githubusercontent.com/JamieCruwys/bash-menu-generator/master/images/Bash%20Menu%20Options.png)\n\n![alt Bash Menu Instructions Example](https://raw.githubusercontent.com/JamieCruwys/bash-menu-generator/master/images/Bash%20Menu%20Instructions.png)\n\nUsage\n=================\n\nI would recommend that you take a look at the [example](example.sh) to see how to use the script.\n\ngenerateDialog\n-----------------\n**Parameter 1:** You can either use `options=()` which gives you a list of options [like this](https://raw.githubusercontent.com/JamieCruwys/bash-menu-generator/master/images/Bash%20Menu%20Options.png) OR you can use `instructions=()` which shows a set of instructions [like this](https://raw.githubusercontent.com/JamieCruwys/bash-menu-generator/master/images/Bash%20Menu%20Instructions.png).\n\n**Parameter 2:** Title for the menu. In the examples above these are \"Choose an option\" and \"GitHub Instructions\".\n\n**Parameter 3:** Array of options or instructions to show. See the [example](example.sh)\n\n`e.g. generateDialog \"options\" \"Choose an option\" \"${options[@]}\"`\n\n\nConfiguration\n=================\n\n- **symbol** - Which character to be used to create the menu.\n- **paddingSymbol** - Character to space and center the text.\n- **lineLength** - How wide the menu should be.\n- **charsToOption** - How much padding you want from the sides of the menu.\n- **charsToName** - How much padding you want around the text.\n\nTroubleshooting\n=================\n\nIf you try to run the [example](example.sh) and you get the error:\n```\nzsh: permission denied: ./example.sh\n```\nThen you need to update the permissions for the file by running:\n```\nchmod +x example.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiescode%2Fbash-menu-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiescode%2Fbash-menu-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiescode%2Fbash-menu-generator/lists"}