{"id":50925171,"url":"https://github.com/aca/cq","last_synced_at":"2026-06-16T22:01:35.768Z","repository":{"id":356676112,"uuid":"814124787","full_name":"aca/cq","owner":"aca","description":"command queue","archived":false,"fork":false,"pushed_at":"2026-05-25T14:33:40.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-25T16:29:14.687Z","etag":null,"topics":[],"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/aca.png","metadata":{"files":{"readme":"README","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":"2024-06-12T11:43:24.000Z","updated_at":"2026-05-25T14:33:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aca/cq","commit_stats":null,"previous_names":["aca/cq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aca/cq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fcq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fcq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fcq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fcq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aca","download_url":"https://codeload.github.com/aca/cq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fcq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34425024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":[],"created_at":"2026-06-16T22:01:34.981Z","updated_at":"2026-06-16T22:01:35.763Z","avatar_url":"https://github.com/aca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"CQ - COMMAND QUEUE\n==================\n\ncq is a command queue. Commands run one at a time, in order.\nIt uses zmx as the terminal backend, so you can attach to\nrunning jobs and see their output.\n\nNo daemon. No config. Just queue and go.\n\n\nQUICK START\n\n    $ cq make build          # queue a command\n    queued: [1] [make build]\n\n    $ cq make test           # queue another\n    queued: [2] [make test]\n\n    $ cq list                # see what's going on\n    ID   STATUS     PID      COMMAND\n    2    pending    -        make test\n    1    running    12345    make build\n\n    $ cq attach 1            # attach to running job (full scrollback)\n    $ cq log 1               # just dump the output\n\n\nCOMMANDS\n\n    cq \u003ccmd\u003e [args]          queue a command\n    cq attach \u003cid\u003e           attach terminal to running job\n    cq kill \u003cid\u003e             kill a running job\n    cq list                  list jobs\n    cq log \u003cid\u003e              show job output\n    cq retry \u003cid\u003e            re-queue a job with its original env/workdir\n    cq cat \u003cid\u003e              print the full command (env, cd, cmd)\n    cq clean                 remove finished and killed jobs\n    cq reset                 wipe all jobs in the namespace\n    cq resume                restart the worker for stuck queues\n\n\nNAMESPACES\n\n    cq -n build make all     # queue in \"build\" namespace\n    cq -n build list         # list \"build\" jobs\n    CQ_NS=build cq list      # same thing via env\n\nEach namespace has its own queue. Jobs in different namespaces\nrun independently and in parallel.\n\n\nHOW IT WORKS\n\nWhen you queue a command, cq inserts it into a SQLite database\nand spawns a worker (if one isn't already running). The worker\npicks up jobs one by one, runs each inside a zmx session, and\nwaits for it to finish before starting the next.\n\nzmx gives each job a virtual terminal with scrollback. You can\nattach to see live output, detach, and reattach later -- even\nfrom a different terminal.\n\nState lives in ~/.local/state/cq/ (or $XDG_STATE_HOME/cq/).\n\n\nREQUIREMENTS\n\n    zmx     https://github.com/nicm/zmx\n\n\nINSTALL\n\n    go install github.com/aca/cq@latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Fcq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faca%2Fcq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Fcq/lists"}