Fixing a small glitch in the #faircamp CLI led me into a rabbit hole today – I'm...

@freebliss@post.lurk.org

Fixing a small glitch in the #faircamp CLI led me into a rabbit hole today – I'm now re-designing some CLI fundamentals, whoops. '^^

For one aspect of this I would love to get your opinion!

Up to 1.7, you could go into any directory, run "faircamp" (no further arguments), and it would dutifully turn it into a faircamp site.

I don't know what your experience is, but on a few occasions I did this in the wrong folder (e.g. home directory), and it was stressful, to say the least. :D

Hence I thought: Having to be just a little more explicit about it might strike a nice balance between "time to use" and "time to accident" – in 2.0 the current approach is that you must specify the directory, so at least: "faircamp ." (build the current directory).

What prompted today's re-design was another thing: The CLI has grown, it's now a wild jungle of --foo --bar --something combinations – super hard to reason about, understand and maintain (multiple glitches in the last weeks). So the current draft is (for building): "faircamp build ." (build the current directory)

But now I thought: With the command structure having become more explicit ("faircamp" by itself now only provides help), the site directory could somewhat safely become implicit again? I.e.: "faircamp build" (build the current directory)

What do you think?