From 4a4d72953e81eb5326d17a2808bf4d30ffddabb9 Mon Sep 17 00:00:00 2001 From: ysicing Date: Wed, 20 Mar 2024 15:16:58 +0800 Subject: [PATCH] chore: refactor CLI code and remove unnecessary files - 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 --- Taskfile.yml | 2 +- cli/README.md | 5 ----- cli/cmd/zt/main.go | 23 ----------------------- cli/go.mod | 3 --- docs/docs.go | 4 ++-- 5 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 cli/README.md delete mode 100644 cli/cmd/zt/main.go delete mode 100644 cli/go.mod diff --git a/Taskfile.yml b/Taskfile.yml index 9d35804..a2c37e9 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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 diff --git a/cli/README.md b/cli/README.md deleted file mode 100644 index d1703a3..0000000 --- a/cli/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## 禅道命令行工具zt - -``` -go install github.com/zheng-ji/ztcli@latest -``` diff --git a/cli/cmd/zt/main.go b/cli/cmd/zt/main.go deleted file mode 100644 index 5e0b2d9..0000000 --- a/cli/cmd/zt/main.go +++ /dev/null @@ -1,23 +0,0 @@ -// -// Copyright 2024, zentao -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -package main - -import "fmt" - -func main() { - fmt.Println("Hello, Zentao Cli!") -} diff --git a/cli/go.mod b/cli/go.mod deleted file mode 100644 index 749792f..0000000 --- a/cli/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/easysoft/go-zentao/cli - -go 1.22.1 diff --git a/docs/docs.go b/docs/docs.go index 6f19210..55ad424 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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"