Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ class App {
}

//Token verification
const quipService = new QuipService(this.cliArguments.token);
const quipService = new QuipService(this.cliArguments.token, this.cliArguments['api-url']);

quipService.setLogger(this.Logger);

if(!await quipService.checkUser()) {
Expand All @@ -161,14 +162,16 @@ class App {
this.zip = new JSZip();
}

this.quipProcessor = new QuipProcessor(this.cliArguments.token, this.fileSaver.bind(this), this.progressFunc.bind(this), this.phaseFunc.bind(this),
{
documentTemplate,
documentCSS: this.cliArguments['embedded-styles']? documentCSS : '',
embeddedImages: this.cliArguments['embedded-images'],
comments: this.cliArguments['comments'],
docx: this.cliArguments['docx']
});
let quipProcessorOptions = {
documentTemplate,
documentCSS: this.cliArguments['embedded-styles']? documentCSS : '',
embeddedImages: this.cliArguments['embedded-images'],
comments: this.cliArguments['comments'],
docx: this.cliArguments['docx'],
quipApiURL: this.cliArguments['api-url']
};

this.quipProcessor = new QuipProcessor(this.cliArguments.token, this.fileSaver.bind(this), this.progressFunc.bind(this), this.phaseFunc.bind(this), quipProcessorOptions);

this.quipProcessor.setLogger(this.Logger);

Expand Down
6 changes: 6 additions & 0 deletions lib/cli/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ module.exports =
description: 'Comma-separated folder\'s IDs to export',
typeLabel: '{underline string}'
},
{
name: 'api-url',
type: String,
description: 'Quip API Url. Useful for self/company hosted Quip instances.',
typeLabel: '{underline string}'
},
{
name: 'debug',
type: Boolean,
Expand Down