{"id":16985065,"url":"https://github.com/hejsil/sab","last_synced_at":"2025-04-09T03:43:50.185Z","repository":{"id":41313415,"uuid":"164110308","full_name":"Hejsil/sab","owner":"Hejsil","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-22T12:18:25.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T02:55:58.864Z","etag":null,"topics":["cli","command-line-tool","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Hejsil.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":["Hejsil"]}},"created_at":"2019-01-04T13:23:42.000Z","updated_at":"2024-05-16T08:52:48.283Z","dependencies_parsed_at":"2024-01-08T08:28:37.574Z","dependency_job_id":"0f7ba08e-b40a-41e9-820a-753b8ceced6b","html_url":"https://github.com/Hejsil/sab","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/Hejsil%2Fsab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fsab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fsab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fsab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hejsil","download_url":"https://codeload.github.com/Hejsil/sab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974595,"owners_count":21026742,"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","command-line-tool","zig"],"created_at":"2024-10-14T02:36:45.985Z","updated_at":"2025-04-09T03:43:50.138Z","avatar_url":"https://github.com/Hejsil.png","language":"Zig","funding_links":["https://github.com/sponsors/Hejsil"],"categories":[],"sub_categories":[],"readme":"# sab (Spinners And Bars)\n\nA simple program for printing spinners and bars to stdout.\n\n```\nUsage: sab [OPTION]...\nsab will draw bars/spinners based on the values piped in through\nstdin.\n\nTo draw a simple bar, simply pipe a value between 0-100 into sab:\necho 35 | sab\n====      \n\nYou can customize your bar with the '-s, --steps' option:\necho 35 | sab -s ' ,-,='\n===-      \n\n`sab` has two ways of drawing bars, which can be chosen with the `-t, --type` option:\necho 50 | sab -s ' ,|,='\n=====     \necho 55 | sab -s ' ,|,='\n=====|    \necho 50 | sab -s ' ,|,=' -t mark-center\n====|     \necho 55 | sab -s ' ,|,=' -t mark-center\n=====|    \n\nTo draw a simple spinner, simply set the length of the bar to 1\nand set max to be the last step:\necho 2 | sab -l 1 -M 3 -s '/,-,\\,|'\n\\\n\nsab will draw multible lines, one for each line piped into it.\necho -e '0\\n1\\n2\\n3' | sab -l 1 -M 3 -s '/,-,\\,|'\n/\n-\n\\\n|\n\nOptions:\n\t-h, --help                     \tprint this message to stdout\n\t-l, --length \u003cNUM\u003e             \tthe length of the bar (default: 10)\n\t-m, --min \u003cNUM\u003e                \tminimum value (default: 0)\n\t-M, --max \u003cNUM\u003e                \tmaximum value (default: 100)\n\t-s, --steps \u003cLIST\u003e             \ta comma separated list of the steps used to draw the bar (default: ' ,=')\n\t-t, --type \u003cnormal|mark-center\u003e\tthe type of bar to draw (default: normal)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fsab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhejsil%2Fsab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fsab/lists"}