Update to use stream from factory instead of streams param for `cmd/violations.go`
We need to update violations.go to use GetIOStream() from the factory param instead of passing streams as a param and update the test accordingly.
Edited by Rehan Khan