Must return a fresh instance of cmds each time.
(t *testing.T)
| 82 | |
| 83 | // Must return a fresh instance of cmds each time. |
| 84 | func getRoot(t *testing.T) *serpent.Command { |
| 85 | t.Helper() |
| 86 | |
| 87 | var root cli.RootCmd |
| 88 | rootCmd, err := root.Command(root.AGPL()) |
| 89 | require.NoError(t, err) |
| 90 | |
| 91 | return rootCmd |
| 92 | } |
no test coverage detected