rustyrazorblade / easy-cass-lab

Other
5 stars 4 forks source link

add nt subcommand #138

Open rustyrazorblade opened 1 month ago

rustyrazorblade commented 1 month ago

nt should run nodetool on all hosts, or a subset of hosts defined by --hosts. Should either be able to run in parallel or sequential mode. With parallel mode be sure not to garble the output.

jrwest commented 1 month ago

Should this be part of the easy-cass-lab bin (as it seems to be described) or a convenience added in env.sh?

rustyrazorblade commented 1 month ago

By subcommand I was referring to the Kotlin JCommander subcommand. However I think it would be good to also add as a convenience in env.sh.

jrwest commented 1 month ago

Ya to me it felt more at home with things like c-all. Something like nt-all but either wfm.

rustyrazorblade commented 1 month ago

Generally I think it's best to think of env.sh as a subset of what easy-cass-lab would do. The SSH / SFTP / parts are missing but that's mostly b/c I don't consider reimplementing them to be very valuable.

With the nt command, I think there's a bit more complexity of what we might want to add, such as the formatting, flags, etc, and it starts to make sense (in my mind) to implement the complex flexible bits in Kotlin and expose a simplified version in env.sh.