Coder Social home page Coder Social logo

Comments (4)

jmarnold avatar jmarnold commented on June 17, 2024

How about this for a plan:

From the current directory, recursively walk up the filesystem until you find a ripple.config file. The presence of the ripple.config file denotes the root of the repository.

From the root of the repository/solution: the PARENT of that root is what we assume to be the "code" directory.

from ripple.

jeremydmiller avatar jeremydmiller commented on June 17, 2024

I agree with that, but you also have to watch how many you go up. Let's cap the number of "walks" up and say that you can only run ripple from within a folder containing a csproj file, the project directory, or the "code" directory.

I had problems in the early days where it would scan up too far and go super wonkey when it hit c:\

from ripple.

jmarnold avatar jmarnold commented on June 17, 2024

I'm thinking it'll work roughly the same way that git does if we do a shallow search for ripple.config with each walk. If you make it to the root, then you just bomb out, I think. Of course, this is all theoretical and I have no idea how it'll play out when I actually write it.

I think the shallow search for ripple.config with each walk will be cheaper than deep searching for a csproj file from the current directory.

from ripple.

jmarnold avatar jmarnold commented on June 17, 2024

Got it 777731e

from ripple.

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.