Skip to content

Commit

Permalink
update new project script
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Apr 13, 2022
1 parent 2960aa9 commit d223ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pink-lady 是基于 Golang web 开发框架 [gin](https://github.com/gin-gonic/g

## 使用 pink-lady 模板创建项目

点击 <https://github.com/axiaoxin-com/pink-lady/generate> 创建你的 github 项目
点击 <https://github.com/axiaoxin-com/pink-lady/generate> 创建你的 github 项目(使用该方式创建项目时,如需修改项目名称需手动修改)

或者手动本地创建:
或者手动本地创建(如想自定义项目名,推荐使用该方式)

```
bash <(curl -s https://raw.githubusercontent.com/axiaoxin-com/pink-lady/master/misc/scripts/new_project.sh)
Expand Down
4 changes: 1 addition & 3 deletions misc/scripts/new_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ main() {
exit -1
fi
echo -e "New project will be create in ${gopath}/src/"
echo -ne "Enter your new project full name: "
echo -ne "Enter your new project full name (eg. github.com/my_username/my_projname): "
read projname

# get template project
echo -e "Downloading the template..."
# git clone https://github.com/axiaoxin-com/pink-lady.git ${gopath}/src/${projname}
rm -
if !(curl https://codeload.github.com/axiaoxin-com/pink-lady/zip/master -o /tmp/pink-lady.zip && unzip /tmp/pink-lady.zip -d /tmp)
then
echo "Downloading failed."
Expand Down

0 comments on commit d223ae6

Please sign in to comment.