【发布时间】:2021-03-16 23:28:38
【问题描述】:
所以我正在尝试显示用于自用的 powershell 脚本的命令。我使用 txt 文件作为列表的来源。 txt文件是这样格式化的;
command (* is input)| description
----------------------------------------------------
pack | opens folder pack
c * / cpp * | copies mingw command to compile
code | reveals source
copy * | copies input
现在;我有一个名为的函数,可以打印出这个 txt 文件,函数就是这个;
Function help{
Write-Host (get-content -path {file-path})
}
但是,在终端中,输出看起来像这样;
command (* is input)| description ---------------------------------------------------- pack | opens folder pack * / cpp * | copies mingw command to compile code
我该如何解决这个问题?
【问题讨论】:
标签: powershell txt