Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a boxstarter shell for loading modules
- Loading branch information
Showing
10 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
Resolve-Path $PSScriptRoot\*.ps1 | | ||
% { . $_.ProviderPath } | ||
|
||
Export-ModuleMember Write-BoxstarterMessage, | ||
Start-TimedSection, | ||
Stop-TimedSection, | ||
Enter-BoxstarterLogable, | ||
Out-BoxstarterLog, | ||
Log-BoxstarterMessage, | ||
Test-Admin, | ||
Invoke-FromTask, | ||
Get-IsRemote, | ||
Confirm-Choice, | ||
Create-BoxstarterTask, | ||
Remove-BoxstarterTask, | ||
Write-BoxstarterLogo, | ||
Get-CurrentUser, | ||
Get-IsMicrosoftUpdateEnabled | ||
Export-ModuleMember Write-BoxstarterMessage, Start-TimedSection, Stop-TimedSection, Enter-BoxstarterLogable, Out-BoxstarterLog, Log-BoxstarterMessage, Test-Admin, Invoke-FromTask, Get-IsRemote, Confirm-Choice, Create-BoxstarterTask, Remove-BoxstarterTask, Write-BoxstarterLogo, Get-CurrentUser, Get-IsMicrosoftUpdateEnabled | ||
|
||
Export-ModuleMember -Variable Boxstarter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
$here = Split-Path -parent $MyInvocation.MyCommand.Definition | ||
Resolve-Path $here\Boxstarter.*\*.psd1 | | ||
% { Import-Module $_.ProviderPath -DisableNameChecking -Force -ErrorAction SilentlyContinue } | ||
Import-Module $here\Boxstarter.Common\Boxstarter.Common.psd1 -Function Test-Admin | ||
|
||
if(!(Test-Admin)) { | ||
Write-BoxstarterMessage "Not running with administrative rights. Attempting to elevate..." | ||
$command = "-ExecutionPolicy bypass -noexit -command &$here\BoxstarterShell.ps1" | ||
Start-Process powershell -verb runas -argumentlist $command | ||
Exit | ||
} | ||
|
||
$Host.UI.RawUI.WindowTitle="Boxstarter Shell" | ||
cd $env:SystemDrive\ | ||
Write-Output @" | ||
Welcome to the Boxstarter shell! | ||
The Boxstarter commands have been imported from $here and are available for you to run in this shell. | ||
You may also import them into the shell of your choice. | ||
Here are some commands to get you started: | ||
Install a Package: Install-BoxstarterPackage | ||
Create a Package: New-BoxstarterPackage | ||
Build a Package: Invoke-BoxstarterBuild | ||
Enable a VM: Enable-BoxstarterVM | ||
For Command help: Get-Help <Command Name> -Full | ||
For Boxstarter documentation, source code, to report bugs or participate in discussions, please visit http://boxstarter.org | ||
"@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
try { | ||
Write-ChocolateySuccess "Boxstarter" | ||
Write-Host "To load all Boxstarter Modules immediately, just enter 'BoxstarterShell'." -ForegroundColor Yellow | ||
} catch { | ||
Write-ChocolateyFailure "Boxstarter" "$($_.Exception.Message)" | ||
throw | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.