TheLocehiliosan / yadm

Yet Another Dotfiles Manager

Home Page:https://yadm.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`yadm config local.classes`

tkna91 opened this issue · comments

Is your feature request related to a problem? Please describe.

I have a script that I use in ~/.config/yadm/bootstrap.d/* that checks the class of that machine with the following command and processes it accordingly.

yadm config local.class

Multiple classes have been implemented in #304, but there doesn't appear to be a command to check for them yet. Sorry if there is.

Describe the solution you'd like

It would be useful to have a command like the following.

yadm config local.classes

Describe alternatives you've considered

Currently the following command does the same thing.
It would be useful if this were a standard feature.

alias ycls="grep class ~/.share/yadm/repo.git/config | sed -e 's@^.* = @@g '"

Additional context

#185

I haven't tried, but you could test if yadm config --get-all local.class works.

I was able to use it. Thank you!

$ grep class ~/.share/yadm/repo.git/config | sed -e 's@^.* = @@g'
thic
main
$ yadm config --get-all local.class
thic
main
$

I'm reopening it as it may be relevant to creating documents and other tasks. Sorry for closing it without permission.
Please close it if there is no problem.

I've updated the website documentation to include this info.