W3cubDocs

/Nushell

input list for platform

Interactive list selection.

Signature

> input list {flags} (prompt)

Flags

  • --multi, -m: Use multiple results, you can press a to toggle all options on/off
  • --fuzzy, -f: Use a fuzzy select.

Parameters

  • prompt: the prompt to display

Input/output types:

input output
list<any> list<any>

Examples

Return a single value from a list

> [12345] |input list'Rate it'

Return multiple values from a list

> [BananaKiwiPearPeachStrawberry] |input list-m'Add fruits to the basket'

Return a single record from a table with fuzzy search

>ls|input list-f'Select the target'

Notes

Abort with esc or q.

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/input_list.html