{"id":31595270,"url":"https://github.com/escherize/tortise_go","last_synced_at":"2025-10-06T03:59:04.508Z","repository":{"id":310771287,"uuid":"1041148284","full_name":"escherize/tortise_go","owner":"escherize","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-21T02:58:12.000Z","size":5397,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-14T15:11:19.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/escherize.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,"zenodo":null}},"created_at":"2025-08-20T04:01:07.000Z","updated_at":"2025-08-21T02:58:16.000Z","dependencies_parsed_at":"2025-08-20T06:20:59.670Z","dependency_job_id":"5b9386fe-4666-42b2-ad8b-49e3647288e7","html_url":"https://github.com/escherize/tortise_go","commit_stats":null,"previous_names":["escherize/tortise_go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/escherize/tortise_go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Ftortise_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Ftortise_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Ftortise_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Ftortise_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escherize","download_url":"https://codeload.github.com/escherize/tortise_go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Ftortise_go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556181,"owners_count":26006081,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"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":"2025-10-06T03:58:52.586Z","updated_at":"2025-10-06T03:59:04.501Z","avatar_url":"https://github.com/escherize.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tortise\n\nPack and unpack directory trees and files into a single text format. This is a good way to jot down how file paths are related to each other, like when setting up a project.\n\n\u003cimg src=\"assets/tortise.png\" alt=\"tortise\" width=\"300\"\u003e\n\n## Example\n\nLet's say you have a Python project with these files:\n\n**main.py**\n```python\nfrom src.helpers.utils import add\n\nprint(add(2, 3))\n```\n\n**src/helpers/utils.py**\n```python\ndef add(a, b):\n    return a + b\n```\n\nPack these files:\n```bash\ntortise pack main.py src/helpers/utils.py -o project.tortise\n```\n\nThis creates a **project.tortise** file:\n```\n\u003e main.py\nfrom src.helpers.utils import add\n\nprint(add(2, 3))\n\n\u003e src/helpers/utils.py\ndef add(a, b):\n    return a + b\n```\n\nUnpack anywhere:\n```bash\ntortise unpack project.tortise\n```\n\nThe delimiter (`\u003e` in this example) is automatically chosen to avoid conflicts with your file content. Or you can choose one with `-d` using any punctuation symbol (see [valid delimiters](https://github.com/escherize/tortise_spec#13-abnf-informative)).\n\n# Install\n\n```bash\ngo install github.com/escherize/tortise_go/cmd/tortise@latest\n```\n\n# Pack\n\n```bash\ntortise pack src/ -o my_source.tortise\n```\n\nTo stdout:\n``` bash\ntortise pack file1.go file2.go\n```\n\n## Custom delimiter\n\n```bash\ntortise pack -d \"\u003e\u003e\u003e\" src/ -o output.tortise\n```\n\n# Unpack\n\nTo this directory:\n```bash\ntortise unpack project.tortise\n```\n\nTo the `output` directory\n```bash\ntortise unpack project.tortise -o output/\n```\n\n## Format\n\nA tortise file contains multiple files separated by delimiters:\n```\n\u003e path/to/file1.txt\nfile1 content here\n\n\u003e path/to/file2.txt\nfile2 content here\n```\n\nWhen `pack`ing, The delimiter (`\u003e` in this example) is auto-detected to avoid conflicts with file content. When unpacking, the first delimiter found should be used for every file path.\n\n## Spec\n\nFull specification: https://github.com/escherize/tortise_spec\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescherize%2Ftortise_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescherize%2Ftortise_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescherize%2Ftortise_go/lists"}