GithubHelp home page GithubHelp logo

implement upstream AUR diff about rua HOT 3 CLOSED

vn971 avatar vn971 commented on July 21, 2024
implement upstream AUR diff

from rua.

Comments (3)

Morganamilo avatar Morganamilo commented on July 21, 2024

I just pushed this crate https://docs.rs/aur-fetch which may be useful to you. Better error messages is still a todo for me but it should be usable.

One slight problem is that I designed it for batch downloads. As in the helper should resolve all the deps via the RPC ahead of time, then pass all of them to this crate and download them at once. Of course doing it in multiple batches is possible but probably makes it much more annoying to use.

And here's an example binary using this crate: https://asciinema.org/a/MnMRusp1XSRo3ZR5MG7PYqlBh

from rua.

vn971 avatar vn971 commented on July 21, 2024

@Morganamilo interesting. I must note that it's a hard problem though: the ways how you can combine diffing, fetching and asking user questions is pretty broad. I'll take a look at your proposal.

from rua.

Morganamilo avatar Morganamilo commented on July 21, 2024

I built this with that in mind. It's a proper library, It never prints anything on it's own. That's up to whoever uses the crate to decide. It does support diffs both as just strings and 'views'.

The view method is pretty much a clone of how aurutils does it if you're familiar with that.

Also this isn't a proposal (otherwise this would be a PR :P) and more hey look at this. But seems as you do want diffs I'd be interested in feedback and if the crate is insufficient in any way for what you want to do.

from rua.

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.