feat: add batch rename scripts for project initialization#5
feat: add batch rename scripts for project initialization#5
Conversation
|
Thanks for your contribution! You can ping me the next time or I may miss the updates. |
Add cross-platform scripts to rename template project to user's project name: - rename-project.sh for Linux/macOS (with macOS sed compatibility) - rename-project.ps1 for Windows PowerShell The scripts update: - Project name in Cargo.toml and package Cargo.toml - GitHub repository URLs in README.md and semantic.yml - Crates.io and docs.rs URLs in README.md - Badge URLs in README.md - Source directory name (template/ -> <project-name>/) - Cargo.lock package name (direct replacement for speed)
b7b4ffd to
62fe1e6
Compare
|
@gomnitrix Generally looks good. Would you like to port the logic in You can start with the following command and perhaps add a new Lines 38 to 58 in 2c696c1 |
|
I'd merge this patch first and leave the suggestion above a follow-up idea. |
|
@tisonkun Thanks for merging this PR! I’d be happy to move the logic into Now that the direction is clear, I’ll start working on a proper Thanks again for the helpful feedback and for being so encouraging. |
|
Go ahead! .. and thanks for your time and contribution :D |
Add scripts to rename template project to user-defined project name:
rename-project.shfor Linux/macOSrename-project.ps1for Windows PowerShellThe scripts update:
Cargo.tomland packageCargo.tomlREADME.mdandsemantic.ymlREADME.mdREADME.mdtemplate/->\<project-name\>/)Cargo.lockpackage nameResolves #4
Note: Developed with assistance from AI tools; manual tests performed on macOS/Linux/Windows.