mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
feat(partnerctl): add details output helper for key-value prompt sections
This commit is contained in:
@@ -59,6 +59,13 @@ fun main() {
|
||||
}
|
||||
prompt.info("Port = $port")
|
||||
|
||||
prompt.details(
|
||||
"Test Details", listOf(
|
||||
"Tag A" to "Detail A",
|
||||
"Tag B" to "Detail B"
|
||||
)
|
||||
)
|
||||
|
||||
prompt.section("Confirm")
|
||||
val confirmed = prompt.confirm("Continue?", defaultValue = true)
|
||||
prompt.info("Continue = $confirmed")
|
||||
|
||||
Reference in New Issue
Block a user