mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
cobra silent usage
This commit is contained in:
@ -6,14 +6,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var cmd = &cobra.Command{
|
var cmd = &cobra.Command{
|
||||||
Short: "A gRPC micro service",
|
Short: "A gRPC micro service",
|
||||||
|
SilenceUsage: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
caCert = "ca_cert"
|
caCert = "ca_cert"
|
||||||
serverAddress = "server_address"
|
serverAddress = "server_address"
|
||||||
serverCert = "server_cert"
|
serverCert = "server_cert"
|
||||||
serverKey = "server_key"
|
serverKey = "server_key"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Reference in New Issue
Block a user