-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
questionA question instead of a bug or change request to clarify understandingA question instead of a bug or change request to clarify understanding
Description
Describe the bug
When using the Invoke-PSDocument command, paths with white space are causing an error where the first part of the path is being interpreted as a cmdlet/function etc.
To Reproduce
Invoke-PSDocument -Path "C:\Users\username\OneDrive - Personal\subfolder" ...
Expected behaviour
The script should execute as normal, creating the markdown docs
Error output
VERBOSE: [Invoke-PSDocument]::BEGIN
VERBOSE: [Doc] -- Getting document definitions from: C:\Users\CraigPort\OneDrive - Company\Projects\template.doc.ps1
VERBOSE: Attempting to read: .\psdocs.yml
VERBOSE: [Doc] -- InputObject is null
VERBOSE: [Doc] -- Processing: C:\Users\CraigPort\OneDrive - Company\Projects\template.doc.ps1
Invoke-PSDocument : The term 'C:\Users\CraigPort\OneDrive' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ Invoke-PSDocument -Path 'C:\Users\CraigPort\OneDrive - Company\Projec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-Error], InvokeDocumentException
+ FullyQualifiedErrorId : CommandNotFoundException,Invoke-PSDocument
VERBOSE: [Invoke-PSDocument]::END
Module in use and version (please complete the following information):
- Module: PSDocs
- Version 0.6.3
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionA question instead of a bug or change request to clarify understandingA question instead of a bug or change request to clarify understanding