mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
feat(partnerctl): add path prompt with completion and validation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user