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: