Docs: Command samples vs. shells #2191
Replies: 4 comments 26 replies
-
Beta Was this translation helpful? Give feedback.
-
We should check how our help is rendered across the different terminals and shells. If the current rich format isn't helpful, we should definitely simplify it. Having comparable samples (shell vs. terminal vs. OS) would help us understand the differences and move forward. |
Beta Was this translation helpful? Give feedback.
-
We've discussed this previously and after asking the community we decided to make it configurable. This will become available when #2146 is merged. |
Beta Was this translation helpful? Give feedback.
-
Since it would be a breaking change, we could consider it for v4. Before we decide whether we should do it and how, we should have a look at other tools. Like you mentioned, PowerShell has a standardized way of doing it. But CLI for Microsoft 365 is not a PowerShell module and can be also used on other shells that might not share the same philosophy. So before deciding on a solution, let's have a look at other CLIs and how they handle that. |
Beta Was this translation helpful? Give feedback.
-
In her PR #2167, @LuiseFreese brought up a good point that the command samples we show in our docs assume that you run them in *sh shells. When you try to use them with PowerShell, you get errors because PowerShell expects values to be enclosed in
"
rather than'
.How should we handle it to give our users the best experience? Using
"
would probably work on any shell, but it decreases readability of the examples due to escaping. On the other hand, it gives our users ready-to-use code.What do you think @pnp/cli-for-microsoft-365-maintainers?
Beta Was this translation helpful? Give feedback.
All reactions