Invoke-TaskFromISE
1.0.5
This script invokes the current task from the build script being edited in
PowerShell ISE. It is invoked either in ISE or in PowerShell console.
Invoke-Build.ps1 is searched in the directory of Invoke-TaskFromISE.ps1
and then in the path.
The current task is the task at the caret line or above. If none is found
then the default task is invoked. The script is saved i
PowerShell ISE. It is invoked either in ISE or in PowerShell console.
Invoke-Build.ps1 is searched in the directory of Invoke-TaskFromISE.ps1
and then in the path.
The current task is the task at the caret line or above. If none is found
then the default task is invoked. The script is saved i
This script invokes the current task from the build script being edited in
PowerShell ISE. It is invoked either in ISE or in PowerShell console.
Invoke-Build.ps1 is searched in the directory of Invoke-TaskFromISE.ps1
and then in the path.
The current task is the task at the caret line or above. If none is found
then the default task is invoked. The script is saved if it is modified.
If the build fails when the task is invoked in ISE and the error location
is in the same build script then the caret is moved to the error position.
This script may be called directly from the console pane. But it is easier
to associate it with key shortcuts. For example, in order to invoke it by
Ctrl+Shift+T and Ctrl+Shift+B open the ISE profile:
C:\Users\...\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1
and add menu commands and shortcuts:
# Invoke task in ISE by Invoke-Build.ps1
$null = $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add(
'Invoke Task in ISE', {Invoke-TaskFromISE.ps1}, 'Ctrl+Shift+T')
# Invoke task in console by Invoke-Build.ps1
$null = $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add(
'Invoke Task in Console', {Invoke-TaskFromISE.ps1 -Console}, 'Ctrl+Shift+B')
These commands assume that Invoke-TaskFromISE.ps1 is in the path.
If this is not the case then specify the full script path there.
Show more
PowerShell ISE. It is invoked either in ISE or in PowerShell console.
Invoke-Build.ps1 is searched in the directory of Invoke-TaskFromISE.ps1
and then in the path.
The current task is the task at the caret line or above. If none is found
then the default task is invoked. The script is saved if it is modified.
If the build fails when the task is invoked in ISE and the error location
is in the same build script then the caret is moved to the error position.
This script may be called directly from the console pane. But it is easier
to associate it with key shortcuts. For example, in order to invoke it by
Ctrl+Shift+T and Ctrl+Shift+B open the ISE profile:
C:\Users\...\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1
and add menu commands and shortcuts:
# Invoke task in ISE by Invoke-Build.ps1
$null = $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add(
'Invoke Task in ISE', {Invoke-TaskFromISE.ps1}, 'Ctrl+Shift+T')
# Invoke task in console by Invoke-Build.ps1
$null = $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add(
'Invoke Task in Console', {Invoke-TaskFromISE.ps1 -Console}, 'Ctrl+Shift+B')
These commands assume that Invoke-TaskFromISE.ps1 is in the path.
If this is not the case then specify the full script path there.
Installation Options
Owners
Copyright
(c) Roman Kuzmin
Package Details
Author(s)
- Roman Kuzmin
Tags
Dependencies
This script has no dependencies.
FileList
- Invoke-TaskFromISE.nuspec
- Invoke-TaskFromISE.ps1