{"id":15521894,"url":"https://github.com/crossoverjie/btb","last_synced_at":"2025-08-26T08:06:46.479Z","repository":{"id":54372669,"uuid":"317626145","full_name":"crossoverJie/btb","owner":"crossoverJie","description":"☄️ A cli tool for blog toolbox.","archived":false,"fork":false,"pushed_at":"2021-02-23T06:20:34.000Z","size":33,"stargazers_count":18,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T04:19:05.412Z","etag":null,"topics":["blog","blog-toolbox","cli","golang"],"latest_commit_sha":null,"homepage":"","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/crossoverJie.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}},"created_at":"2020-12-01T18:04:20.000Z","updated_at":"2023-08-08T14:10:31.000Z","dependencies_parsed_at":"2022-08-13T13:40:52.624Z","dependency_job_id":null,"html_url":"https://github.com/crossoverJie/btb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/crossoverJie/btb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossoverJie%2Fbtb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossoverJie%2Fbtb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossoverJie%2Fbtb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossoverJie%2Fbtb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crossoverJie","download_url":"https://codeload.github.com/crossoverJie/btb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crossoverJie%2Fbtb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272192669,"owners_count":24889452,"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-08-26T02:00:07.904Z","response_time":60,"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":["blog","blog-toolbox","cli","golang"],"created_at":"2024-10-02T10:38:27.469Z","updated_at":"2025-08-26T08:06:46.457Z","avatar_url":"https://github.com/crossoverJie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n☄️A command line tool for blog toolbox.\n\n\u003e Version of `Java`: [https://github.com/crossoverJie/blog.toolbox](https://github.com/crossoverJie/blog.toolbox)\n\n```shell script\n$ btb -m b -mp \"/opt/data/md/\" -dp \"/opt/data/md/images/\"\nDownLoading: /Users/chenjie/Downloads/movie/test1/cicada5.md 2 / 2 \u003c-------------------------------------\u003e 0 p/s 100.00%\nDownLoading: /Users/chenjie/Downloads/movie/cicada4.md 2 / 2 \u003c-------------------------------------------\u003e 0 p/s 100.00%\nDownLoading: /Users/chenjie/Downloads/movie/cicada1.md 3 / 3 \u003c-------------------------------------------\u003e 1 p/s 100.00%\nDownLoading: /Users/chenjie/Downloads/movie/cicada2.md 3 / 3 \u003c-------------------------------------------\u003e 1 p/s 100.00%\nDownLoading: /Users/chenjie/Downloads/movie/cicada3.md 3 / 3 \u003c-------------------------------------------\u003e 1 p/s 100.00%\nDownLoading: /Users/chenjie/Downloads/movie/test1/cicada6.md 3 / 3 \u003c-------------------------------------\u003e 1 p/s 100.00%\nSuccessful handling of [6] files.\n```\n\n[![asciicast](https://asciinema.org/a/ftFt2WZDx3PV4VQFzZZyw0wSl.svg)](https://asciinema.org/a/ftFt2WZDx3PV4VQFzZZyw0wSl)\n\n# Install\n```shell script\ncurl -fsSL https://raw.githubusercontent.com/crossoverJie/btb/master/install.sh | bash\n```\n\n## Local installation\n\n```shell script\ngit clone https://github.com/crossoverJie/btb.git\ncd btb\nmake release\n```\n![](https://tva1.sinaimg.cn/large/008eGmZEly1gnwu89bf8vj30ia04iq3f.jpg)\n\nIt will generate binary files for different platforms.\n\n# Usage\n\n## MacOS \u0026 Linux\n\n```shell script\n# Backup\nbtb -m b -mp \"/opt/data/md/\" -dp \"/opt/data/images/\"\n\n# Replace\nbtb -m r -mp \"/opt/data/md/\" -dp \"/opt/data/images/\" -tk \"abc123\"\n```\n\n## Windows\n\n```shell script\n# Backup\n./btb.exe -m b -mp \"/opt/data/md/\" -dp \"/opt/data/images/\"\n\n# Replace\n./btb.exe -m r -mp \"/opt/data/md/\" -dp \"/opt/data/images/\" -tk \"abc123\"\n```\n\n# Help\n```shell script\nNAME:\n   btb - Help you backup and replace your blog's images\n\nUSAGE:\n   btb [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --model value, -m value            Operating mode; r:replace, b:backup (default: b)\n   --download-path value, --dp value  The path where the image is stored (default: \"/opt/data\")\n   --markdown-path value, --mp value  The path where the markdown file is stored (default: \"/opt/data\")\n   --token value, --tk value          Upload token (default: \"/opt/data\")\n   --help, -h                         show help (default: false)\n2021/02/23 14:10:17 Required flags \"model, dp, mp, tk\" not set\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossoverjie%2Fbtb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrossoverjie%2Fbtb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossoverjie%2Fbtb/lists"}