{"id":23740129,"url":"https://github.com/cobbzilla/shestrel","last_synced_at":"2026-03-03T21:30:21.897Z","repository":{"id":8835819,"uuid":"10539233","full_name":"cobbzilla/shestrel","owner":"cobbzilla","description":"a set of simple shell scripts for working with kestrel queues.","archived":false,"fork":false,"pushed_at":"2014-02-07T23:43:16.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-31T09:47:05.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cobbzilla.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}},"created_at":"2013-06-07T00:20:33.000Z","updated_at":"2014-02-07T23:43:17.000Z","dependencies_parsed_at":"2022-09-07T13:40:27.927Z","dependency_job_id":null,"html_url":"https://github.com/cobbzilla/shestrel","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/cobbzilla%2Fshestrel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Fshestrel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Fshestrel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Fshestrel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cobbzilla","download_url":"https://codeload.github.com/cobbzilla/shestrel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886386,"owners_count":19713479,"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-12-31T09:47:13.713Z","updated_at":"2026-03-03T21:30:21.835Z","avatar_url":"https://github.com/cobbzilla.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"shestrel\n========\n\nA set of simple shell scripts for working with kestrel queues. Commands supported are:\n\n* kget: read from a queue\n* kset: write to a queue\n* ksize: show queue size\n* kpeek: peek at the next element in a queue\n* kflush: flush a queue\n* kflush_all: flush all queues\n* kmove: move all items from one queue to another queue\n* kpopulate: write many items to a queue\n\n## Referencing a queue\nFor all commands (except kflush_all), the format is\n\n    [host[:port]/]queue\nwhere:\n\n* host is optional and will default to localhost\n* port is optional and will default to 22133\n* queue is required\n\nFor kflush_all, the format is\n\n    host[:port]\nwhere:\n* port is optional and will default to 22133\n* host is required\n\n## Exit codes\n* Commands exit with status 0 upon success. \n* Exit status 1 indicates a problem with the command arguments.\n* kget and kpeek exit with status 2 if the queue is empty.\n\n## Examples\n    $ ksize foo\n    0\n    $ kpopulate foo 100\n    $ ksize foo\n    100\n    $ kflush foo\n    $ ksize foo\n    0\n    $ kpopulate foo 23\n    $ kget foo\n    value_0\n    $ ksize foo\n    22\n    $ kset foo another_value\n    $ ksize foo\n    23\n    $ kmove foo bar\n    Moved 23 items\n    $ ksize foo\n    0\n    $ ksize bar\n    23\n    $ kpopulate foo 100\n    $ ksize foo\n    100\n    $ ksize bar\n    23\n    $ kflush_all\n    Flushed all queues.\n    $ ksize foo\n    0\n    $ ksize bar\n    0\n    $ kset localhost:22133/foo some_value\n    $ kget localhost:22133/foo\n    some_value\n    $ kset localhost/foo one_more_value\n    $ kget localhost/foo\n    one_more_value\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbzilla%2Fshestrel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobbzilla%2Fshestrel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbzilla%2Fshestrel/lists"}