{"id":23350744,"url":"https://github.com/mirryi/cchmod","last_synced_at":"2025-04-07T18:20:55.425Z","repository":{"id":57543857,"uuid":"379085426","full_name":"mirryi/cchmod","owner":"mirryi","description":"chmod calculator.","archived":false,"fork":false,"pushed_at":"2024-05-06T16:59:09.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T20:07:11.264Z","etag":null,"topics":["chmod"],"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/mirryi.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-06-21T23:11:39.000Z","updated_at":"2023-05-01T20:00:44.000Z","dependencies_parsed_at":"2022-08-27T18:51:56.707Z","dependency_job_id":null,"html_url":"https://github.com/mirryi/cchmod","commit_stats":null,"previous_names":["dophin2009/cchmod"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirryi%2Fcchmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirryi%2Fcchmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirryi%2Fcchmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirryi%2Fcchmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirryi","download_url":"https://codeload.github.com/mirryi/cchmod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543587,"owners_count":20955865,"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":["chmod"],"created_at":"2024-12-21T08:18:01.212Z","updated_at":"2025-04-07T18:20:55.403Z","avatar_url":"https://github.com/mirryi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://github.com/mirryi/cchmod/workflows/ci/badge.svg)](https://github.com/mirryi/cchmod/actions)\n[![Crates.io](https://img.shields.io/crates/v/cchmod.svg)](https://crates.io/crates/cchmod)\n[![Docs.rs](https://docs.rs/cchmod/badge.svg)](https://docs.rs/cchmod)\n\n# cchmod\n\ncchmod is a mode and permission calculator/converter for chmod.\n\n## Install\n\nInstall via Cargo:\n\n```bash\n$ cargo install cchmod\n```\n\n## Usage\n\n```bash\n$ cchmod\ncchmod\n\nUSAGE:\n    cchmod [FLAGS] \u003cinput\u003e\n\nARGS:\n    \u003cinput\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -n, --num        Output the octal form\n    -s, --sym        Output the symbolic form\n    -V, --version    Prints version information\n```\n\n### Examples\n\nGet the octal form of a mode:\n\n```bash\n$ cchmod -n rwxr-xr-x\n755\n```\n\nGet the symbolic form of a mode:\n\n```bash\n$ cchmod -s 644\nrw-r--r--\n```\n\nThe same operations, on permission values:\n\n```bash\n$ cchmod -n r-x\n5\n\n$ cchmod -s 7\nrwx\n```\n\n### Library\n\ncchmod can be used as a library:\n\n```rust\nuse cchmod::Mode;\n\nlet m = Mode::from_sym(\"rw-r--r--\").unwrap();\nprintln!(\"{}\", m.as_num());\n```\n\nSee the [docs](https://docs.rs/cchmod) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirryi%2Fcchmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirryi%2Fcchmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirryi%2Fcchmod/lists"}