Squirt: Now with added get

I first mentioned Squirt, my attempt to provide a simple command-line approach to managing and automating FTP scripts, almost a month ago. That initial implementation was very basic and the code did need a lot of cleaning up and I have spent some of my time since then cleaning up the code.

And now I have gotten around to adding some more functionality.

Squirt now supports a whopping three (count them!) FTP actions:

  • del Deletes files
  • ls Lists the files

And now…

  • get Retrieves the files

This is a very basic implementation so far, but it won’t crash if you try to use it. So, if you’re feeling brave, foolish or curious, you can take a look at the source and download the whole thing from GitHub.

Slowly fixing the worst documentation ever

A week ago, with a holiday looming, I decided that it would be better publish Squirt immediately rather than continue tinkering endlessly. That’s not to suggest that this application is anywhere near finished, just that it won’t break horribly if you attempt to use any of its (currently very limited) functionality.

I also, very quickly, knocked together a README file and used this as the basis of the applications page on this site. Shortly after we were driving away for the week, I realised that this was probably the worst piece of documentation I have ever written.

It’s better now. I’m not claiming it’s good, but should be usable.

Squirt: An attempt to simplify the management of FTP scripts

I use FTP and, for regular tasks, I use FTP scripts. And one day I found myself thinking: What if I had a single command that I could use to manage and execute these scripts rather than digging through (potentially) endless script files.

And so Squirt was born.

This is something I have been tinkering with, off and on, for the past couple of months and it is far from complete – the only actions currently supported are List Files and Delete Files – but what I do have does work.

This is something that is still very much under development. The existing code needs a fair bit of cleaning up and I am planning to add support for more actions. But if you want to have a poke around the source, or just download it to see what it does, feel free.

A word of warning though: If you do install it, the first command yo need to execute is squirt init. This command creates the database that maintains the scripts.