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: 11 months ago
JSON representation
Modification of PowerShell Read-Host that provides a timeout and default value options for user input
- Host: GitHub
- URL: https://github.com/denji-pro/read-hosttimeout
- Owner: denji-pro
- Created: 2024-12-11T20:06:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T23:17:09.000Z (about 1 year ago)
- Last Synced: 2025-02-07T17:25:13.555Z (about 1 year ago)
- Topics: powershell, powershell-module
- Language: PowerShell
- Homepage: https://www.powershellgallery.com/packages/Read-HostTimeout/
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)