Code Monkey home page Code Monkey logo

Comments (7)

jyn514 avatar jyn514 commented on August 16, 2024

I'd like to set a base command other than cargo (x.py, for the rust compiler).

from bacon.

jyn514 avatar jyn514 commented on August 16, 2024

Also, x.py doesn't support --color always, but maybe I should just fix that upstream.

from bacon.

jyn514 avatar jyn514 commented on August 16, 2024

Right now the idea is to have a bacon.toml file in the project's dir but I'd like to have opinions about that.

Another option is to make the configuration part of Cargo.toml directly, the way docs.rs does it: https://docs.rs/about/metadata. But I don't have strong opinions on whether that's better or worse than bacon.toml.

from bacon.

jyn514 avatar jyn514 commented on August 16, 2024

I'd also like to set summary mode on by default. Right now it's opt-in with s, but I rarely want to see the whole error the first time I start up bacon.

from bacon.

Canop avatar Canop commented on August 16, 2024

The bacon.toml file is expected to look like this:

default_job = "check"

[jobs]

[jobs.check]
command = "cargo check --color always"

[jobs.check_windows]
command = "cargo check --target x86_64-pc-windows-gnu --color always"

[jobs.clippy]
command = "cargo clippy --color always"

[jobs.tests]
key = "t"
command = "cargo test --color always"

It stays optional and is generated with a default content (check+clippy) when running bacon --init.

To start a given job, you may do bacon --job clippy.

from bacon.

Canop avatar Canop commented on August 16, 2024

I've still not decided for

command = "cargo check --target x86_64-pc-windows-gnu --color always"

or

command = ["cargo", "check", "--target", "x86_64-pc-windows-gnu", "--color", "always"]

The latter is more powerful but so painful to type in common cases...

from bacon.

jyn514 avatar jyn514 commented on August 16, 2024

I'd prefer the second version, I don't expect many people to use the configuration file so it's ok to make it a little harder to write.

from bacon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.