go-project-template/finish-template-setup.sh
2025-03-25 01:12:54 -07:00

12 lines
321 B
Bash
Executable file

#!/bin/bash
set -exuo pipefail
name="$(basename $(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd))"
sed -i "s#go-project-template.sample#${name}#g" README.md
mv go-project-template.sample.json "${name}.sample.json"
mv cmd/go-project-template "cmd/${name}"
go mod tidy
rm -rf finish-template-setup.sh