From 9f5889478ed00fdb49dc371f182d7ce204db3259 Mon Sep 17 00:00:00 2001 From: zhaoyihang Date: Thu, 3 Apr 2025 11:45:44 +0800 Subject: [PATCH] chore: remove unused variable --- cmd/impact.go | 5 ----- veronica_example.yaml | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/impact.go b/cmd/impact.go index 25cbfe3..a16cf0b 100644 --- a/cmd/impact.go +++ b/cmd/impact.go @@ -30,7 +30,6 @@ var impactCmd = &cobra.Command{ } var ( - outputFormat string // 输出格式(json, text) oldCommit string newCommit string repo string // 仓库路径 @@ -38,9 +37,6 @@ var ( ) const ( - OutputFormatJson = "json" - OutputFormatText = "text" - ScopeAll = "all" ScopeService = "service" ) @@ -50,7 +46,6 @@ func init() { impactCmd.Flags().StringVarP(&newCommit, "new", "n", "", "new commit") impactCmd.Flags().StringVarP(&repo, "repo", "r", ".", "repo path") impactCmd.Flags().StringVarP(&scope, "scope", "s", ScopeAll, "report scope, options: all, service") - impactCmd.Flags().StringVarP(&outputFormat, "format", "f", OutputFormatJson, "output format, options: json, text") } func Impact(oldCommit, newCommit string) { diff --git a/veronica_example.yaml b/veronica_example.yaml index f3a0ee4..1c47f04 100644 --- a/veronica_example.yaml +++ b/veronica_example.yaml @@ -1,4 +1,5 @@ -version: 1.0.0-alpha +version: '1.0.0' + services: # every item is a service refresh_playlet_info: