{"id":36485644,"url":"https://github.com/venkytv/readval","last_synced_at":"2026-01-12T01:50:22.014Z","repository":{"id":57667160,"uuid":"440835096","full_name":"venkytv/readval","owner":"venkytv","description":"A command line tool to prompt for a value to be included in another command line.","archived":false,"fork":false,"pushed_at":"2021-12-22T14:38:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T00:36:39.221Z","etag":null,"topics":["cli","go","shell","terminal"],"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/venkytv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-22T11:27:56.000Z","updated_at":"2024-06-20T00:36:39.222Z","dependencies_parsed_at":"2022-09-02T14:11:09.636Z","dependency_job_id":null,"html_url":"https://github.com/venkytv/readval","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/venkytv/readval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkytv%2Freadval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkytv%2Freadval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkytv%2Freadval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkytv%2Freadval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venkytv","download_url":"https://codeload.github.com/venkytv/readval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkytv%2Freadval/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","go","shell","terminal"],"created_at":"2026-01-12T01:50:21.268Z","updated_at":"2026-01-12T01:50:22.005Z","avatar_url":"https://github.com/venkytv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"`readval` is a command line tool which is designed for one specific purpose\u0026mdash;to\nprompt for a value to be included in another command line. `readval` prints the\nprompt on the TTY, reads the input also from the TTY, and echoes the entered\ninput to stdout.\n\nUsage\n-----\n\n``` sh\n$ readval -h\nusage: ./readval [OPTIONS] prompt...\nPrints prompts, reads input from TTY, and echoes it back on stdout.\n\n  -s, --silent          Do not echo input\n```\n\nExamples\n-------\n\n``` sh\n$ readval prompt \u003c/dev/null | od -c\nprompt: foo\n0000000   f   o   o  \\n\n0000004\n```\n\nOr a more \"real\" example:\n\n``` sh\n$ echo \"foo=bar\" \\\n  | curl -s -XPOST -d @- \"https://httpbin.org/post?user=$( readval Enter username )\u0026pass=$( readval -s Enter password )\" \\\n  | jq .\nEnter username: testuser\nEnter password:\n{\n  \"args\": {\n    \"pass\": \"testpass\",\n    \"user\": \"testuser\"\n  },\n  \"data\": \"\",\n  \"files\": {},\n  \"form\": {\n    \"foo\": \"bar\"\n  },\n...\n```\n\nInstallation\n------------\n\n``` sh\ngo install github.com/venkytv/readval@latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkytv%2Freadval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenkytv%2Freadval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkytv%2Freadval/lists"}