{"id":19544847,"url":"https://github.com/ariary/sheesh","last_synced_at":"2026-05-18T06:07:35.171Z","repository":{"id":109493434,"uuid":"593303538","full_name":"ariary/sheesh","owner":"ariary","description":"YAML alias generator 🪂 (w/ flag \u0026 completion)","archived":false,"fork":false,"pushed_at":"2023-04-24T15:20:00.000Z","size":28,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T05:42:24.052Z","etag":null,"topics":["alias","hack","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariary.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":"2023-01-25T17:45:50.000Z","updated_at":"2025-02-17T08:48:37.000Z","dependencies_parsed_at":"2023-07-14T22:16:47.483Z","dependency_job_id":null,"html_url":"https://github.com/ariary/sheesh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ariary/sheesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsheesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsheesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsheesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsheesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariary","download_url":"https://codeload.github.com/ariary/sheesh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsheesh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892456,"owners_count":26064007,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alias","hack","shell"],"created_at":"2024-11-11T03:32:30.397Z","updated_at":"2025-10-08T05:33:53.769Z","avatar_url":"https://github.com/ariary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=center\u003e\n\n\u003cbr\u003e\u003cstrong\u003eGenerate only with:\u003c/strong\u003e\n\u003ccode\u003esource \u003c(sheesh)\u003c/code\u003e\n\n\u003cimg width=500 src=\"https://user-images.githubusercontent.com/14805903/215820436-2e7d553e-48c0-4232-b286-f21ae8c3ef1e.png\"\u003e\n\u003cbr\u003e\u003cstrong\u003e·\u003c/strong\u003e 🪂 \u003cstrong\u003e·\u003c/strong\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n\n## G O !\nYou have two options:\n* Use `sheesh` to produce command\n* Define command within a yaml\n\n### generate with `sheesh`\n\n```shell\nsheesh setcommand --command \"hello\" --script \"echo 'hello'\"\nsheesh setflag --command \"hello\" --name \"who\" --predefined \"toto,titi,tata\"\nsheesh setflag --command \"hello\" --name \"nrandom\" --noargs\nsheesh setscript --command \"hello\" --script \"if [ \\\"\\$RANDOM\\\" = true ]; then WHO='toto';fi;echo \\\"hello \\${WHO}\\\"\"\nsource \u003c(sheesh)\n```\n\n### generate with yaml file\n\n1. Create `.sheesh.yml` file\n2. Launch:\n```shell\nsource \u003c(sheesh)\n```\n\nAn `.sheesh.yml` example producing some api call:\n```yaml\n---\ncommands:\n  - name: api-postman\n    flags:\n      - name: stealth\n        description: \"change User-Agent\"\n        noarg: true\n      - name: token\n        predefined:\n          - \"THISISAADMINTOKEN\"\n          - \"Dzdk7e0987djjdzz87dz\"\n      - name: save\n        description: \"file to save output\"\n        file: true\n    script: |\n      USERAGENT=\"curl 2.0/7\"\n      if [ \"$STEALTH\" = true ] ; then\n          USERAGENT=\"not a hacker\"\n      fi\n      if [ -n \"$SAVE\" ];then\n        curl -H \"User-Agent: ${USERAGENT}\" -H \"Authorization: Bearer ${TOKEN}\" http://postman-echo.com/get \u003e \"${SAVE}\"\n      else\n        curl -H \"User-Agent: ${USERAGENT}\" -H \"Authorization: Bearer ${TOKEN}\" http://postman-echo.com/get\n      fi\n```\n\n## T I P S 🎩\n\n* very useful when you are testing api with `curl`\n* want to have command in all shell, add this to `.${SHELL}rc`: `source \u003c(sheesh --file [PATH_TO_SHEESHYAML]`)\n\n\n## Limits/Improvement\n* Only for zsh\n* Use uppercase flag name in your script to use it value (`$FLAGNAME`)\n* No default value\n* Can't use var with \"-\" (hence flag too)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fsheesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariary%2Fsheesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fsheesh/lists"}