eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.46k stars 314 forks source link

added --path option to command line interface #204

Closed chaudum closed 8 years ago

chaudum commented 8 years ago

so you can specify a different path to build than the current working directory

krallin commented 8 years ago

Thanks! This looks like a good idea and the implementation is sound.

Regarding the tests:

Rather than do a lot of back and forth I've made those changes and amended your commit directly.

It's here: https://github.com/koenbok/Cactus/commit/a177332c98208ef79fcaa0af234671c862a43adf

I've also added -d as a short argument (for "dir"), since all of our other arguments have a shorthand.

Thanks again!

chaudum commented 8 years ago

@krallin cool thanks!

you're right, the changes in the test setup were just cosmetics. I though they made it more clear how the tests work, since it also took me some time to distinguish between self.test_dir and self.path. however I am totally fine with leaving it as it is, because - as you said - reduces the noise in the actual change.

christian

krallin commented 8 years ago

I guess we could rename path to site_path in tests. Would that make things clearer?

chaudum commented 8 years ago

yeah think so.