Title: Rust API · Issue #97 · lgarron/folderify · GitHub
Open Graph Title: Rust API · Issue #97 · lgarron/folderify
X Title: Rust API · Issue #97 · lgarron/folderify
Description: There are some situations where other tools may want to call folderify: #67 #92 #96 They can do so on the commandline, but using a CLI for even the most trivial use cases is fraught with correctness and security bugs. For example, even t...
Open Graph Description: There are some situations where other tools may want to call folderify: #67 #92 #96 They can do so on the commandline, but using a CLI for even the most trivial use cases is fraught with correctnes...
X Description: There are some situations where other tools may want to call folderify: #67 #92 #96 They can do so on the commandline, but using a CLI for even the most trivial use cases is fraught with correctnes...
Opengraph URL: https://github.com/lgarron/folderify/issues/97
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rust API","articleBody":"There are some situations where other tools may want to call `folderify`:\n\n- https://github.com/lgarron/folderify/issues/67\n- https://github.com/lgarron/folderify/issues/92\n- https://github.com/lgarron/folderify/issues/96\n\nThey can do so on the commandline, but using a CLI for even the most trivial use cases is fraught with correctness and security bugs. For example, even this simple wrapper is unsafe:\n\n```shell\n#!/usr/bin/env bash\n\nset -euo pipefail\n\nfolderify $1\n```\n\n(There are at least two trivial issues that will cause this to fail or do something unexpected when passed the name of a file. These can turn into security bugs for more sensitive programs, but I wouldn't put it past someone to construct a security bug using `folderify`'s functionality.)\n\nA good first step would be to define and publish a proper API in Rust, adapted from the `clap` definitions.","author":{"url":"https://github.com/lgarron","@type":"Person","name":"lgarron"},"datePublished":"2025-06-21T01:11:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/97/folderify/issues/97"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:001db824-e2a2-f18c-28dd-9afb27b02203 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B34E:26DE3B:D27265:12FA960:6A4B9EE1 |
| html-safe-nonce | d8c0e94af5cd9ec44b43e73231bae59ddea0b33a59749abc0a3ba0a6571a165d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzRFOjI2REUzQjpEMjcyNjU6MTJGQTk2MDo2QTRCOUVFMSIsInZpc2l0b3JfaWQiOiIzODQxNTAzNTI5Njg1MTk2NTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8312479b5dc8cdca45668cc787cb7fa0d78797929dc5b91920099240e3814351 |
| hovercard-subject-tag | issue:3164627897 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lgarron/folderify/97/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ce228f0cb58bb4f4a65488348015b880574ae86cfc5bcf88758a7aa58e4a669/lgarron/folderify/issues/97 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ce228f0cb58bb4f4a65488348015b880574ae86cfc5bcf88758a7aa58e4a669/lgarron/folderify/issues/97 |
| og:image:alt | There are some situations where other tools may want to call folderify: #67 #92 #96 They can do so on the commandline, but using a CLI for even the most trivial use cases is fraught with correctnes... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lgarron |
| hostname | github.com |
| expected-hostname | github.com |
| None | a7e470aeb8fedd833ae331b0a162f6c5a72c09b899dd94a7cd531e5e0e3a93d5 |
| turbo-cache-control | no-preview |
| go-import | github.com/lgarron/folderify git https://github.com/lgarron/folderify.git |
| octolytics-dimension-user_id | 248078 |
| octolytics-dimension-user_login | lgarron |
| octolytics-dimension-repository_id | 2321480 |
| octolytics-dimension-repository_nwo | lgarron/folderify |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2321480 |
| octolytics-dimension-repository_network_root_nwo | lgarron/folderify |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ad79fae8b165db9a62b2142d969fa7b21eedcf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width