Files
kopia/cli/profile_disabled.go
2021-07-09 21:35:00 -07:00

16 lines
361 B
Go

// +build !profiling
package cli
import "github.com/alecthomas/kingpin"
type profileFlags struct{}
func (c *profileFlags) setup(app *kingpin.Application) {
}
// withProfiling runs the given callback with profiling enabled, configured according to command line flags.
func (c *profileFlags) withProfiling(callback func() error) error {
return callback()
}