Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Nov 8, 2019
1 parent 0700337 commit e6c010a
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 70 deletions.
16 changes: 3 additions & 13 deletions PSCalendar.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RootModule = 'PSCalendar.psm1'

# Version number of this module.
ModuleVersion = '1.8.0'
ModuleVersion = '1.9.0'

# Supported PSEditions
CompatiblePSEditions = @("Desktop", "Core")
Expand Down Expand Up @@ -64,12 +64,7 @@
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = If ($PSedition -eq 'Core') {
'Get-Calendar', 'Show-Calendar'
}
else {
'Get-Calendar', 'Show-Calendar', 'Show-GuiCalendar'
}
FunctionsToExport = 'Get-Calendar', 'Show-Calendar', 'Show-GuiCalendar'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
Expand All @@ -78,12 +73,7 @@
VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = if ($PSEdition -eq 'Core') {
'cal', 'scal'
}
else {
'cal', 'scal', 'gcal'
}
AliasesToExport = 'cal', 'scal', 'gcal'

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down
1 change: 0 additions & 1 deletion PSCalendar.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#requires -version 5.1

#region main code

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ This command is in essence a "wrapper" function for `Get-Calendar`.

## [Show-GUICalendar](docs/Show-GuiCalendar)

Finally, you can display a graphical calendar using a WPF-based script. The function runs the calendar-related code in a runspace so it does not block your prompt. You can display up to 3 months and specify dates to highlight.
Finally, you can display a graphical calendar using a Windows Presentation Foundation (WPF) based script. The function runs the calendar-related code in a runspace so it does not block your prompt. You can display up to 3 months and specify dates to highlight.

```powershell
PS C:\> Show-GuiCalendar 12/2018 2/2019 -highlight 12/24/18,12/25/18,12/31/18,1/1/19,1/18/19,2/14/19,2/22/19
```

![show-guicalendar](assets/show-guicalendar.png)

The calendar form is transparent. But you should be able to click on it to drag it around your screen. You can also use the + and - keys to increase or decrease the calendar's opacity. Be aware that if you close the PowerShell session that launched the calendar, the calendar too will close. This function requires Windows PowerShell.
The calendar form is transparent. But you should be able to click on it to drag it around your screen. You can also use the + and - keys to increase or decrease the calendar's opacity. Be aware that if you close the PowerShell session that launched the calendar, the calendar too will close.

This function requires the WPF-related assemblies. It should work in Windows PowerShell. For PowerShell Core and later it might or might not work depending on your platform. You will receive a warning if any incompatibility is detected.

## Potential Issues

I have tried to make this module culture aware. Testing across cultures is not an easy process. If you encounter a problem and are not running PowerShell under the EN-US culture, run the command you are trying to use with -Verbose and post the results in a new issue.

last updated 2019-08-21 14:31:25Z UTC
last updated 2019-11-08 19:17:27Z UTC
Loading

0 comments on commit e6c010a

Please sign in to comment.