{"id":15568546,"url":"https://github.com/cetanu/zargs","last_synced_at":"2025-03-16T12:45:29.052Z","repository":{"id":73008584,"uuid":"312526552","full_name":"cetanu/zargs","owner":"cetanu","description":"A rewrite of xargs in Rust, for fun and science","archived":false,"fork":false,"pushed_at":"2020-11-14T12:07:21.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T01:13:32.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cetanu.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,"publiccode":null,"codemeta":null}},"created_at":"2020-11-13T09:11:35.000Z","updated_at":"2023-03-04T00:26:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"f33d0c92-f0aa-485f-a57a-8846cea7ba85","html_url":"https://github.com/cetanu/zargs","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.23076923076923073","last_synced_commit":"f32ac03963229af5020314ec25bcda582db25131"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fzargs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fzargs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fzargs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetanu%2Fzargs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cetanu","download_url":"https://codeload.github.com/cetanu/zargs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871650,"owners_count":20361378,"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-10-02T17:17:05.174Z","updated_at":"2025-03-16T12:45:29.031Z","avatar_url":"https://github.com/cetanu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zargs\nA rewrite of xargs in Rust, for fun and science\n\nTodo list\n---------\n\nParameters implemented from `xargs`:\n\n- [x] \"Args file\" ie. \"Read items from file instead of standard input.\"\n- [x] \"Delimiter\" ie. \"Input items are terminated by the specified character.\"\n- [x] \"Replace\" ie. \"Replace occurrences of a string in the initial-arguments with names read from standard input.\"\n- [x] ~\"max-procs\" ie. \"Run up to max-procs processes at a time; the default is 1.\"~ uses Rayon for parallelization\n\nNot sure if I can about other parameters! Maybe I can be convinced otherwise.\n\nInstallation\n------------\n\n```shell\ncargo install zargs\n```\n\nExample Usage\n-------------\n#### Replacing strings, in the target command, with piped arguments\n```shell\necho Vasilios | zargs -r name echo \"Hello, name!\"\nHello, Vasilios!\n```\n\n#### Should work on Windows!\n```shell\necho \"write-output 'hello world :)'\" | zargs powershell\nhello world :)\n```\n\nHelp prompt\n-----------\n\n```\n$ zargs --help\nzargs 0.1.1\nVasilios Syrakis \u003ccetanu@gmail.com\u003e\n\nUSAGE:\n    zargs [OPTIONS] [command]...\n\nARGS:\n    \u003ccommand\u003e...    The command to execute against the args\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -a, --arg-file \u003carg-file\u003e      Read args from a file\n    -d, --delimiter \u003cdelimiter\u003e    Split the args by a particular delimiter\n    -p, --parallel \u003cparallel\u003e      The number of threads to run in parallel [default: 1]\n    -r, --replace \u003creplace\u003e        Replace occurences of this with args read from stdin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetanu%2Fzargs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcetanu%2Fzargs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetanu%2Fzargs/lists"}