Open psprint opened 1 year ago
@psprint The commit fails on the linter
https://github.com/zdharma-continuum/zinit/actions/runs/3802251129/jobs/6467549407#step:6:10
It should now pass the linter.
The commit message should be all lowercase.
The commit message should be all lowercase.
@vladdoster: fixed
@vladdoster I don't know why README.md isn't formatted, could you help?
@psprint,
What is an actual use case for this?
It's an ability to include special var-like strings like '%USER%' or '%PLUGIN%' etc. In atload'',atinit'', etc. ices and not only in atclone'' etc. ices
sob., 29 kwi 2023, 06:26 użytkownik vladislav doster < @.***> napisał:
@psprint https://github.com/psprint,
What is an actual use case for this?
— Reply to this email directly, view it on GitHub https://github.com/zdharma-continuum/zinit/pull/450#issuecomment-1528647502, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOE4CGI6TNMNH4MXX436MDXDSKA5ANCNFSM6AAAAAATMI77DU . You are receiving this because you were mentioned.Message ID: @.***>
@vladdoster Oh, I see that I've already described the feature in PR message. As for the use case, it's: e.g.: ability to just write my-%PLUGIN%
in id-as''
ice to obtain e.g.: my-dstask
, i.e.:
zinit id-as'my-%PLUGIN%' from"gh-r" sbin'*->dstask' bpick'^*import*' \
for @naggie/dstask
I think that such special vars are useful and needed from the point of view of versatility, to provide a complete support of the intentions of users (one could want such automatic plugin-name reference, for example).
@vladdoster: I've fixed the markdown in README.md (was exceeding 120 chars line lenght)
@vladdoste: Eh, mdformat is stil failing, I think that I'll give up, as I've run it without --check and then committed the result… Could you look?
Description
There are many such symbol var-like symbols:
$OSTYPE
$MACHTYPE
$CPUTYPE
$VENDOR
$HOST
$UID
(numerical user id)$GID
(group #)With this patch many has been fixed (like %ID%, %USER%, %PLUGIN% were returning empty strings, possibly breaking packages, where this undocumented feature is used) and support for load-time ices (like
atload''
, etc.) have been added.Motivation and Context
I wanted to make %SYM% more widely used, it might yield interesting use cases. Maybe some new vars can be added? README is updated to mntion the feature.
Related Issue(s)
Usage examples
For example:
output is:
How Has This Been Tested?
Types of changes
Checklist: