github.com/Benchkram/bob@v0.0.0-20220321080157-7c8f3876e225/cli/cli.go (about)

     1  package cli
     2  
     3  var _stopProfiling func()
     4  
     5  func stopProfiling() {
     6  	if _stopProfiling != nil {
     7  		_stopProfiling()
     8  	}
     9  }
    10  
    11  func Execute() error {
    12  	defer stopProfiling()
    13  	return rootCmd.Execute()
    14  }