Skip to content

Commit 0f39faf

Browse files
committed
feat(core): enhance command-line interface and documentation
- Add detailed README files in both Chinese and English with comprehensive project documentation - Improve CLI help texts and command grouping (Basic, Message, Service, Code, Database) - Enhance `config`, `gorm gen`, and `gorm migrate` command descriptions - Introduce long-form help messages for better user guidance - Update Makefile to support cross-platform cleaning of generated files - Add .DS_Store to .gitignore for macOS users
1 parent e16dd60 commit 0f39faf

File tree

23 files changed

+1223
-223
lines changed

23 files changed

+1223
-223
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ go.work.sum
3131
# Editor/IDE
3232
.idea/
3333
.vscode/
34+
.DS_Store
3435

3536
# generated files
3637
*.pb.go

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ EXPOSE 8080 9090
4646

4747
# 运行应用
4848
ENTRYPOINT ["/usr/local/bin/rabbit"]
49-
CMD ["run"]
49+
CMD ["run"]

Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,17 @@ clean:
184184
@echo "Cleaning up"
185185
rm -rf bin
186186
rm -rf internal/biz/do/query
187-
rm -rf internal/biz/vobj/*__string.go
188-
rm -rf internal/conf/*.pb.go
189-
rm -rf pkg/api/*/*.pb.go
190-
rm -rf pkg/api/*/*.pb.gw.go
191-
rm -rf pkg/enum/*.pb.go
192-
rm -rf pkg/merr/*.pb.go
193-
rm -rf pkg/config/*.pb.go
187+
ifeq ($(GOHOSTOS), windows)
188+
@echo "Cleaning generated files (Windows)"
189+
$(Git_Bash) -c "find . -name '*__string.go' -type f -delete"
190+
$(Git_Bash) -c "find . -name '*.pb.go' -type f -delete"
191+
$(Git_Bash) -c "find . -name '*.pb.gw.go' -type f -delete"
192+
else
193+
@echo "Cleaning generated files"
194+
find . -name '*__string.go' -type f -delete
195+
find . -name '*.pb.go' -type f -delete
196+
find . -name '*.pb.gw.go' -type f -delete
197+
endif
194198

195199
# show help
196200
help:

0 commit comments

Comments
 (0)