Giter VIP home page Giter VIP logo

Comments (8)

dirk-thomas avatar dirk-thomas commented on August 22, 2024 1

I added docs about the --workers option and its effect on stdin processing: #119.

So maybe one has to stop the execution of additional workers if subprocess.communicate in VcsClientBase

While executing all the commands sequentially that would also mostly prohibit the performance improvements achieved by multiple workers. So I don't see it being a viable alternative to --workers 1. Unfortunately I don't have a suggestion for you.

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

vcstool is currently not designed to provide stdin to any of the commands executed. Simply because I don't have a use case for this.

I am not sure how much effort it would be to implement support for user input. I would be happy to review a pull request for this.

from vcstool.

sdonnan avatar sdonnan commented on August 22, 2024

Understood. Good to know this is expected behavior.

It is certainly not an easy problem. Just piping stdin in from the user wouldn't be exceptionally useful because you would still have to enter credentials for each repo every time.

For now I'll just change the way I authenticate on remotes.

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

I will mark this as "wontfix" since I don't intend to work on this. If someone can come up with a pull request implementing this somehow I would be more than happy to review and integrate it.

from vcstool.

mhubii avatar mhubii commented on August 22, 2024

would be nice to have that feature

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

would be nice to have that feature

Please feel free to contribute a pull request.

from vcstool.

mhubii avatar mhubii commented on August 22, 2024

Do you have recommendations where to start?

from vcstool.

mhubii avatar mhubii commented on August 22, 2024

hotfix is to set number of workers to 1, e.g.

vcs import < yaml_file.repos --workers=1

So maybe one has to stop the execution of additional workers if subprocess.communicate in VcsClientBase

output, _ = proc.communicate()

from vcstool.

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.