nushell/crates/nu-command/src/platform
pwygab 01a00641f9
Allow input to take a specified number of characters (#9242)
# Description
Title; fixes #9208.


# User-Facing Changes
`input` now can specify a certain number of characters to read.

# Tests + Formatting
No CI tests; can't find a way to implement.
```
~/CodingProjects/nushell> let user_input = (input --numchar 2)                                           
~/CodingProjects/nushell> echo $user_input                                                        
te
```

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
2023-05-19 15:28:35 -05:00
..
ansi FEATURE: make the link in the ansi extra usage an ANSI link (#8795) 2023-04-07 13:39:51 -05:00
input Allow input to take a specified number of characters (#9242) 2023-05-19 15:28:35 -05:00
clear.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
dir_info.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
du.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
kill.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
mod.rs adds a list subcommand to input (interactive selections) (#8963) 2023-05-04 19:14:41 +02:00
sleep.rs Add helper method to check whether ctrl+c was pressed, adopt it (#7482) 2022-12-15 09:39:24 -08:00
term_size.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00