-
Notifications
You must be signed in to change notification settings - Fork 98
Publish-PSResource Script publishing support #642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
560835d
uninstall specify version for perf increase
anamnavi b015489
support for publishing scripts with correct ps1 parsing
anamnavi 8a808c4
check for local repo Uri not being valid before attempting to publish
anamnavi 560e8f7
have ParseScript() return boolean and take out variables as params
anamnavi 0d7db4c
check for local repo uri existing must be done against Uri.LocalPath
anamnavi 61649e6
typo fix
anamnavi 4255975
error handling for unsupported source paths
anamnavi 51c4ed7
use constant string instad of hardcoded value in code
anamnavi 4e8fa9b
clean up
anamnavi e014295
add comment
anamnavi 0034acc
better error handling and method definition for PackNupkg()
anamnavi 9debdda
resolve merge conflicts
anamnavi 88ed85a
revert changes to Uninstall tests and take from master
anamnavi 20610af
add test files for invalid script test files to test against
anamnavi b609ce6
revert changes to Get-ModuleResourcePublishedToLocalDrive() in PSGetT…
anamnavi 415ca94
fix typo
anamnavi 3a1842b
update comment
anamnavi b103ca6
cant use -AdditionalChildPath for windowsPowerShell
anamnavi 7e9efca
pull Publish -RequiredModules fix from master, merge conflicts
anamnavi 3952af9
PR feedback- add example script comment back
anamnavi f96ce55
PR feedback- remove comment
anamnavi c284f4d
remove unncessary comments in PSGEtTestUtils
anamnavi 81bcb3e
add space after .PRIVATEDATA key in test script that gets created
anamnavi b7091b0
revert unintentional change to Uninstall tests
anamnavi d1820d5
pull in changes from master, merge conflicts
anamnavi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
|
||
<#PSScriptInfo | ||
|
||
.VERSION 1.0 | ||
|
||
.GUID 3951be04-bd06-4337-8dc3-a620bf539fbd | ||
|
||
.AUTHOR | ||
|
||
.COMPANYNAME | ||
|
||
.COPYRIGHT | ||
|
||
.TAGS | ||
|
||
.LICENSEURI | ||
|
||
.PROJECTURI | ||
|
||
.ICONURI | ||
|
||
.EXTERNALMODULEDEPENDENCIES | ||
|
||
.REQUIREDSCRIPTS | ||
|
||
.EXTERNALSCRIPTDEPENDENCIES | ||
|
||
.RELEASENOTES | ||
|
||
|
||
.PRIVATEDATA | ||
|
||
#> | ||
|
||
<# | ||
|
||
.DESCRIPTION | ||
this is a test for a script that will be published remotely | ||
|
||
#> | ||
Param() | ||
|
||
|
42 changes: 42 additions & 0 deletions
42
test/testFiles/testScripts/InvalidScriptMissingDescription.ps1
This file contains hidden or 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,42 @@ | ||
|
||
<#PSScriptInfo | ||
|
||
.VERSION 1.0 | ||
|
||
.GUID 3951be04-bd06-4337-8dc3-a620bf539fbd | ||
|
||
.AUTHOR annavied | ||
|
||
.COMPANYNAME | ||
|
||
.COPYRIGHT | ||
|
||
.TAGS | ||
|
||
.LICENSEURI | ||
|
||
.PROJECTURI | ||
|
||
.ICONURI | ||
|
||
.EXTERNALMODULEDEPENDENCIES | ||
|
||
.REQUIREDSCRIPTS | ||
|
||
.EXTERNALSCRIPTDEPENDENCIES | ||
|
||
.RELEASENOTES | ||
|
||
|
||
.PRIVATEDATA | ||
|
||
#> | ||
|
||
<# | ||
|
||
.DESCRIPTION | ||
|
||
#> | ||
Param() | ||
|
||
|
37 changes: 37 additions & 0 deletions
37
test/testFiles/testScripts/InvalidScriptMissingDescriptionCommentBlock.ps1
This file contains hidden or 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,37 @@ | ||
|
||
<#PSScriptInfo | ||
|
||
.VERSION 1.0 | ||
|
||
.GUID 3951be04-bd06-4337-8dc3-a620bf539fbd | ||
|
||
.AUTHOR annavied | ||
|
||
.COMPANYNAME | ||
|
||
.COPYRIGHT | ||
|
||
.TAGS | ||
|
||
.LICENSEURI | ||
|
||
.PROJECTURI | ||
|
||
.ICONURI | ||
|
||
.EXTERNALMODULEDEPENDENCIES | ||
|
||
.REQUIREDSCRIPTS | ||
|
||
.EXTERNALSCRIPTDEPENDENCIES | ||
|
||
.RELEASENOTES | ||
|
||
|
||
.PRIVATEDATA | ||
|
||
#> | ||
|
||
Param() | ||
|
||
|
This file contains hidden or 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,43 @@ | ||
|
||
<#PSScriptInfo | ||
|
||
.VERSION 1.0 | ||
|
||
.GUID | ||
|
||
.AUTHOR annavied | ||
|
||
.COMPANYNAME | ||
|
||
.COPYRIGHT | ||
|
||
.TAGS | ||
|
||
.LICENSEURI | ||
|
||
.PROJECTURI | ||
|
||
.ICONURI | ||
|
||
.EXTERNALMODULEDEPENDENCIES | ||
|
||
.REQUIREDSCRIPTS | ||
|
||
.EXTERNALSCRIPTDEPENDENCIES | ||
|
||
.RELEASENOTES | ||
|
||
|
||
.PRIVATEDATA | ||
|
||
#> | ||
|
||
<# | ||
|
||
.DESCRIPTION | ||
this is a test for a script that will be published remotely | ||
|
||
#> | ||
Param() | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.