Interacting with Users in the Terminal: A Guide to Using %Library.Prompt in IRIS
Have you ever wondered how commands like ^DATABASE engage users in the terminal? Or perhaps you're writing an automation routine and want ways to specify options directly from the terminal. Thankfully, the %Library.Prompt class in IRIS offers a straightforward way to do so!
String Input
For basic input, such as asking the user to provide a filepath or namespace, use the following code:
set status = ##class(%Library.Prompt).GetString("Input filepath:", .path)