cobraCommandView adapts *cobra.Command to the CommandView interface.
| 186 | |
| 187 | // cobraCommandView adapts *cobra.Command to the CommandView interface. |
| 188 | type cobraCommandView struct { |
| 189 | cmd *cobra.Command |
| 190 | } |
| 191 | |
| 192 | func (v cobraCommandView) Path() string { |
| 193 | return cmdpolicy.CanonicalPath(v.cmd) |
nothing calls this directly
no outgoing calls
no test coverage detected