Skip to content
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

updating Out-* commands with -NoNewLine per Issue 1739 #1846

Merged
merged 3 commits into from
Nov 14, 2017
Merged

updating Out-* commands with -NoNewLine per Issue 1739 #1846

merged 3 commits into from
Nov 14, 2017

Conversation

sdwheeler
Copy link
Contributor

@sdwheeler sdwheeler commented Nov 9, 2017

updating Out-* commands with -NoNewLine per Issue #1739

Version(s) of document impacted

  • Impacts 6 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

@saldana
Copy link
Contributor

saldana commented Nov 9, 2017

✅ Validation status: passed

File Status Preview URL Details
reference/3.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/6/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/6/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@sdwheeler
Copy link
Contributor Author

@zjalexander Please review and merge.

Copy link
Contributor

@zjalexander zjalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sniff I love the smell of cleaned-up documentation in the morning.
There's a few inconsistencies. I'll talk to you about whether it's easier to fix them now or to let them sit for a while.

## EXAMPLES

### Example 1
```

```powershell
PS C:\> add-content -path *.txt -exclude help* -value "END"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other versions you cased the examples, but missed these.


Stream is a dynamic parameter that the FileSystem provider adds to the Add-Content cmdlet. This parameter works only in file system drives.
Adds the content to the specified alternate data stream. If the stream does not yet, exist, Add-Content creates it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed some semantic linebreaks here

Specifies the path to the output file.
Unlike **FilePath**, the value of the **LiteralPath** parameter is used exactly as it is typed.
Unlike *FilePath*, the value of the *LiteralPath* parameter is used exactly as it is typed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the style guide, we have the following:

Property names and parameter names should be in bold

Add-Content [-Value] <Object[]> [-PassThru] -LiteralPath <String[]> [-Filter <String>] [-Include <String[]>]
[-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [-UseTransaction]
[-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>] [<CommonParameters>]
```

## DESCRIPTION
The **Add-Content** cmdlet appends content to a specified item or file.

The Add-Content cmdlet appends content to a specified item or file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, according to the style guide:

When talking about a cmdlet in paragraph, use ` to highlight cmdlet names

@saldana
Copy link
Contributor

saldana commented Nov 13, 2017

❌ Validation status: errors

File Status Preview URL Details
❌Error Details

  • [Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/PowerShell/PowerShell-Docs, working directory: W:\v1ju-s, target branch: staging, target branch commit: b04197f, source branch: 6809f03c7826ebcfb443fe6e60fe46e6/sdw-issue1739, source branch commit: .

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@saldana
Copy link
Contributor

saldana commented Nov 13, 2017

✅ Validation status: passed

File Status Preview URL Details
reference/3.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Security/Set-Acl.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Format-Custom.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Format-Table.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Format-Wide.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/3.0/Microsoft.PowerShell.Utility/Write-Progress.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Security/Set-Acl.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Format-Custom.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Format-Table.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Format-Wide.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Utility/Write-Progress.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Security/Set-Acl.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Format-Custom.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Format-Table.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Format-Wide.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Utility/Write-Progress.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Format-Custom.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Format-Table.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Format-Wide.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Utility/Write-Progress.md ✅Succeeded
reference/6/Microsoft.PowerShell.Management/Add-Content.md ✅Succeeded
reference/6/Microsoft.PowerShell.Management/Set-Content.md ✅Succeeded
reference/6/Microsoft.PowerShell.Security/Set-Acl.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Format-Custom.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Format-Table.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Format-Wide.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Out-File.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Write-Host.md ✅Succeeded
reference/6/Microsoft.PowerShell.Utility/Write-Progress.md ✅Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@zjalexander zjalexander merged commit e46d3a1 into MicrosoftDocs:staging Nov 14, 2017
@sdwheeler sdwheeler deleted the sdw-issue1739 branch November 21, 2017 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants