configure root Command with PersistentPostRun (#76)

This commit is contained in:
Shawn Carey
2020-04-01 22:04:54 -04:00
committed by GitHub
parent 8face0f93e
commit e259c1223a
+4 -3
View File
@@ -45,9 +45,10 @@ func init() {
}
var root = &cobra.Command{
Use: filepath.Base(os.Args[0]),
Short: "Ziti Tunnel",
PersistentPreRun: rootPreRun,
Use: filepath.Base(os.Args[0]),
Short: "Ziti Tunnel",
PersistentPreRun: rootPreRun,
PersistentPostRun: rootPostRun,
}
var interceptor intercept.Interceptor