luatool
luatool copied to clipboard
Add delete commands.
I know it's a simple command but being able to delete files from the command would be useful.
- delete specified file (or wild card?)
- delete all files
I agree, my vote as well. I'd be happy with a "format" command.
Could we have a "Halt" command. Something to stop the code so that we can do the file management without being interrupted by whatever might be running?
I see --wipe exists, though I don't know why it tries to parse the entire list of files instead of using file.format()
. @uchobby I don't think NodeMCU supports interrupting execution.
I'll try wipe, might be good enough.
On the "Halt"... is there a way to keep it from loading init.lua if it's caught just after reset? What I'm thinking is that a command could be sent, near continuously, so that when reset is pressed, it's stopped just in time. The command would watch for the correct response and then start the upload. More like what a typical boot loader does..
If we could get the firmware updated to do this, say a 1 second pause after reset, before loading init...
Could the --delete command from PR #32 can fulfill your requirements?