Skip to content

Commit

Permalink
Squashing history
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Jun 29, 2023
0 parents commit 7880f68
Show file tree
Hide file tree
Showing 52 changed files with 8,046 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: 🪲 Bug Report
description: Report a bug or problem.
title: "[Bug]: "
labels: ["bug","triage"]
assignees:
- jdhitsolutions
body:
- type: markdown
attributes:
value: "## Thank you for bringing this to our attention."
- type: textarea
id: description
attributes:
label: Describe the problem
description: Please describe the bug or problem including the exact syntax you are using and any error or warning messages.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expectation
description: What did you expect to happen?
- type: textarea
id: additional-info
attributes:
label: Additional Information
description: Do you have any additional information or context that you think will be helpful in resolving this issue?
- type: dropdown
id: psversion
attributes:
label: PowerShell version
description: What version of PowerShell are you running?
options:
- '4.0'
- '5.1'
- 6.x
- '7.0'
- '7.1'
- '7.2'
- Other
validations:
required: true
- type: dropdown
id: platform
attributes:
label: Platform
description: What operating system are you running?
options:
- Windows 10 Home
- Windows 11 Home
- Windows 10 Pro or Enterprise
- Windows 11 Pro or Enterprise
- MacOS
- Linux
- Other
- type: checkboxes
id: checks
attributes:
label: Additional Checks
description: Have you verified the following?
options:
- label: You are using the latest version of this module.
required: true
- label: You have read this repository's README file.
- label: You have read full help and examples for the command you are having problems with.
- label: You are running PowerShell in an elevated session.
- label: You are running in a traditional PowerShell console or Windows Terminal

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: README
url: https://github.com/jdhitsolutions/PSTimers/blob/master/README.md
about: Open this module's README.md file.
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: 💡Feature Request
description: Request a new feature or enhancement
title: "[Request]: "
labels: ["enhancement","triage"]
assignees:
- jdhitsolutions
body:
- type: markdown
attributes:
value: "## Thank you for bringing this to our attention."
- type: textarea
id: description
attributes:
label: Describe the request
description: Please describe your feature request or enhancement in detail. What deficiency does it address in the module? What use cases support your request?
validations:
required: true
- type: dropdown
id: psversion
attributes:
label: PowerShell version
description: What version of PowerShell are you running?
options:
- '4.0'
- '5.1'
- 6.x
- '7.0'
- '7.1'
- '7.2'
- Other
validations:
required: false
- type: dropdown
id: platform
attributes:
label: Platform
description: What operating system are you running?
options:
- Windows 10 Home
- Windows 11 Home
- Windows 10 Pro or Enterprise
- Windows 11 Pro or Enterprise
- MacOS
- Linux
- Other


44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/other-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 🤔Other Request or Question
description: Open a request for all other issues
title: "[Question]: "
labels: ["question","triage"]
assignees:
- jdhitsolutions
body:
- type: textarea
id: description
attributes:
label: Describe the question or issue
description: What is on your mind?
validations:
required: true
- type: dropdown
id: psversion
attributes:
label: PowerShell version
description: What version of PowerShell are you running?
options:
- '4.0'
- '5.1'
- 6.x
- '7.0'
- '7.1'
- '7.2'
- Other
validations:
required: false
- type: dropdown
id: platform
attributes:
label: Platform
description: What operating system are you running?
options:
- Windows 10 Home
- Windows 11 Home
- Windows 10 Pro or Enterprise
- Windows 11 Pro or Enterprise
- MacOS
- Linux
- Other


151 changes: 151 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# Changelog for PSTimers

## v2.0.0

### Changed

- Merged [PR#12](https://github.com/jdhitsolutions/PSTimers/pull/12) from @joshua-russell to update `Set-MyTimer`. His change was refined further.
- Revised how PSBoundParameters are displayed in Verbose output.
- Updates to the `PSCountdownTasks.txt` file.
- Added `-PassThru` parameter to `Stop-MyTimer` to return the timer object. The default now is to not write anything to the pipeline. **This is a breaking change**.
- Moved the import-related constructor code from the `MyTimer` class to `Import-MyTimer`. **This is a breaking change**.
- Revised `Remove-MyTimer` to remove the associated stopwatch object from `$MyWatchCollection`.
- Modified `Export-MyTimer` to export multiple timers to the same file
- Updated auto completers to wrap timer names with spaces in single quotes.
- Modified `mytimer.format.ps1xml` to highlight `MyTask` names using ANSI depending on the task status.
- Modified `mytimer.format.ps1xml` to format duration value without milliseconds.
- Modified `Get-MyTimer` to support getting timers based on status. [Issue #14](https://github.com/jdhitsolutions/PSTimers/issues/14)
- Help updates.
- Updated `README.md`.
- Moved module to version `2.0.0` due to the number of breaking changes and addition of many commands.

### Added

- Rewrote the `MyTimer` class to allow for pausing, resuming, and restarting. The class keeps an associated `[System.Diagnostics.StopWatch]` object in a separate hash table, `$MyWatchCollection`. **This is a potential breaking change**.
- Added function `Suspend-MyTimer` with an alias of `Pause-MyTimer`, and functions `Resume-MyTimer`,`Reset-MyTimer`, and `Restart-MyTimer`. [Issue #13](https://github.com/jdhitsolutions/PSTimers/issues/13)

### Fixed

- Fixed bug in `Set-MyTimer` to update the relevant hash table entries.

## v1.1.0

### Added

- Restored missing class definition for `MyTask`.

### Fixed

- Revised `Start-MyTimer` and `Get-MyTimer` to fix error with invalid output type. [Issue #11](https://github.com/jdhitsolutions/PSTimers/issues/11)

### Changed

- Modified `mytimer.format.ps1xml` to use auto sizing.
- Revised `Start-MyTimer` to display a warning if a timer with the same name has already been created.
- Updated help documentation.
- Update `README.md

## v1.0.1

- Added missing online help links.
- Help updates
- reorganized module layout.
- Modified `Start-PSCountdownTimer` to let the user specify the alert and warning time intervals and corresponding color.

## v1.0.0

- Merged [Pull Request #7](https://github.com/jdhitsolutions/PSTimers/pull/7) and [Pull Request #8](https://github.com/jdhitsolutions/PSTimers/pull/8). Thank you @joshua-russell
- Added online help links.
- Updated PSCountdown tasks.
- Reorganized module layout.
- Changed `-ProgressStyle` parameter in `Start-PSCountdown` from a dynamic parameter to a standard parameter since the original blocker on non-Windows platforms has been resolved.
- Updated `Start-PSCountdown` to use `$PSStyle` settings if detected. [Issue #10](https://github.com/jdhitsolutions/PSTimers/issues/10)
- Added `Start-PSCountdownTimer`. [Issue #1](https://github.com/jdhitsolutions/PSTimers/issues/1)
- Added `Stop-PSCountdownTimer`.
- Updated help.
- Updated `README.md`.

## v0.9.0

- Removed -All parameter from `Get-MyTimer` (Issue #6). **This is a breaking change**.
- Updated warning messages in `Get-MyTimer` (Issue #5)
- help updates

## v0.8.0

- Added property set called `History` for MyTimer object to display End value (Issue #4)
- Updated `MyTimer.format.ps1xml` to include `End` value
- Modified `Stop-MyTimer` to write result to pipeline. Removed `-PassThru` (Issue #3)
- Modified MyTimer class to not hide `End` property.
- Modified `Get-MyTimer` to take pipeline input for Name by property name
- help and documentation updates

## v0.7.1

- fixed bug with `-ProgressStyle` parameter on `Start-PSCountdown`
- added additional tasks to `PScountdowntask.txt`
- added an alias of `cls` for the `-ClearHost` parameter on `Start-PSCountdown`
- Minor help updates

## v0.7.0

- fixed bug piping a MyTimer to `Stop-MyTimer` (Issue #2)
- Added `-PassThru` parameter to `Stop-MyTimer`
- Made `-Name` parameter mandatory for `Stop-MyTimer`
- MyTimer names must be unique
- Updated about_MyTimer help documentation
- Added auto completers for MyTimer commands
- added additional entries to `PSCountdowntasks.txt`
- Renamed `-GlobalBlock` parameter in `Start-PSTimer` to `-Scriptblock` but kept original name as a parameter alias.

## v0.6.1

- file cleanup for the PowerShell Gallery
- updated license
- added additional entries to `PSCountdowntasks.txt`

## v0.6.0

- Added alias definitions to functions
- Updated manifest
- Updated help
- Renamed about help topic
- Updated README

## v0.5.1

- Added format type extension for MyTimer

## v0.5.0

- Added Description property to MyTimer
- Added `Set-MyTimer` to modify a timer object
- Added -PassThru to `Set-MyTimer`
- Modified `Get-MyTimer` to default to only running timers
- Added -All parameter to Get-MyTimer
- Updated `Import-MyTimer` to support description
- Fixed bug in `Start-MyTimer` creating multiple timers
- Updated help

## v0.4.0

- corrected markdown in about_MyTimer
- moved functions to separate file
- converted MyTimer functions to using a class-based object
- Added Get-HistoryRuntime command

## v0.3.0

- Added MyTimer commands
- Created markdown help
- Created external help

## v0.2.0

- Modified `Start-PSCountdown` take a datetime as a countdown target
- Modified `Start-PSTimer` to include title in text countdown
- Updated manifest

## v0.1.0

- initial files and functions
24 changes: 24 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MIT License

Copyright (c) 2017-2023 JDH Information Technology Solutions, Inc.


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 7880f68

Please sign in to comment.