{"id":51218045,"url":"https://github.com/lylemi/passerby","last_synced_at":"2026-06-28T05:13:04.392Z","repository":{"id":217236651,"uuid":"743357584","full_name":"LyleMi/passerby","owner":"LyleMi","description":"Passerby is a package for hide command-line arguments for Golang program with oneline","archived":false,"fork":false,"pushed_at":"2024-01-15T03:46:53.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T19:56:55.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/LyleMi.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-01-15T03:45:31.000Z","updated_at":"2024-02-06T03:46:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"681c678a-2ede-4c31-81c2-4fc344b3024e","html_url":"https://github.com/LyleMi/passerby","commit_stats":null,"previous_names":["lylemi/passerby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LyleMi/passerby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyleMi%2Fpasserby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyleMi%2Fpasserby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyleMi%2Fpasserby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyleMi%2Fpasserby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LyleMi","download_url":"https://codeload.github.com/LyleMi/passerby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyleMi%2Fpasserby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34878078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-28T05:13:03.668Z","updated_at":"2026-06-28T05:13:04.377Z","avatar_url":"https://github.com/LyleMi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passerby\n\nPasserby is a package for hide command-line arguments for Golang program.\n\n## Features\n\n- Hide command-line arguments from an environment variable\n- Delete a file after a specified duration\n\n## Usage\n\n### Hooking command-line arguments\n\nTo hook command-line arguments, simply import package in your code:\n\n```golang\nimport (\n    _ \"github.com/lylemi/passerby\"\n)\n```\n\nThe package will then read the ARG environment variable, split it by spaces, and append it to os.Args.\n\n### Deleting a file after a duration\n\nTo delete a config file after a specified duration, call DeleteFileAfterDuration(filePath string):\n\n```golang\nimport \"github.com/lylemi/passerby\"\n\nfunc main() {\n    passerby.DeleteFileAfterDuration(\"path/to/your/file.txt\")\n    // Your code here\n}\n```\n\nBy default, the file will be deleted after 60 seconds. To change the duration, set the DELETE_DURATION environment variable to a valid Go duration string (e.g., \"30s\" for 30 seconds, \"1m\" for 1 minute, etc.).\n\n## Example\n\nsee example dir\n\n```bash\nexport ARG='-name real_passed_name'\n./cmdline --fake-arg fake_passed\n```\n\n```bash\nexport ARG='-file config.json'\nexport DELETE_DURATION=0\n./configfile --fake-arg fake_passed\n```\n\n## Contribution\n\nIf you have any ideas or suggestions, please feel free to submit a pull request. We appreciate any contributions.\n\n## Contact\n\nIf you have any questions or suggestions, please feel free to contact us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flylemi%2Fpasserby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flylemi%2Fpasserby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flylemi%2Fpasserby/lists"}