mirror of
https://github.com/kopia/kopia.git
synced 2026-05-14 09:47:35 -04:00
16 lines
361 B
Go
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()
|
|
}
|