-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Client spec: Clarify behavior of special platforms #7528
Comments
Thanks @niklasmohrin for creating this issue! I agree, this should be clarified. I think that treating |
Ah, great spot here. I wrote the original spec, so this is probably my fault as I probably didn't think of / foresee this problem at the time - so sorry about that haha 😅 This probably means that technically this is undefined behaviour in the context oft he current specification. Indeed, we should absolutely clarify this. Both of those solutions would work - which one would you prefer? I feel like option 2 would be more semantically correct here since Alternatively, we could update the spec to:
I feel like this option might make it cleaner and reduce confusion? Which solution would you prefer @dbrgn and @niklasmohrin? |
Hm, if that's up for discussion, your suggestion 2 ( |
I personally don't like the "all = current" approach, I would be fine with |
PR: #7561 |
If a client wants to list all pages, something like a `--list-all` command is the better approach. See discussion in tldr-pages#7528 and tldr-pages#7561.
#7561 was merged! So this issue can be closed. |
Hey everyone, I am back with another client spec topic 😅
In our effort to make tealdeer behave closer to the client specification, we came to adding support for
tldr --list --platform all
as described in the row for the--list
flag in the Arguments table. While the behavior for--list --platform all
is clear to us, we don't agree on how the platformall
should behave when used in other contexts like simple page lookup. Mainly, there are two different approaches that came up so far:all
behaves like the current platform / as if no platform was specified at all, but for--list
we keep in mind whether it was actuallyall
or not.--platform all
only for--list
and error if the special platform is passed for other uses.(some arguments for either side may be found in the linked comment)
I saw that the platform
all
is in the spec since the beginning (#2706) and there have been other issues about the behavior when several (independent) subsystems are used together (#4290). While I don't necessarily agree with all the details in the latter, I think that the specification should specify behavior for the special platform type and its meaning in all contexts in the platform section and explain the desired behavior. In a more general sense, the Arguments table should at least list all the possible values for each flag in the row of that flag itself - it was rather unintuitive to find a mention of--platform all
for me at first.Thank you for your work, I hope we can work something out :)
The text was updated successfully, but these errors were encountered: