guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.08k stars 47 forks source link

feat(backup): recursively create backup directory #97

Open eljefedelrodeodeljefe opened 8 months ago

eljefedelrodeodeljefe commented 8 months ago

if desired:

Handles simple cases, such as the documented one, that easily runs into ENOTDIR:

hostctl backup --path $HOME/hostctl/

...when you run that for the first time.

I gladly understand if this is not desired e.g. for principle, os Perm or test churn (some adaptations needed to be done in the test runner), but I thought it would be a little bit of a nicer DX, when copy pasting commands :)