This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
DroneHelper/docs/Test-FileEncoding.md
Marco Blessing 6a314eeb48
All checks were successful
continuous-integration/drone/push Build is passing
add platyPS generated docs (#5)
#### 📖 Summary

- Adds `platyPS` generated docs
- Converted CRLF output into LF
- linked global readme file in module page

#### 📑 Test Plan

> 💡 Select your test plan for the code changes.

- [x] Tested via Drone.io pipeline
- [ ] Custom test
- [ ] No test plan

##### Details / Justification

<!-- Add your test details or justification for missing tests here. -->

#### 📚 Additional Notes

<!-- A place for additional detail notes. -->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: #5
2022-07-14 11:22:06 +02:00

1.3 KiB

external help file Module Name online version schema
ModuleRoot-help.xml DroneHelper 2.0.0

Test-FileEncoding

SYNOPSIS

Returns true if the given file is written in a valid encoding

SYNTAX

Test-FileEncoding [-Path] <String> [[-Encoding] <String>] [<CommonParameters>]

DESCRIPTION

Test the given file against the encoding regex and returns true or false

EXAMPLES

EXAMPLE 1

Test-FileEncoding -Path './testfile.txt'

PARAMETERS

-Encoding

Optional custom encoding regex string. Default is (utf8|ascii|xml).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: (utf8|utf-8|ascii|xml)
Accept pipeline input: False
Accept wildcard characters: False

-Path

Relative or full path to an existing file.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

[none]

OUTPUTS

[bool]

NOTES