And, no criticism at creating your own implementation, but it's very, very far from the first CLI-clipboard integration.
If it makes you feel any better, I've coded up my own solutions to several problems, only to discover existing, and better, solutions myself. Multiple times.