Skip to content

Commit

Permalink
minor refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
ugol committed Jun 7, 2023
1 parent 7cf1368 commit 8377bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/emitterCreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ var duration time.Duration
var preload int
var valueTemplate string
var keyTemplate string

// var outputTemplate string //@TODO FIX
var outputTemplate string
var output string
var topic string
var kcat bool
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type JsonConfig struct {
}

var savedConfigurations map[string]configuration.Configuration
var outputTemplate = "{{.K}},{{.V}}"

var serverCmd = &cobra.Command{
Use: "server",
Expand Down Expand Up @@ -121,6 +120,7 @@ func handleData(w http.ResponseWriter, r *http.Request) {
}

func init() {
rootCmd.AddCommand(serverCmd)
//@TODO enable when refactored
//rootCmd.AddCommand(serverCmd)
serverCmd.Flags().IntP("port", "p", 8080, "Port for the server")
}

0 comments on commit 8377bcd

Please sign in to comment.