Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denji-pro/read-hosttimeout

Modification of PowerShell Read-Host that provides a timeout and default value options for user input
https://github.com/denji-pro/read-hosttimeout

powershell powershell-module

Last synced: 3 days ago
JSON representation

Modification of PowerShell Read-Host that provides a timeout and default value options for user input

Awesome Lists containing this project

README

        

# Read-HostTimeout

Emulate Read-Host with a timeout and default value

## Installation

Install to a local PowerShell modules directory

```pwsh
$ENV:PSModulePath
```

## Usage/Examples

```pwsh
Import-Module Read-HostTimeout

$foo = Read-HostTimeout -Prompt 'Ask user for input' -Default 0 -Timeout 10
```

## License

[MIT](https://choosealicense.com/licenses/mit/)