{"id":16851886,"url":"https://github.com/cad97/win-ftype","last_synced_at":"2025-03-18T09:40:18.115Z","repository":{"id":90989938,"uuid":"533988292","full_name":"CAD97/win-ftype","owner":"CAD97","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-08T00:53:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T16:10:23.254Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CAD97.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-08T00:24:40.000Z","updated_at":"2022-09-08T00:25:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e590128-6390-4491-86ef-1344cf2cb086","html_url":"https://github.com/CAD97/win-ftype","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/CAD97%2Fwin-ftype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fwin-ftype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fwin-ftype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fwin-ftype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CAD97","download_url":"https://codeload.github.com/CAD97/win-ftype/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244196779,"owners_count":20414367,"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-10-13T13:33:59.617Z","updated_at":"2025-03-18T09:40:18.090Z","avatar_url":"https://github.com/CAD97.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"This crate is 100% empty on non-windows platforms.\n\n## Demo\n\n(in Command Prompt)\n\n```text\nD:\\git\\cad97\\win-ftype\u003ecargo run -q -- test.py hi ma\n[src\\main.rs:11] cmd.with_file_type_association()? = \"C:\\\\Windows\\\\py.exe\" \"D:\\\\git\\\\cad97\\\\win-ftype\\\\test.py\" \"hi\" \"ma\"\n['D:\\\\git\\\\cad97\\\\win-ftype\\\\test.py', 'hi', 'ma']\n\nD:\\git\\cad97\\win-ftype\u003etest.py hi ma\n['D:\\\\git\\\\cad97\\\\win-ftype\\\\test.py', 'hi', 'ma']\n```\n\n## Limitations\n\nNecessarily reimplements the [\"command line variables\"](https://superuser.com/a/473602)\nused in defining file type associations, so behavior may differ from `ShellExecute` there.\nThe most used placeholders of `%0`/`$1`/`%L` and `%*` should mostly work properly.\nHowever, this implementation only does substitution for the *entire* argument; e.g.\nan argument of `/z\"%1\"` won't get substituted properly. Everything else is a best-effort\nimplementation of mostly undocumented functionality.\n\nAdditionally, this crate *does not* replicate the \"functionality\" of unquoted variables\nbeing expanded into potentially multiple command line arguments. This is primarily due\nto the fact that after doing `CommandLineToArgvW` we lose the information of whether the\nvariable was quoted or not; we assume the proper quoting was used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Fwin-ftype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcad97%2Fwin-ftype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Fwin-ftype/lists"}