Giter Site home page Giter Site logo

Add "default command" behavior about mbt HOT 2 OPEN

mbtproject avatar mbtproject commented on May 18, 2024
Add "default command" behavior

from mbt.

Comments (2)

buddhike avatar buddhike commented on May 18, 2024

Thanks @sergey-ostapenko

Whilst I was working on the first implementation of run-in command, I thought about making it more general purpose like this:

mbt run-in branch ./custom.sh arg1 arg2 arg3
mbt run-in commit <sha> npm run blah
...

That way, you could run any executable without needing to change the spec files. This would be very convenient to the user. However, you loose the visibility in the version control system.
I wonder if this proposal would fall into the same category.

What do you think?

from mbt.

sergey-ostapenko avatar sergey-ostapenko commented on May 18, 2024

@BuddySpike Yes, I think it will work great when you have set of very very similar projects.
The only difference here - you cannot alter command behavior for special cases. Let's consider the following workflow:

  1. You running the command mbt run-in branch --command test
  2. If such command is defined, the step will be executed according to the configuration.
  3. If command is not defined and there is default command handler - it will be used.
  4. If no command and no default handler - command will be reported as skipped for the module.

Also it is not true that we will lose possibility to track changes in source control: script files along with build configurations will be more than enough to track the history.

from mbt.

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.