ampy icon indicating copy to clipboard operation
ampy copied to clipboard

All files actions (remove and get)

Open Sashkoiv opened this issue 4 years ago • 4 comments

Sometimes I need to remove all files from the board, get all files or put all files to the board. Due to that, I'm using those locally and pretty happy, so I'm suggesting small modifications to the original code.

Also for using vscode debugging I'm running the tool as a module and have added an extra record to .gitignore.

I'll appreciate any comments=)

Sashkoiv avatar Jan 03 '20 10:01 Sashkoiv

To get all files, I would want to avoid adding a new option. Why not just do that if '/' is passed as the REMOTE_FILE argument?

$ ampy get /

Similarly, for the remove all command, this looks much more cleaner -

$ ampy rmdir /

devxpy avatar Jan 22 '20 16:01 devxpy

Hey @devxpy , good idea but not that obvious in my opinion. Usually, people use commands like git add --all which is more informative for me.

Sashkoiv avatar Feb 18 '20 09:02 Sashkoiv

A better name for the option might be --recursive, which corresponds to the -R/-r/--recursive option found in the Unix/Linux commands rm and cp.

TonyLHansen avatar Apr 22 '20 15:04 TonyLHansen

I definitely prefer having an option rather than making "/" magic.

TonyLHansen avatar Apr 22 '20 15:04 TonyLHansen