{"id":17736542,"url":"https://github.com/toshimaru/torch","last_synced_at":"2026-03-15T13:59:48.957Z","repository":{"id":215193734,"uuid":"664208810","full_name":"toshimaru/torch","owner":"toshimaru","description":"`torch` = `mkdir` + `touch`.  Written in Rust.","archived":false,"fork":false,"pushed_at":"2024-04-01T22:06:12.000Z","size":29,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T15:30:14.572Z","etag":null,"topics":["command","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/toshimaru.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":"2023-07-09T08:46:54.000Z","updated_at":"2024-03-13T00:30:44.000Z","dependencies_parsed_at":"2024-10-26T04:52:19.049Z","dependency_job_id":"0e598fc3-cd79-4a46-b6d0-ae2d5683bf59","html_url":"https://github.com/toshimaru/torch","commit_stats":null,"previous_names":["toshimaru/torch"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/toshimaru/torch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Ftorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Ftorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Ftorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Ftorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toshimaru","download_url":"https://codeload.github.com/toshimaru/torch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Ftorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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":["command","rust"],"created_at":"2024-10-26T00:23:23.964Z","updated_at":"2026-03-15T13:59:48.938Z","avatar_url":"https://github.com/toshimaru.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/toshimaru/torch/actions/workflows/test.yml/badge.svg)](https://github.com/toshimaru/torch/actions/workflows/test.yml)\n[![Version](https://img.shields.io/crates/v/torch-cmd.svg)](https://crates.io/crates/torch-cmd)\n\n# torch\n\n`torch` is a small CLI that combines `mkdir -p` and `touch`.\n\nIt creates parent directories when needed, then creates the file.\n\n## Why\n\nCreating a file in a nested path usually takes two commands:\n\n```console\n$ mkdir -p path/to\n$ touch path/to/file.txt\n```\n\n`torch` reduces that to one:\n\n```console\n$ torch path/to/file.txt\n```\n\n## What it does\n\nGiven one or more paths, `torch`:\n\n- creates missing parent directories\n- creates the target file if it does not exist\n- updates the access and modification times if it already exists\n- exits with a non-zero status if any path fails\n\n## Usage\n\n```console\n$ torch \u003cPATH\u003e...\n```\n\nExamples:\n\n```console\n$ torch notes/today.md\n$ torch app/models/user.rb app/controllers/users_controller.rb\n$ torch tmp/output.log\n```\n\nThis command:\n\n```console\n$ torch docs/guides/getting-started.md\n```\n\nis roughly equivalent to:\n\n```console\n$ mkdir -p docs/guides\n$ touch docs/guides/getting-started.md\n```\n\nTo see the built-in CLI help:\n\n```console\n$ torch --help\n```\n\n## Install\n\n### Cargo\n\n```console\n$ cargo install torch-cmd\n```\n\n### Homebrew\n\n```console\n$ brew install toshimaru/homebrew-torch/torch-cmd\n```\n\n## Development\n\nRun the test suite:\n\n```console\n$ cargo test\n```\n\nRun the CLI locally:\n\n```console\n$ cargo run -- path/to/file.txt\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Ftorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoshimaru%2Ftorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Ftorch/lists"}