Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working with just #144

Open
nim65s opened this issue Jun 27, 2023 · 3 comments
Open

working with just #144

nim65s opened this issue Jun 27, 2023 · 3 comments

Comments

@nim65s
Copy link

nim65s commented Jun 27, 2023

Hello !

Thanks a lot for this project :D

I was wondering if there are ways to integrate bacon with just, or if something is planned.

To provide more context, I often have to write a justfile with many commands, and bacon is a super nice tool to run some of those commands automatically, so I have to write a bacon.toml which just expose the list of the just command I need.

Here is an example on a toy project : justfile / bacon.toml.

This is a bit of boilerplate that I have to write and adapt again and again in every project (and maintain), for very little added value, while I think we could instead have just a flag for bacon that expose commands provided by just.

@Canop
Copy link
Owner

Canop commented Jun 27, 2023

There's nothing planned, because I never used just and nobody asked for it.

I guess there could be something specific done.

In the meantime, what about this:

[jobs.just]
command = ["just"]
need_stdout = false

You would call it like

bacon just -- check-drv

@nim65s
Copy link
Author

nim65s commented Jun 27, 2023

Thanks for your answer !

This workaround would work, but it would opt me off the ? menu, and prevent me from declaring keybindings, right ?
If this is the case, I think the workaround of just writing the boilerplate is preferable.

What I would ideally look for would probably more be like

[jobs-just]
commands  = ["check-drv", "check-esp", "clippy-drv", "clippy-esp"]

[keybindings]
t = "job-just:check-drv"
s = "job-just:check-esp"
shift-t = "job-just:clippy-drv"
shift-s = "job-just:clippy-esp"

or even a blunt import_all_commands_from_just = true

(this jobs-just / job-just / import_all_commands_from_just naming is awful, though, sorry for that)

@nim65s
Copy link
Author

nim65s commented Jun 27, 2023

Or maybe, if I manage to get a launcher which automatically open multiple bacon instances with different just commands on different pane, your solution could be the most simple one for my use case. I'll try something with https://zellij.dev/news/new-plugin-system/ to see if I can get a list of just commands and simply bacon them all.

But still, I think importing commands from just into bacon config would be a nice feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants