anishathalye / anishathalye/dotbot

Named groups of tasks

未關閉
#81 10 則留言 7 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
8k
分支
320
PR 合併指標
30 天內沒有已合併 PR

描述

Something I'm currently doing is grouping related commands by their goal rather than their type, i.e. instead of having all the links together, I have:

``` yaml
#### vim ####
- shell:
- [git submodule update --init --recursive "vim/vim-plug", Installing vim-plug]
- link:
~/.vimrc: vim/.vimrc
~/.vim/autoload/plug.vim: vim/vim-plug/plug.vim

### fish ###
- link:
~/.config/fish/config.fish: fish/config.fish
```

While this works great, it leads to the output of dotbot not being as easy to parse:
- It's pretty hard to see where one goal ends and the next begins, even with the green success messages.
- The success messages aren't a great fit for repetition, it's a little weird to see "All commands have been executed" multiple times.

Given this, it would be cool to lift this sort of jobs pattern into dotbot itself, so that dotbot can intelligently group output based on the jobs. I'm thinking something like this:

``` yaml
- jobs:
vim:
- shell:
- [git submodule update --init --recursive "vim/vim-plug", Installing vim-plug]
- link:
~/.vimrc: vim/.vimrc
~/.vim/autoload/plug.vim: vim/vim-plug/plug.vim
fish:
- link:
~/.config/fish/config.fish: fish/config.fish
```

(I'm not particularly for or against the top level `jobs` task, but it seems like the easiest way to fit into the current plugin capability.)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。