Giter Club home page Giter Club logo

Comments (5)

mcandre avatar mcandre commented on July 19, 2024

As a workaround, I'm doing bundle exec cane -f *.rb; bundle exec cane -f **/*.rb. This runs cane over any .rb files directly in this directory, as well as any .rb files in deeper directories.

Ugly, but it works.

from cane.

xaviershay avatar xaviershay commented on July 19, 2024

**/*.rb includes the current directory, I'm not sure why you're running it twice. By default, cane uses the --*-glob options to control which directories to scan.

I'm not convinced that a public API expansion is necessary to do what you can already achieve easily with globbing. You can keep trying though! :)

from cane.

mcandre avatar mcandre commented on July 19, 2024

@xaviershay On my Mac, **/*.rb neglects to scan files directly in the current directory.

from cane.

xaviershay avatar xaviershay commented on July 19, 2024

what OS/shell?

from cane.

mcandre avatar mcandre commented on July 19, 2024

Mac OS X Mavericks, with builtin bash v3.0.

I managed to update bash to 4.0, and enable recursive globs, to get **/... to behave as expected.

Though it would be nice if I didn't have to use file globs, to support bash v3.0. Cane could default to recursive mode, like roodi.

from cane.

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.