People has anyone worked here on creating a CLI an...
# random
m
People has anyone worked here on creating a CLI and if yes what language have you preferred and Why?
a
We used Golang because it’s quick to compile and iterate on, has good cross-compilation so you can distribute to virtually all OS+architectures, and there are great libraries for building clis (eg cobra)
m
Great, would you mind sharing any helpful guide or articles you came across or learnings you had while creating one, that will be much appreciated!
Does flink cli runs on golang too?
s
Rust has some amazing libraries for CLIs - been developing a large CLI application in it for 3 years now and extremely satisfied. I wouldn't recommend writing in Python or Java/Scala - besides packaging issues you will likely quickly encounter startup times problem, and even half a second lag makes your CLI app feel sluggish and unresponsive to a user.
👍 1