feat(partnerctl): add path prompt with completion and validation

This commit is contained in:
2026-05-03 19:27:07 +08:00
parent 6f48c36f67
commit 729700ceb7
2 changed files with 83 additions and 0 deletions

View File

@@ -111,6 +111,12 @@ fun main() {
)
prompt.info("Selected modules = ${modules.joinToString()}")
prompt.section("Ask path")
val askPath = prompt.askPath(
label = "Ask path",
)
prompt.info("Ask path = $askPath")
prompt.section("Done")
prompt.success("Prompt demo completed.")
} catch (_: work.slhaf.partner.ctl.ui.PromptCancelledException) {