question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Named groups of tasks

See original GitHub issue

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:

#### 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:

- 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 Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ghalestrilocommented, Oct 11, 2019

Great! I’m on it!

1reaction
anishathalyecommented, Jul 5, 2020

I have similar thoughts as expressed in https://github.com/anishathalye/dotbot/issues/225#issuecomment-653208889 and https://github.com/anishathalye/dotbot/issues/35#issuecomment-171951443. tl;dr I don’t really want the YAML config file to slowly grow into a programming language embedded in YAML (e.g. like Ansible). If we really do need those generic programming language constructs like conditionals, perhaps a better solution is to create a DSL embedded in a real programming language (Python, or maybe something else). It’s a tricky design decision to figure out exactly what features to include in our YAML config file. I want to spend a bit more time thinking about that before complicating the semantics of the YAML config any further. Would love to hear your thoughts on this. (I’ve been a bit busy recently; I hope to have a slightly more concrete proposal than the hypothetical examples in https://github.com/anishathalye/dotbot/issues/35#issuecomment-171951443 soon.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Group tasks or resources - Microsoft Support
Group tasks or resources to into similar categories. You can group by status date, resource assignment, costs, and much more.
Read more >
Rename Task Groups - TaskRay
In the Projects & Tasks sidebar, locate the task group that you want to rename, hover over its name, and click on the...
Read more >
How To Group Tasks in Microsoft Project in 4 Steps | Indeed.com
The ability to group tasks can be a valuable project management ... To do so, select the first row in the “Task Name”...
Read more >
Task groups - Amazon Elastic Container Service
A task group name must be 255 or fewer characters. Each task can be in exactly one group. After launching a task, you...
Read more >
Group name and Project name in Microsoft Project for the Web
Hi,. as you know, in Microsoft Project for the Web, before you can assign Resource to any Task, you must either create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found