Skip to content

Commit

Permalink
minors fixes: (#35)
Browse files Browse the repository at this point in the history
- comment that new accepted parameter are path to files
- generate mocks
- remove unused stanza in config.toml
  • Loading branch information
FrancoisPoinsot authored Jun 3, 2019
1 parent 0384154 commit 7ed6949
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 30 deletions.
10 changes: 0 additions & 10 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,14 @@
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/mitchellh/go-homedir"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.1"

[[constraint]]
name = "github.com/spf13/viper"
version = "1.0.0"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.1.4"


[[constraint]]
name = "gopkg.in/resty.v1"
version = "1.11.0"
Expand Down
30 changes: 15 additions & 15 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ import (
)

var (
url string
connector string
filePath string
configString string
sync bool
status bool
config bool
tasks bool
verbose bool
SSLInsecure bool
parallel int
SSLClientCertificate string
SSLClientPrivateKey string
url string
connector string
filePath string
configString string
sync bool
status bool
config bool
tasks bool
verbose bool
SSLInsecure bool
parallel int
SSLClientCertificate string
SSLClientPrivateKey string
)

var RootCmd = &cobra.Command{
Expand All @@ -58,6 +58,6 @@ func init() {
RootCmd.PersistentFlags().StringVarP(&url, "url", "u", "http://localhost:8083", "kafka connect URL")
RootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, `/!\ very verbose`)
RootCmd.PersistentFlags().BoolVarP(&SSLInsecure, "insecure-skip-verify", "i", false, `skip SSL/TLS verification`)
RootCmd.PersistentFlags().StringVarP(&SSLClientCertificate, "ssl-client-certificate", "C", "", `client certificate, must contain PEM encoded data`)
RootCmd.PersistentFlags().StringVarP(&SSLClientPrivateKey, "ssl-client-key", "K", "", `client private key`)
RootCmd.PersistentFlags().StringVarP(&SSLClientCertificate, "ssl-client-certificate", "C", "", `path to client certificate, must contain PEM encoded data`)
RootCmd.PersistentFlags().StringVarP(&SSLClientPrivateKey, "ssl-client-key", "K", "", `path to client private key`)
}
17 changes: 12 additions & 5 deletions lib/connectors/mock_base_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions lib/connectors/mock_high_level_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ed6949

Please sign in to comment.