cobra/command_notwin.go
Frank Schroeder 193b182195 Issue #195: Compile mousetrap only on Windows
* Create command_win.go and command_notwin.go for windows only code
* Move call to mousetrap hook into separate preExecHook() function
2015-11-24 01:52:16 +01:00

6 lines
74 B
Go

// +build !windows
package cobra
var preExecHookFn func(*Command) = nil