Skip to content

Commit

Permalink
chore: refactor CLI code and remove unnecessary files
Browse files Browse the repository at this point in the history
- Modify the `swag` task to add the `--generatedTime` and `--packageName` flags
- Remove the `cli/README.md` file
- Remove the `cli/cmd/zt/main.go` file
- Remove the `cli/go.mod` file

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Mar 20, 2024
1 parent f0e77e1 commit 4a4d729
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tasks:
run: once
cmds:
- task: tools
- swag init -d zentao -g zentao.go
- swag init -d zentao -g zentao.go --generatedTime --packageName main

clean:
desc: clean
Expand Down
5 changes: 0 additions & 5 deletions cli/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions cli/cmd/zt/main.go

This file was deleted.

3 changes: 0 additions & 3 deletions cli/go.mod

This file was deleted.

4 changes: 2 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
// Package main Code generated by swaggo/swag at 2024-03-20 15:16:50.575068 +0800 CST m=+0.045889459. DO NOT EDIT
package main

import "github.com/swaggo/swag"

Expand Down

0 comments on commit 4a4d729

Please sign in to comment.