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

@adobe/aio-cli-plugin-config

Package Overview
Dependencies
Maintainers
70
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/aio-cli-plugin-config - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

2

oclif.manifest.json

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

{"version":"2.2.1","commands":{"config:clear":{"id":"config:clear","description":"clears all persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"do not prompt for confirmation","allowNo":false}},"args":[]},"config:delete":{"id":"config:delete","description":"deletes persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:del","config:rm"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false}},"args":[{"name":"keys...","required":true}]},"config:edit":{"id":"config:edit","description":"edit config file","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false}},"args":[]},"config:get":{"id":"config:get","description":"gets a persistent config value","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false}},"args":[{"name":"key","required":true}]},"config":{"id":"config","description":"list, get, set, delete, and edit persistent configuration data","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:ls"],"examples":["$ aio config:list","$ aio config:get KEY","$ aio config:set KEY VALUE","$ aio config:delete KEY","$ aio config:clear"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all config values","allowNo":false}},"args":[]},"config:list":{"id":"config:list","description":"lists all persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:ls"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all config values","allowNo":false}},"args":[]},"config:set":{"id":"config:set","description":"sets a persistent config value","usage":["config set key 'a value' # set key to 'a value'","config set key -f value.json # set key to the json found in the file value.json","config set -j key < value.json # set key to the json found in the file value.json"],"pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"value is json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"value is yaml","hidden":false,"allowNo":false},"file":{"name":"file","type":"boolean","char":"f","description":"value is a path to a file","allowNo":false},"interactive":{"name":"interactive","type":"boolean","char":"i","description":"prompt for value","allowNo":false}},"args":[{"name":"key","required":true},{"name":"value|filename","required":false}]}}}
{"version":"2.3.0","commands":{"config:clear":{"id":"config:clear","description":"clears all persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"do not prompt for confirmation","allowNo":false}},"args":[]},"config:delete":{"id":"config:delete","description":"deletes persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:del","config:rm"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false}},"args":[{"name":"keys...","required":true}]},"config:edit":{"id":"config:edit","description":"edit config file","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","hidden":true,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","hidden":true,"allowNo":false}},"args":[]},"config:get":{"id":"config:get","description":"gets a persistent config value","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false}},"args":[{"name":"key","required":true}]},"config":{"id":"config","description":"list, get, set, delete, and edit persistent configuration data","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:ls"],"examples":["$ aio config:list","$ aio config:get KEY","$ aio config:set KEY VALUE","$ aio config:delete KEY","$ aio config:clear"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all config values","allowNo":false}},"args":[]},"config:list":{"id":"config:list","description":"lists all persistent config values","pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":["config:ls"],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output in json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"output in yaml","hidden":false,"allowNo":false},"env":{"name":"env","type":"boolean","char":"e","description":"environment variables","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all config values","allowNo":false}},"args":[]},"config:set":{"id":"config:set","description":"sets a persistent config value","usage":["config set key 'a value' # set key to 'a value'","config set key -f value.json # set key to the json found in the file value.json","config set -j key < value.json # set key to the json found in the file value.json"],"pluginName":"@adobe/aio-cli-plugin-config","pluginType":"core","aliases":[],"flags":{"local":{"name":"local","type":"boolean","char":"l","description":"local config","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"global config","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"value is json","hidden":false,"allowNo":false},"yaml":{"name":"yaml","type":"boolean","char":"y","description":"value is yaml","hidden":false,"allowNo":false},"file":{"name":"file","type":"boolean","char":"f","description":"value is a path to a file","allowNo":false},"interactive":{"name":"interactive","type":"boolean","char":"i","description":"prompt for value","allowNo":false}},"args":[{"name":"key","required":true},{"name":"value|filename","required":false}]}}}
{
"name": "@adobe/aio-cli-plugin-config",
"description": "Config Plugin for the Adobe I/O CLI",
"version": "2.2.1",
"version": "2.3.0",
"author": "Adobe Inc.",
"bugs": "https://github.com/adobe/aio-cli-plugin-config/issues",
"dependencies": {
"@adobe/aio-lib-core-config": ">=1.2.4",
"@adobe/aio-lib-core-config": "^2.0.0",
"@oclif/command": "^1",

@@ -13,3 +13,2 @@ "@oclif/config": "^1",

"cli-ux": "^5.4.1",
"conf": "^6.1.0",
"hjson": "^3.1.2",

@@ -19,2 +18,3 @@ "js-yaml": "^3.13.0"

"devDependencies": {
"@adobe/eslint-config-aio-lib-config": "^1.2.0",
"@oclif/dev-cli": "^1.21.2",

@@ -24,16 +24,18 @@ "@oclif/plugin-help": "^2.1.4",

"acorn": "^7.0.0",
"codecov": "^3.2.0",
"eslint": "^6.0.0",
"chalk": "^4.0.0",
"eslint": "^6.2.2",
"eslint-config-oclif": "^3.1.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "23.2.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-standard": "^4.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"execa": "^4.0.2",
"globby": "^11.0.0",
"jest": "^24.8.0",
"jest-haste-map": "^24.5.0",
"jest-haste-map": "^26.0.0",
"jest-junit": "^10.0.0",
"jest-resolve": "^24.5.0",
"jest-resolve": "^26.0.0",
"stdout-stderr": "^0.1.9"

@@ -55,9 +57,6 @@ },

"commands": "./src/commands",
"bin": "./bin/run",
"bin": "aio",
"devPlugins": [
"@oclif/plugin-help"
],
"hooks": {
"init": "./src/hooks.js"
},
"topics": {

@@ -67,3 +66,4 @@ "config": {

}
}
},
"repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>"
},

@@ -73,9 +73,10 @@ "main": "src/index.js",

"scripts": {
"eslint": "eslint src",
"lint": "eslint src e2e test",
"test": "npm run unit-tests",
"pretest": "npm run eslint",
"pretest": "npm run lint",
"unit-tests": "jest --ci",
"prepack": "oclif-dev manifest && oclif-dev readme",
"postpack": "rm -f oclif.manifest.json",
"version": "oclif-dev readme && git add README.md"
"version": "oclif-dev readme && git add README.md",
"e2e": "jest --collectCoverage=false --testRegex './e2e/e2e.js'"
},

@@ -82,0 +83,0 @@ "jest": {

@@ -17,3 +17,3 @@ <!--

[![Build Status](https://travis-ci.org/adobe/aio-cli-plugin-config.svg?branch=master)](https://travis-ci.org/adobe/aio-cli-plugin-config)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Greenkeeper badge](https://badges.greenkeeper.io/adobe/aio-cli-plugin-config.svg)](https://greenkeeper.io/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-cli-plugin-config/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-cli-plugin-config/)

@@ -32,26 +32,20 @@

# Usage
<!-- usage -->
```sh-session
$ npm install -g @adobe/aio-cli-plugin-config
$ ./bin/run COMMAND
running command...
$ ./bin/run (-v|--version|version)
@adobe/aio-cli-plugin-config/2.2.1 darwin-x64 node-v10.18.1
$ ./bin/run --help [COMMAND]
USAGE
$ ./bin/run COMMAND
...
```
<!-- usagestop -->
$ aio plugins:install -g @adobe/aio-cli-plugin-config
$ # OR
$ aio discover -i
$ aio config --help...
```
# Commands
<!-- commands -->
* [`./bin/run config`](#binrun-config)
* [`./bin/run config:clear`](#binrun-configclear)
* [`./bin/run config:delete KEYS...`](#binrun-configdelete-keys)
* [`./bin/run config:edit`](#binrun-configedit)
* [`./bin/run config:get KEY`](#binrun-configget-key)
* [`./bin/run config:list`](#binrun-configlist)
* [`./bin/run config set key 'a value' # set key to 'a value'`](#binrun-config-set-key-a-value--------set-key-to-a-value)
* [`aio config`](#aio-config)
* [`aio config:clear`](#aio-configclear)
* [`aio config:delete KEYS...`](#aio-configdelete-keys)
* [`aio config:edit`](#aio-configedit)
* [`aio config:get KEY`](#aio-configget-key)
* [`aio config:list`](#aio-configlist)
* [`aio config set key 'a value' # set key to 'a value'`](#aio-config-set-key-a-value--------set-key-to-a-value)
## `./bin/run config`
## `aio config`

@@ -62,3 +56,3 @@ list, get, set, delete, and edit persistent configuration data

USAGE
$ ./bin/run config
$ aio config

@@ -74,3 +68,3 @@ OPTIONS

ALIASES
$ ./bin/run config:ls
$ aio config:ls

@@ -85,5 +79,5 @@ EXAMPLES

_See code: [src/commands/config/index.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/index.js)_
_See code: [src/commands/config/index.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/index.js)_
## `./bin/run config:clear`
## `aio config:clear`

@@ -94,3 +88,3 @@ clears all persistent config values

USAGE
$ ./bin/run config:clear
$ aio config:clear

@@ -103,5 +97,5 @@ OPTIONS

_See code: [src/commands/config/clear.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/clear.js)_
_See code: [src/commands/config/clear.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/clear.js)_
## `./bin/run config:delete KEYS...`
## `aio config:delete KEYS...`

@@ -112,3 +106,3 @@ deletes persistent config values

USAGE
$ ./bin/run config:delete KEYS...
$ aio config:delete KEYS...

@@ -120,9 +114,9 @@ OPTIONS

ALIASES
$ ./bin/run config:del
$ ./bin/run config:rm
$ aio config:del
$ aio config:rm
```
_See code: [src/commands/config/delete.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/delete.js)_
_See code: [src/commands/config/delete.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/delete.js)_
## `./bin/run config:edit`
## `aio config:edit`

@@ -133,3 +127,3 @@ edit config file

USAGE
$ ./bin/run config:edit
$ aio config:edit

@@ -141,5 +135,5 @@ OPTIONS

_See code: [src/commands/config/edit.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/edit.js)_
_See code: [src/commands/config/edit.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/edit.js)_
## `./bin/run config:get KEY`
## `aio config:get KEY`

@@ -150,3 +144,3 @@ gets a persistent config value

USAGE
$ ./bin/run config:get KEY
$ aio config:get KEY

@@ -161,5 +155,5 @@ OPTIONS

_See code: [src/commands/config/get.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/get.js)_
_See code: [src/commands/config/get.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/get.js)_
## `./bin/run config:list`
## `aio config:list`

@@ -170,3 +164,3 @@ lists all persistent config values

USAGE
$ ./bin/run config:list
$ aio config:list

@@ -182,8 +176,8 @@ OPTIONS

ALIASES
$ ./bin/run config:ls
$ aio config:ls
```
_See code: [src/commands/config/list.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/list.js)_
_See code: [src/commands/config/list.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/list.js)_
## `./bin/run config set key 'a value' # set key to 'a value'`
## `aio config set key 'a value' # set key to 'a value'`

@@ -194,5 +188,5 @@ sets a persistent config value

USAGE
$ ./bin/run config set key 'a value' # set key to 'a value'
$ ./bin/run config set key -f value.json # set key to the json found in the file value.json
$ ./bin/run config set -j key < value.json # set key to the json found in the file value.json
$ aio config set key 'a value' # set key to 'a value'
$ aio config set key -f value.json # set key to the json found in the file value.json
$ aio config set -j key < value.json # set key to the json found in the file value.json

@@ -208,3 +202,3 @@ OPTIONS

_See code: [src/commands/config/set.js](https://github.com/adobe/aio-cli-plugin-config/blob/v2.2.1/src/commands/config/set.js)_
_See code: [src/commands/config/set.js](https://github.com/adobe/aio-cli-plugin-config/blob/2.3.0/src/commands/config/set.js)_
<!-- commandsstop -->

@@ -19,3 +19,3 @@ /*

class BaseCommand extends Command {
get cliConfig() {
get cliConfig () {
if (!this._config) {

@@ -28,3 +28,3 @@ this._config = new Config()

printObject(obj) {
printObject (obj) {
const { flags } = this.parse(this.constructor)

@@ -51,3 +51,4 @@

multiline: 'off',
colors: false }))
colors: false
}))
}

@@ -54,0 +55,0 @@ }

@@ -18,3 +18,3 @@ /*

class ClearCommand extends BaseCommand {
async run() {
async run () {
const { flags } = this.parse(ClearCommand)

@@ -21,0 +21,0 @@

@@ -16,3 +16,3 @@ /*

class DeleteCommand extends BaseCommand {
async run() {
async run () {
const { argv, flags } = this.parse(DeleteCommand)

@@ -19,0 +19,0 @@

@@ -13,7 +13,7 @@ /*

const child_process = require('child_process')
const childProcess = require('child_process')
const BaseCommand = require('../../base-command')
class EditCommand extends BaseCommand {
async run() {
async run () {
const { flags } = this.parse(EditCommand)

@@ -23,4 +23,4 @@

const cmd = (process.platform === 'win32') ? `${process.env['EDITOR'] || 'notepad'}` : `${process.env['EDITOR'] || 'vi'}`
child_process.spawn(cmd, [file], {
const cmd = (process.platform === 'win32') ? `${process.env.EDITOR || 'notepad'}` : `${process.env.EDITOR || 'vi'}`
childProcess.spawn(cmd, [file], {
stdio: 'inherit',

@@ -27,0 +27,0 @@ detached: true

@@ -17,3 +17,3 @@ /*

class GetCommand extends BaseCommand {
async run() {
async run () {
const { args, flags } = this.parse(GetCommand)

@@ -20,0 +20,0 @@

@@ -17,3 +17,3 @@ /*

class ListCommand extends BaseCommand {
async run() {
async run () {
const { flags } = this.parse(ListCommand)

@@ -20,0 +20,0 @@ let vars = this.cliConfig.values

@@ -23,3 +23,3 @@ /*

class SetCommand extends BaseCommand {
async run() {
async run () {
const { args, flags } = this.parse(SetCommand)

@@ -30,3 +30,3 @@

if (!value) {
this.error(`Missing filename`)
this.error('Missing filename')
}

@@ -67,3 +67,3 @@ try {

if (!value) {
this.error(`Missing value`)
this.error('Missing value')
}

@@ -70,0 +70,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