Skip to content

Commit 362eef0

Browse files
committed
remove publish commands and correct formatting of example
1 parent 53f8cdb commit 362eef0

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

demos/powershellget/PowerShellGet.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ Get-InstalledScript
6565
# List available PS repositories
6666
Get-PSRepository
6767

68-
# Publish script to the PS Gallery
69-
Publish-Script -Path C:\Demo.ps1 -NuGetApiKey 1234 -Repository PSGallery -WhatIf
70-
71-
# Publish module to PS Gallery
72-
Publish-Module -Name Demo -RequiredVersion 0.1 -NuGetApiKey 1234 -Repository PSGallery -WhatIf
73-
7468
# Register a new private feed
7569
Register-PSRepository -Name "myPrivateGallery" –SourceLocation "https://www.myget.org/F/powershellgetdemo/api/v2" -PublishLocation "https://www.myget.org/F/powershellgetdemo/api/v2/Packages" -InstallationPolicy Trusted
7670

docs/learning-powershell/powershell-beginners-guide.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ PS /> Get-Help -Name Get-Process
213213

214214
It displays the examples how to use the Get-Process cmdlet.
215215
```PowerShell
216-
PS />Get-Help -Name Get-Process -Examples
216+
PS />Get-Help -Name Get-Process -Examples**
217217
```
218218

219219
If you use **-Full** parameter, for example, `Get-Help -Name Get-Process -Full`, it will display more technical information.
@@ -260,6 +260,17 @@ Mode LastWriteTime Length Name
260260
261261
```
262262

263+
Working with Objects
264+
----
265+
When cmdlets are executed in PowerShell, the output is an Object, as opposed to just text.
266+
This provides the ability to store a lot of information
267+
268+
Discovering available Methods
269+
----
270+
271+
PowerShell Functions
272+
----
273+
263274

264275
Recommended Training and Reading
265276
----

0 commit comments

Comments
 (0)