segment

fun segment(name: String): String

The command name in kebab case: a word starts at an upper-case letter that follows a lower-case letter or a digit, and at the last letter of an upper-case run followed by a lower-case one; underscores and white space separate words too, and every letter is lowered. AddCartItem → add-cart-item, HTTPRequest → http-request, AddItemV2 → add-item-v2, add_item → add-item. Dots are kept, so a system name keeps its namespace: wow.lifecycle.RestoreAggregate → wow.lifecycle.restore-aggregate.