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

[Feature] Specify if a language instruction is specific to a Powershell version. #86

Closed
LaurentDardenne opened this issue Jul 1, 2022 · 3 comments

Comments

@LaurentDardenne
Copy link

Some language instructions are only specific from a certain version (range operator for characters, chaining operator, null coalescing, ...)
This is an information to know I think.

@LaurentDardenne
Copy link
Author

Example ( Workflow Test-Runbook { 'Commands' } ):
image

@Jawz84
Copy link
Owner

Jawz84 commented Jul 1, 2022

See also #85 - we could add a remark about the version in the .csv file?

About workflow the error that you see there is the actual parser error that is generated in trying to generate the AST, because the engine in ExplainPowerShell is 7.2.4 at this moment.
I also think that the explanation is lacking because the function keyword also does not have code to explain it yet.
We could handle the case of a workflow there, I think.

@LaurentDardenne
Copy link
Author

>>we could add a remark about the version in the .csv file?
I don't know the code, hard to say.

I was thinking more about annotating new AST classes.

For the keyword 'Workflow' it was more information on the behavior of the website.
On the web page you can also specify something like this:
ExplainPowerShell support all syntax up to version 7.2.4

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

No branches or pull requests

2 participants