Coder Social home page Coder Social logo

Comments (2)

gnustavo avatar gnustavo commented on September 25, 2024

I have just set up the got command to manage my repositories and one of the first things I missed was a more powerful way to select repositories. Tags are nice, but regexen or even plain glob patterns would be nicer still.

What do you think of consider non-numeric arguments as glob patterns matching repos by name, case insensitivelly? I mean, you could use Text::Glob to build regexes from the arguments and match them against the list of repos.

With your examples this would mean that:

  • got ls foo would match nothing
  • got ls foo* would match all three

This seems easy and intuitive, keeping it even backwards compatible with the current version, no?

Sometimes glob patterns can be a little constraining. How about treating strings between slashes are proper regexen? Like got ls /baz$/ to match foobaz and foobarabz?

Is it too forced?

from app-gitgot.

genehack avatar genehack commented on September 25, 2024

My initial reaction is you'd have to quote the repo names to make sure the shell didn't grab the glob (i.e., your example would need to be got ls 'foo*' to be safe).

My subsequent reaction is, I need to think about this more. 8^) Leaving ticket open.

from app-gitgot.

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.