{"id":23838141,"url":"https://github.com/zekker6/commands-orchestration","last_synced_at":"2025-09-07T15:32:17.756Z","repository":{"id":39889087,"uuid":"312387981","full_name":"zekker6/commands-orchestration","owner":"zekker6","description":"A simple tool which helps to automate workflow of running some commands in shell.","archived":false,"fork":false,"pushed_at":"2025-09-04T05:56:51.000Z","size":133,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T07:28:08.938Z","etag":null,"topics":["automation","cli","parallel","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zekker6.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-12T20:27:56.000Z","updated_at":"2025-09-04T05:56:53.000Z","dependencies_parsed_at":"2024-06-08T17:36:24.546Z","dependency_job_id":"daaf7867-dc6d-4e64-bb66-642366bddf4b","html_url":"https://github.com/zekker6/commands-orchestration","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.2857142857142857,"last_synced_commit":"627ae2bb79837a9136b0bdb64a3a616a4a289a42"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/zekker6/commands-orchestration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekker6%2Fcommands-orchestration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekker6%2Fcommands-orchestration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekker6%2Fcommands-orchestration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekker6%2Fcommands-orchestration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekker6","download_url":"https://codeload.github.com/zekker6/commands-orchestration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekker6%2Fcommands-orchestration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273672837,"owners_count":25147495,"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-09-04T02:00:08.968Z","response_time":61,"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":["automation","cli","parallel","shell"],"created_at":"2025-01-02T16:38:00.994Z","updated_at":"2025-09-07T15:32:17.370Z","avatar_url":"https://github.com/zekker6.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commands orchestrator\n\nA simple tools which allows to run set of shell commands in a script like manner but on steroids.\n\n## Why?\n\nAn initial problem which this tool tries to solve is to run several subscripts in parallel.\nThis can easily be achieved by using bash `\u0026` but you will not be able to wait until all background tasks will be\nfinished to run next loop.\n\n## How?\n\nTool usage is:\n\n```sh\n  -u    Check if newer version is available and self-update\n  -v    Print version end exit\n  -vv   Verbose output\n\n```\n\nIt takes config of the following format:\n\n```\nvars:\n  test: 123\n  sleep_time: 1\n\nplay:\n  - steps:\n      - sleep {{.sleep_time}}\n      - ./examples/test.sh\n      - exit 121\n\n  - steps:\n      - echo {{.test}}\n\n  - steps:\n      - sleep 2\n      - ./examples/test.sh\n      - ./examples/test.sh\n      - exit 1\n```\n\nAnd executes steps one by one. Step is running all commands of single step in parallel. So in example above there will\nbe 3 parallel run on the first step and 4 for second step.\nOutput is piped into back into terminal.\n\n## Output\n\nIn result run it will print table with run summary and also dump all output to temporary location. Example output:\n\n```\nNAME    START           END             DURATION        STATUS  COMMAND                 LOGS AT                                   \n0_0     16:46:09        16:46:10        1.004608292s    success  sleep 1                /tmp/___go_build_main_go_log/0_0/full.log       \n0_1     16:46:09        16:46:16        7.00972742s     success  ./examples/test.sh     /tmp/___go_build_main_go_log/0_1/full.log       \n0_2     16:46:09        16:46:09        3.484781ms      failed   exit 121               /tmp/___go_build_main_go_log/0_2/full.log       \n1_0     16:46:16        16:46:16        2.088552ms      success  echo 123               /tmp/___go_build_main_go_log/1_0/full.log       \n2_0     16:46:16        16:46:18        2.003713021s    success  sleep 2                /tmp/___go_build_main_go_log/2_0/full.log       \n2_1     16:46:16        16:46:23        7.00931349s     success  ./examples/test.sh     /tmp/___go_build_main_go_log/2_1/full.log       \n2_2     16:46:16        16:46:23        7.010632844s    success  ./examples/test.sh     /tmp/___go_build_main_go_log/2_2/full.log       \n2_3     16:46:16        16:46:16        3.790103ms      failed   exit 1                 /tmp/___go_build_main_go_log/2_3/full.log \n```\n\n## Vars templating\n\nIt is possible to use templating for commands. In order to specify variables for templating define `vars` top level key\nwith set of values.\nIn the command it is required to add gotpl syntax expression to reference variable name.\n\nFor example:\n\n```\nvars:\n    here_goes_keys: \"value\"\n\nplay:\n    - steps:\n        - echo {{.here_goes_keys}}\n```\n\nWill use value from `vars` section.\n\nAnother example is [here](./examples/test.yml).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekker6%2Fcommands-orchestration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekker6%2Fcommands-orchestration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekker6%2Fcommands-orchestration/lists"}