Comparing version 1.0.0-alpha.23 to 1.0.0-alpha.24
@@ -46,3 +46,3 @@ "use strict"; | ||
if (!(await util_1.pathExists(migrationsFolder))) { | ||
console.log(`Would create: ${migrationsFolder}`); | ||
this.log(`Would create: ${migrationsFolder}`); | ||
} | ||
@@ -61,3 +61,3 @@ } | ||
if (dryRun) { | ||
console.log(`Would create: ${migrationPath}`); | ||
this.log(`Would create: ${migrationPath}`); | ||
} | ||
@@ -74,4 +74,4 @@ else { | ||
if (dryRun) { | ||
console.log("Would add migration:"); | ||
console.log(JSON.stringify(migrations[migrations.length - 1], null, 4)); | ||
this.log("Would add migration:"); | ||
this.log(JSON.stringify(migrations[migrations.length - 1], null, 4)); | ||
} | ||
@@ -78,0 +78,0 @@ else { |
@@ -1,1 +0,1 @@ | ||
{"version":"1.0.0-alpha.23","commands":{"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find."},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false}},"args":[{"name":"name","description":"A short description to generate the filename with"}]}}} | ||
{"version":"1.0.0-alpha.24","commands":{"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"login":{"id":"login","description":"Logs in to Quip and stores credentials in the .quiprc file","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"forces a re-login even if a user is currently logged in","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"port":{"name":"port","type":"option","description":"Use a custom port for the OAuth redirect server (defaults to 9898)","hidden":true,"default":9898},"hostname":{"name":"hostname","type":"option","description":"Use a custom hostname for the OAuth redirect server (defaults to 127.0.0.1)","hidden":true,"default":"127.0.0.1"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find."},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false}},"args":[{"name":"name","description":"A short description to generate the filename with"}]}}} |
{ | ||
"name": "quip-cli", | ||
"description": "A Command Line Interface for the Quip Live Apps platform", | ||
"version": "1.0.0-alpha.23", | ||
"version": "1.0.0-alpha.24", | ||
"author": "Quip", | ||
@@ -18,2 +18,3 @@ "bin": { | ||
"ncp": "^2.0.0", | ||
"open": "^7.0.4", | ||
"prettier": "^2.0.5", | ||
@@ -29,9 +30,11 @@ "tslib": "^1.13.0" | ||
"@types/ncp": "^2.0.4", | ||
"@types/nock": "^11.1.0", | ||
"@types/node": "^10.17.26", | ||
"@types/open": "^6.2.1", | ||
"@types/prettier": "^2.0.2", | ||
"chai": "^4.2.0", | ||
"globby": "^10.0.2", | ||
"jest": "^26.1.0", | ||
"mockdate": "^3.0.2", | ||
"ts-jest": "^26.1.1", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.5" | ||
@@ -77,3 +80,3 @@ }, | ||
"types": "lib/index.d.ts", | ||
"gitHead": "2a9863677eda66f11e7e470363a496fc656875a5" | ||
"gitHead": "c82f0347285516d815c64e7edfa4aada6133c95a" | ||
} |
100
README.md
@@ -5,2 +5,102 @@ # Quip CLI | ||
<!-- toc --> | ||
* [Quip CLI](#quip-cli) | ||
* [Usage](#usage) | ||
* [Commands](#commands) | ||
<!-- tocstop --> | ||
# Usage | ||
<!-- usage --> | ||
```sh-session | ||
$ npm install -g quip-cli | ||
$ qla COMMAND | ||
running command... | ||
$ qla (-v|--version|version) | ||
quip-cli/1.0.0-alpha.24 linux-x64 node-v12.18.2 | ||
$ qla --help [COMMAND] | ||
USAGE | ||
$ qla COMMAND | ||
... | ||
``` | ||
<!-- usagestop --> | ||
# Commands | ||
<!-- commands --> | ||
* [`qla help [COMMAND]`](#qla-help-command) | ||
* [`qla init`](#qla-init) | ||
* [`qla login`](#qla-login) | ||
* [`qla migration [NAME]`](#qla-migration-name) | ||
## `qla help [COMMAND]` | ||
display help for qla | ||
``` | ||
USAGE | ||
$ qla help [COMMAND] | ||
ARGUMENTS | ||
COMMAND command to show help for | ||
OPTIONS | ||
--all see all commands in CLI | ||
``` | ||
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.1.0/src/commands/help.ts)_ | ||
## `qla init` | ||
Initialize a new Live App Project | ||
``` | ||
USAGE | ||
$ qla init | ||
OPTIONS | ||
-h, --help show CLI help | ||
``` | ||
_See code: [src/commands/init.ts](https://github.com/quip/quip-apps/blob/v1.0.0-alpha.24/src/commands/init.ts)_ | ||
## `qla login` | ||
Logs in to Quip and stores credentials in the .quiprc file | ||
``` | ||
USAGE | ||
$ qla login | ||
OPTIONS | ||
-f, --force forces a re-login even if a user is currently logged in | ||
-h, --help show CLI help | ||
-s, --site=site [default: quip.com] use a specific quip site rather than the standard quip.com login | ||
``` | ||
_See code: [src/commands/login.ts](https://github.com/quip/quip-apps/blob/v1.0.0-alpha.24/src/commands/login.ts)_ | ||
## `qla migration [NAME]` | ||
Creates a new migration | ||
``` | ||
USAGE | ||
$ qla migration [NAME] | ||
ARGUMENTS | ||
NAME A short description to generate the filename with | ||
OPTIONS | ||
-f, --folder=folder [default: migrations] The folder where your migrations are stored | ||
-h, --help show CLI help | ||
-m, --manifest=manifest A manifest.json file to add the migration to. By default, we'll use the first one we find. | ||
-v, --version=version The version to generate this migration for. By default, it will use the current | ||
version_number in the manifest | ||
``` | ||
_See code: [src/commands/migration.ts](https://github.com/quip/quip-apps/blob/v1.0.0-alpha.24/src/commands/migration.ts)_ | ||
<!-- commandsstop --> | ||
## Running locally | ||
@@ -7,0 +107,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
41471
24
579
114
9
16
5
1
+ Addedopen@^7.0.4
+ Addedopen@7.4.2(transitive)