Giter Site home page Giter Site logo

Comments (6)

ggilder avatar ggilder commented on June 9, 2024

I'm afraid I'm not able to reproduce the behavior you reported. I tried the script you posted, with a mock substituted for the Woody class, and running the executable with no command always ran the compile command, whether I specified --dir or not.

I put up a simplified test script here: https://gist.github.com/4298299

That can be run on its own. Could you try running that and let me know if you see different results? And if so, please let me know system and ruby version.

from commander.

DavidJRobertson avatar DavidJRobertson commented on June 9, 2024

The problem only seems to occur if the directory used with the --dir option begins with the letter d.
When I tested the application the first time I ran woody --dir demosite, and the deploy method was called, rather than compile.

With the tester.rb script you have provided:

➜  demos  ./tester.rb
initialized with .
Compile called
➜  demos  ./tester.rb --dir dwhatever
initialized with dwhatever
Deploy called

from commander.

ggilder avatar ggilder commented on June 9, 2024

Ah, so I'm guessing it has to do with the command alias then (which in your example is "d" for deploy). I'll do some more testing and see if I can narrow down the bug.

from commander.

DavidJRobertson avatar DavidJRobertson commented on June 9, 2024

I've just tried commenting out the alias lines, and now the script behaves as it should - must be something to do with the command aliases then.

from commander.

ggilder avatar ggilder commented on June 9, 2024

As it turns out, this issue was already fixed in #39 — I just hadn't released a new version incorporating it yet. I've just released 4.1.3 which should fix the issue. Please update to 4.1.3 and let me know if you still see any problems. Command aliases should also work normally.

from commander.

DavidJRobertson avatar DavidJRobertson commented on June 9, 2024

Works perfectly now, thanks.

from commander.

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.