edno / kleis

Simplified SquidGuard web frontend (users & filters management)
MIT License
4 stars 2 forks source link

Export commands should accept output file as parameter #82

Open edno opened 5 years ago

edno commented 5 years ago

Export commands should accept an optional parameter for customised export filename and path.

edno commented 5 years ago

Also supported by command export.

If file exists at target location, then confirmation is requested.

$ php artisan export /tmp 
 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 Overwrite existing '/tmp/accounts/accounts.txt' ? (yes/no) [no]:
 > 

Using --cli overwrites target location by default.

edno commented 5 years ago

Tests to be implemented before closing this ticket