Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quip-cli

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quip-cli - npm Package Compare versions

Comparing version 0.2.0-alpha.31 to 0.2.0-alpha.32

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# 0.2.0-alpha.32 (2021-10-18)
**Note:** Version bump only for package quip-cli
# 0.2.0-alpha.31 (2021-09-29)

@@ -8,0 +16,0 @@

1

lib/commands/login.d.ts

@@ -14,2 +14,3 @@ import { Command, flags } from "@oclif/command";

site: flags.IOptionFlag<string>;
"with-token": flags.IOptionFlag<string | undefined>;
port: import("@oclif/parser/lib/flags").IOptionFlag<number>;

@@ -16,0 +17,0 @@ hostname: flags.IOptionFlag<string>;

@@ -90,2 +90,8 @@ "use strict";

const { site, force, hostname, port, config } = flags;
const accessToken = flags["with-token"];
// displays error message if command has "--with-token" flag without passing a value.
if (accessToken === "") {
this.error("Flag --with-token expects a value.");
return;
}
if (!force && (await auth_1.isLoggedIn(config, site))) {

@@ -100,3 +106,8 @@ let alt = "";

try {
await exports.login({ site, hostname, port, config });
if (accessToken) {
await config_1.writeSiteConfig(config, site, { accessToken });
}
else {
await exports.login({ site, hostname, port, config });
}
this.log("Successfully logged in.");

@@ -122,2 +133,7 @@ }

}),
"with-token": command_1.flags.string({
char: "t",
description: "log in with a given access token instead of interactive web login redirect",
helpValue: "token",
}),
port: command_1.flags.integer({

@@ -124,0 +140,0 @@ hidden: true,

2

lib/lib/config.js

@@ -18,3 +18,3 @@ "use strict";

qlaConfig.sites[site] = config;
writeConfig(configPath, qlaConfig);
await writeConfig(configPath, qlaConfig);
};

@@ -21,0 +21,0 @@ const writeConfig = (configPath, config) => {

@@ -1,1 +0,1 @@

{"version":"0.2.0-alpha.31","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","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"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"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},"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},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"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"},"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.","allowNo":false},"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.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","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"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build","description":"the build number to release"}]}}}
{"version":"0.2.0-alpha.32","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","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"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"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},"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},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"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"},"with-token":{"name":"with-token","type":"option","char":"t","description":"log in with a given access token instead of interactive web login redirect","helpValue":"token"},"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"},"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.","allowNo":false},"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.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","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"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build","description":"the build number to release"}]}}}
{
"name": "quip-cli",
"description": "A Command Line Interface for the Quip Live Apps platform",
"version": "0.2.0-alpha.31",
"version": "0.2.0-alpha.32",
"author": "Quip",

@@ -92,3 +92,3 @@ "bin": {

"types": "lib/index.d.ts",
"gitHead": "36b88346039880235ce2f5c17a9114dbc2bd31f4"
"gitHead": "a2b3b82b0f186a529b40401d35bd93a4f3603658"
}

@@ -126,5 +126,6 @@ # Quip CLI

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
-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
-t, --with-token=token log in with a given access token instead of interactive web login redirect
```

@@ -131,0 +132,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc