{"id":25238576,"url":"https://github.com/baalimago/repeater","last_synced_at":"2025-07-04T18:33:34.085Z","repository":{"id":197599111,"uuid":"698956419","full_name":"baalimago/repeater","owner":"baalimago","description":"A tool which repeats a command n amounts of time. Includes parallelization, error handling, progress and slight tweaks.","archived":false,"fork":false,"pushed_at":"2024-09-09T16:30:54.000Z","size":220,"stargazers_count":59,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-09T20:29:32.748Z","etag":null,"topics":["go","parallel","productivity","repeater","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","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/baalimago.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-01T13:54:49.000Z","updated_at":"2024-09-09T16:30:57.000Z","dependencies_parsed_at":"2023-10-11T07:18:46.080Z","dependency_job_id":"2e7b3908-dd05-4748-9173-3522297d44d1","html_url":"https://github.com/baalimago/repeater","commit_stats":{"total_commits":90,"total_committers":4,"mean_commits":22.5,"dds":0.1444444444444445,"last_synced_commit":"2f04c9b2d3bc32d811c2d81e99b3d140d18cf35e"},"previous_names":["baalimago/repeater"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Frepeater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Frepeater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Frepeater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Frepeater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baalimago","download_url":"https://codeload.github.com/baalimago/repeater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238333862,"owners_count":19454681,"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":["go","parallel","productivity","repeater","shell"],"created_at":"2025-02-11T17:22:32.601Z","updated_at":"2025-07-04T18:33:34.065Z","avatar_url":"https://github.com/baalimago.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repeater\nA tool which repeats a command n amounts of time, with paralellisation and slight tweaks.\n\nTest coverage: 59.600% 😌👏\n\n![repeatoopher](./img/repeatoopher.jpg)\n\n### Installation\n```bash\ngo install github.com/baalimago/repeater@latest\n```\n\nYou may also use the setup script:\n```bash\ncurl -fsSL https://raw.githubusercontent.com/baalimago/repeater/main/setup.sh | sh\n```\n\n## Usage\nSince v1.2.1, repeater will re-attempt the command until successful.\nA success is a command returning exit code 0.\nSet flag `-retryOnFail=false` if you simply wish to repeat the CMD `-n` amount of times, regardless of outcome.\n\nUsecases: \n* CRUD state using curl as fast as you have network sockets\n* Paralellize repetitive shell-scripts\n* Ghetto benchmarking\n\n```bash\nrepeater \\\n    -n 100 `# repeat 100 times` \\\n    -w 10 ` # using 10 workers` \\\n    -output FILE `              # with command output written to FILE` \\\n    -progress BOTH `            # with progress written to BOTH STDOUT and FILE` \\\n    -file ./run_output `        # with FILE ./run_output` \\\n    -result ./run_result `      # with result (output + time taken) for each command` \\\n    curl example.com `          # command to repeat`\n```\n\n```bash\n# This will print \"this is increment: 1\\nthis is increment: 2\\n...\"\nrepeater -n 100 -output STDOUT -progress HIDDEN -increment echo \"this is increment: INC\"\n\n# Show all available flags\nrepeater -h\n```\n\n## Benchmarks\n`repeater` outperforms many other parallizers, including GNU parallel and xargs. \n\nRun `./benchmark.sh` to try out repeaters performance vs similar parallelization tools.\nYou may benchmark any command that you want, simply run `./benchmark.sh \u003cMAX RUNS\u003e \u003cYOUR COMMAND\u003e`.\nIt will run the command with `repeater`, `parallel` and `xargs` and print the time taken for each by starting to repeat the command 10 times then 100, 1000, etc up until `\u003cMAX_RUNS\u003e`.\nNote that `./benchmark.sh` will break if it detects and diffs in the output of the commands, so ensure the commands output is deterministic.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaalimago%2Frepeater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaalimago%2Frepeater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaalimago%2Frepeater/lists"}