Prompt fromlist

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_prompt_fromlist

Purpose

Present a selection prompt from a supplied list.

Arguments

  • Named — options and list values accepted by the prompt parser.

Output

Displays a list prompt and records the selected value through the requested output mechanism.

Returns

  • 0 on selection; nonzero on cancellation or invalid input.

Usage

  sgnd_prompt_fromlist --labelwidth 18 "HOST|Target host|td-web|"