drive linux commandline using Go

Download drive from github https://github.com/prasmussen/gdrive

List contents of a certain folder

gdrive list -q "'XXXXXXXXXXXXXXXXX' in parents"

Search for a title/ filename

gdrive list -q "title contains 'testing_uploads'"
Id                Title           Size     Created               
XXXXXXXXXXXXXX   testing_uploads   0 B    2014-07-02 16:00:33   

Upload files inside a certain folder. If the parameter p is omitted it is uploaded to root

#!/bin/bash

if [ -z "$1" ]; then
   echo $0 "name of file please"
   else
        gdrive upload -p XXXXXXXXXXXXXXXXX --file "$1"
fi

TODO:

add file 'update' to the script: https://developers.google.com/drive/v2/reference/files/update
See this video for more commandline options:
https://developers.google.com/drive/web/search-parameters