xbps icon indicating copy to clipboard operation
xbps copied to clipboard

bin/xbps-alternatives: add repository mode to list repo alternatives

Open Duncaen opened this issue 5 years ago • 3 comments

Duncaen avatar Oct 14 '20 12:10 Duncaen

xbps-alternatives -Rl produces https://gist.github.com/Duncaen/578435c3619c372ee2463ef79dbd5edb.

This also works for specific groups:

$ ./bin/xbps-alternatives/xbps-alternatives -Rlg vim
vim
 - gvim-8.2.1666_2
  - vim:/usr/bin/gvim
 - gvim-huge-8.2.1666_2
  - vim:/usr/bin/gvim-huge
 - neovim-0.4.4_1
  - vim:/usr/bin/nvim
  - vim.1:/usr/share/man/man1/nvim.1
 - vim-8.2.1666_2
  - vim:/usr/bin/vim-normal
 - vim-huge-8.2.1666_2
  - vim:/usr/bin/vim-huge
 - vim-x11-8.2.1666_2
  - vim:/usr/bin/vim-x11
$ # without -R
$ ./bin/xbps-alternatives/xbps-alternatives -lg vim
vim
 - vim (current)
  - vim:/usr/bin/vim-normal

Duncaen avatar Oct 14 '20 12:10 Duncaen

This pull request introduces 1 alert when merging 8052917a45433153e0c4fb74cd5c25e44f42a68a into 05ff04a0fb86dfcec770260326a623b5a7d1f914 - view on LGTM.com

new alerts:

  • 1 for Empty branch of conditional

lgtm-com[bot] avatar Oct 14 '20 12:10 lgtm-com[bot]

this looks like it would fix my issue (#499), but it just exits without doing anything:

$ LD_LIBRARY_PATH=./lib/ bin/xbps-alternatives/xbps-alternatives -dRlg vim 
[DEBUG] XBPS: 0.60 API: 20200423 GIT: a9c3af43
[DEBUG] Processing configuration directory: /usr/local/etc/xbps.d
[DEBUG] Processing system configuration directory: /usr/local/share/xbps.d

classabbyamp avatar Sep 12 '23 23:09 classabbyamp