+
Skip to content

Conversation

benjaminpreiss
Copy link

In case of using powershell I think it would be very helpful to give people a hint that < will not work.

@benjaminpreiss benjaminpreiss changed the title Add description for powershell Add powershell instructions for fcct usage Sep 1, 2020
`podman run -i --rm quay.io/coreos/fcct:release --pretty --strict < your_config.fcc > transpiled_config.ign`
+
.Same example as above just for powershell (`<` is a reserved char.):
`Get-Content your_config.fcc | podman run -i --rm quay.io/coreos/fcct:release --pretty --strict > transpiled_config.ign`
Copy link
Contributor

Choose a reason for hiding this comment

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

There are unfortunately a few more places in the docs where we show this stdin redirection, and I don't think it's good to duplicate all the examples. I'd suggest instead to add a TIP at the bottom here with something like:

PowerShell has a different syntax for input redirection, and < is a reserved character there. Instead, you can use the Get-Content cmdlet to read the configuration and pass it over a pipe.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, but let's provide a clear example inside that TIP.

@jlebon
Copy link
Member

jlebon commented Jul 20, 2022

@benjaminpreiss Are you still interested in tweaking this PR as suggested above?

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.

4 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载