Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/denji-pro/read-hosttimeout
- Owner: denji-pro
- Created: 2024-12-11T20:06:18.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-27T23:17:09.000Z (about 1 month ago)
- Last Synced: 2024-12-28T00:19:13.521Z (about 1 month 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/)