mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: Rename Start / StartWithErrors to MustStart
This commit is contained in:
@@ -95,15 +95,15 @@ func init() {
|
||||
)
|
||||
}
|
||||
|
||||
func StartWithError() error {
|
||||
func Start() error {
|
||||
rootCmd.SetUsageFunc(usageFunc)
|
||||
// Make help just show the usage
|
||||
rootCmd.SetHelpTemplate(`{{.UsageString}}`)
|
||||
return rootCmd.Execute()
|
||||
}
|
||||
|
||||
func Start() {
|
||||
if err := StartWithError(); err != nil {
|
||||
func MustStart() {
|
||||
if err := Start(); err != nil {
|
||||
command.ExitWithError(command.ExitError, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user