prasmussen / gdrive

Google Drive CLI Client
MIT License
9k stars 1.19k forks source link

Edit Apps Scripts on terminal? #291

Open mymindwentblvnk opened 7 years ago

mymindwentblvnk commented 7 years ago

I was sent here by http://stackoverflow.com/questions/24739294/external-editor-support-for-google-apps-script

Can I edit Apps Scripts via e. g. VIM? Is there a possibility?

tabebqena commented 6 years ago

Me Too :( the short answer is No, up till now. The long answer: 1-This project is designed to handle google drive files not google scripts. However google script is also google drive file!!. 2- So,You can download your project script bygdrive by

gdrive export ID

3- The whole project will be downloaded as single json file 4- The json filehas key files which has a value of list, containing all files in it, each file is represented by an array has the keys:Id, type, name, source. 5- The sourcevalues is the script you want to edit. 6- No official way to extract the source to a single file. 7- If you write your own script to extract script source , you will encounter the last issue 8- you can't upload your edits, As gdrive has no authorization to upload google script projects !! THIS ISSUE

tabebqena commented 6 years ago

You can use clasp project