{"id":19357872,"url":"https://github.com/swiftsoftwaregroup/cli-rust","last_synced_at":"2026-02-17T12:03:16.490Z","repository":{"id":247828038,"uuid":"826678143","full_name":"swiftsoftwaregroup/cli-rust","owner":"swiftsoftwaregroup","description":"Template for Command Line Interface (CLI) tool in Rust","archived":false,"fork":false,"pushed_at":"2024-07-10T17:11:26.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-14T11:43:13.061Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftsoftwaregroup.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T07:02:20.000Z","updated_at":"2024-07-10T17:16:57.000Z","dependencies_parsed_at":"2024-07-10T22:05:18.149Z","dependency_job_id":null,"html_url":"https://github.com/swiftsoftwaregroup/cli-rust","commit_stats":null,"previous_names":["swiftsoftwaregroup/cli-rust"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/swiftsoftwaregroup/cli-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftsoftwaregroup%2Fcli-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftsoftwaregroup%2Fcli-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftsoftwaregroup%2Fcli-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftsoftwaregroup%2Fcli-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftsoftwaregroup","download_url":"https://codeload.github.com/swiftsoftwaregroup/cli-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftsoftwaregroup%2Fcli-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29543369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"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":[],"created_at":"2024-11-10T07:09:30.569Z","updated_at":"2026-02-17T12:03:16.472Z","avatar_url":"https://github.com/swiftsoftwaregroup.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-rust\n\nTemplate for Command Line Interface (CLI) tool in Rust\n\n## Development\n\n### Setup for macOS\n\nInstall `rustup`:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\nTest:\n\n```bash\nsource $HOME/.cargo/env\nrustc --help\n```\n\n### Work on macOS\n\nConfigure project:\n\n```bash\nsource configure.sh\n```\n\nOpen the project in Visual Studio Code:\n\n```bash\ncode .\n```\n\n### Build\n\n```bash\ncargo build\n```\n\n### Run\n\n#### Run the compiled binary\n\n```bash\npushd ./target/debug\n\n./cli-rust\n\necho \"John\" \u003e name.txt\n\n./cli-rust greet name.txt\n./cli-rust greet --language es name.txt\n./cli-rust greet -l bg name.txt\n\npopd\n```\n\nOutput:\n\n```bash\nHello, John!\nHola, John!\nЗдравей, John!\n```\n\n#### Run through `cargo`\n\n```bash\ncargo run greet name.txt\ncargo run greet --language es name.txt\ncargo run greet -l bg name.txt\n```\n\n### Test\n\n```bash\ncargo test\n```\n\n### Generate Docs\n\n```bash\ncargo doc\n```\n\nBrowse docs:\n\n```bash\ncargo doc --open\n```\n\n### How to create a new project\n\n```bash\n# create new project\ncargo init\n\n# add packages\n# see: https://crates.io/crates/clap\ncargo add clap --features derive\ncargo add tempfile --dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftsoftwaregroup%2Fcli-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftsoftwaregroup%2Fcli-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftsoftwaregroup%2Fcli-rust/lists"}