Skip to content

Commit

Permalink
Fix clasp run (google#172)
Browse files Browse the repository at this point in the history
Signed-off-by: campionfellin <[email protected]>
  • Loading branch information
campionfellin authored and grant committed May 25, 2018
1 parent 1bee3bd commit 6dc109b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,20 +775,14 @@ commander
.command('run <functionName>')
.description('Run a function in your Apps Scripts project')
.action((functionName) => {
console.log('IN DEVELOPMENT');
process.exit(0);
console.log('start run');
getAPICredentials(async () => {
console.log('got creds');
await checkIfOnline();
console.log('online');
getProjectSettings().then(({ scriptId }: ProjectSettings) => {
const params = {
scriptId,
function: functionName,
devMode: true,
devMode: false,
};
console.log('about to run');
script.scripts.run(params).then(response => {
console.log(response.data);
}).catch(e => {
Expand Down

0 comments on commit 6dc109b

Please sign in to comment.