mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* feat: add sandbox DX commands * fix: Linter errors * fix: Sandbox deny log parsing * fix: Sandbox docs * refactor: Maintain SSOT across pkg dependencies * fix: Linter errors
21 lines
337 B
Go
21 lines
337 B
Go
package sandbox
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
oldErrorExit := sandboxErrorExit
|
|
sandboxErrorExit = func(cmd *cobra.Command, err error) error {
|
|
cmd.SilenceErrors = true
|
|
cmd.SilenceUsage = true
|
|
return err
|
|
}
|
|
code := m.Run()
|
|
sandboxErrorExit = oldErrorExit
|
|
os.Exit(code)
|
|
}
|