Code Monkey home page Code Monkey logo

aio-cli-plugin-config's Introduction

oclif Version Downloads/week Node.js CI License Codecov Coverage

aio-cli-plugin-config

Config Plugin for the Adobe I/O CLI

Usage

$ aio plugins:install -g @adobe/aio-cli-plugin-config
$ # OR
$ aio discover -i
$ aio config --help...

Commands

aio config

list, get, set, delete, and edit persistent configuration data

USAGE
  $ aio config [-l | -g] [-e] [--verbose |  | [-j | -y]]

FLAGS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml
  --verbose     show all config values

DESCRIPTION
  list, get, set, delete, and edit persistent configuration data

ALIASES
  $ aio config ls

EXAMPLES
  $ aio config:list

  $ aio config:get KEY

  $ aio config:set KEY VALUE

  $ aio config:delete KEY

  $ aio config:clear

See code: src/commands/config/index.js

aio config clear

clears all persistent config values

USAGE
  $ aio config clear [-l | -g] [-f]

FLAGS
  -f, --force   do not prompt for confirmation
  -g, --global  global config
  -l, --local   local config

DESCRIPTION
  clears all persistent config values

See code: src/commands/config/clear.js

aio config del KEYS...

deletes persistent config values

USAGE
  $ aio config del KEYS... [-l | -g]

FLAGS
  -g, --global  global config
  -l, --local   local config

DESCRIPTION
  deletes persistent config values

ALIASES
  $ aio config del
  $ aio config rm

aio config delete KEYS...

deletes persistent config values

USAGE
  $ aio config delete KEYS... [-l | -g]

FLAGS
  -g, --global  global config
  -l, --local   local config

DESCRIPTION
  deletes persistent config values

ALIASES
  $ aio config del
  $ aio config rm

See code: src/commands/config/delete.js

aio config edit

edit config file

USAGE
  $ aio config edit [-l | -g]

FLAGS
  -g, --global  global config
  -l, --local   local config

DESCRIPTION
  edit config file

See code: src/commands/config/edit.js

aio config get KEY

gets a persistent config value

USAGE
  $ aio config get KEY [-l | -g] [-j | -y] [-e]

FLAGS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml

DESCRIPTION
  gets a persistent config value

See code: src/commands/config/get.js

aio config list

lists all persistent config values

USAGE
  $ aio config list [-l | -g] [-e] [--verbose |  | [-j | -y]]

FLAGS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml
  --verbose     show all config values

DESCRIPTION
  lists all persistent config values

ALIASES
  $ aio config ls

See code: src/commands/config/list.js

aio config ls

list, get, set, delete, and edit persistent configuration data

USAGE
  $ aio config ls [-l | -g] [-e] [--verbose |  | [-j | -y]]

FLAGS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml
  --verbose     show all config values

DESCRIPTION
  list, get, set, delete, and edit persistent configuration data

ALIASES
  $ aio config ls

EXAMPLES
  $ aio config:list

  $ aio config:get KEY

  $ aio config:set KEY VALUE

  $ aio config:delete KEY

  $ aio config:clear

aio config rm KEYS...

deletes persistent config values

USAGE
  $ aio config rm KEYS... [-l | -g]

FLAGS
  -g, --global  global config
  -l, --local   local config

DESCRIPTION
  deletes persistent config values

ALIASES
  $ aio config del
  $ aio config rm

aio config set key 'a value' # set key to 'a value'

sets a persistent config value

USAGE
  $ 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

FLAGS
  -f, --file         value is a path to a file
  -g, --global       global config
  -i, --interactive  prompt for value
  -j, --json         value is json
  -l, --local        local config
  -y, --yaml         value is yaml

DESCRIPTION
  sets a persistent config value

See code: src/commands/config/set.js

aio-cli-plugin-config's People

Contributors

amulyakashyap09 avatar arjuncooliitr avatar dependabot[bot] avatar florind12 avatar goya avatar greenkeeper[bot] avatar himavanth avatar michaelgoberling avatar moritzraho avatar purplecabbage avatar sandeep-paliwal avatar shazron avatar yu1986 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aio-cli-plugin-config's Issues

An in-range update of @adobe/aio-cna-core-config is breaking the build 🚨

The dependency @adobe/aio-cna-core-config was updated from 1.0.13 to 1.0.14.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@adobe/aio-cna-core-config is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for 1.0.14

Fixed:

  • ACNA-369 - empty environmental variable values in .env file results in read errors (#5)
Commits

The new version differs by 3 commits.

  • 8d638fd Incremented version to 1.0.14
  • b30ef06 ACNA-369 - empty environmental variable values in .env file results in read errors (#5)
  • 150d55b Update bug_report.md

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-jest is breaking the build 🚨

The devDependency eslint-plugin-jest was updated from 22.9.0 to 22.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v22.10.0

22.10.0 (2019-07-17)

Features

Commits

The new version differs by 7 commits.

  • 28bd1dc feat(rules): adds no-if rule (#293)
  • 7ebdc0e chore: enforce import destructure order
  • 31c7cef chore: convert to import/export (#302)
  • 9f858cb chore: delete tests instead of ignoring them with babel
  • c595ba0 chore: do not include tests in published tarball
  • 4b4eb78 chore: fix lint error in md file
  • d3ea720 chore(docs): fix typo (#304)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-jest is breaking the build 🚨

The devDependency eslint-plugin-jest was updated from 22.5.1 to 22.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v22.6.0

22.6.0 (2019-05-22)

Features

Commits

The new version differs by 9 commits.

  • 14d83ef feat(rules): add no-commented-out rule (#262)
  • 83ff198 chore: migrate no-jest-import to typescript (#259)
  • 718c08c chore: upgrade @typescript-eslint
  • ca2aa27 chore: port lowercase-name to TypeScript (#258)
  • 3df0058 chore(ci): run danger with lts version of node
  • 48e3a59 chore: precompile with babel (#257)
  • 8670804 chore: bump deps
  • 05eb11a chore: fix lint error
  • dff6446 docs: link to eslint-plugin-jest-formatting

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of codecov is breaking the build 🚨

The devDependency codecov was updated from 3.6.2 to 3.6.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

codecov is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v3.6.3

AWS Codebuild fixes + package updates

Commits

The new version differs by 10 commits.

  • 7856231 v3.6.3
  • 96e6d96 Merge pull request #166 from codecov/chore/updates
  • c8ea169 update deps
  • 7c4cdc4 Merge pull request #149 from aiell0/master
  • 62389fa Merge pull request #162 from codecov/dependabot/npm_and_yarn/handlebars-4.5.3
  • 73ae008 Add dependabot config
  • ccf3862 Update README.md
  • 467a495 Bump handlebars from 4.1.2 to 4.5.3
  • 8acbe96 Retest
  • acd92f4 Test when codebuild isn't triggered by webhooks.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

test failure under node-16

This works under node-14, but fails under node-16.
It looks like overriding process.platform breaks under node 16.

 FAIL  test/commands/config/edit.js
  ● get β€Ί default - win32

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    - Expected
    + Received

    - "notepad",
    + "vi",
      ["global"],
      {"detached": true, "stdio": "inherit"},

    Number of calls: 1

      55 |     })
      56 |     return TheCommand.run([]).then(() => {
    > 57 |       expect(childProcess.spawn).toHaveBeenCalledWith('notepad', ['global'], { detached: true, stdio: 'inherit' })
         |                                  ^
      58 |     })
      59 |   })
      60 |

      at test/commands/config/edit.js:57:34

An in-range update of jest2 is breaking the build 🚨

There have been updates to the jest2 monorepo:

  • The devDependency jest-resolve was updated from 24.8.0 to 24.9.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the jest2 group definition.

jest2 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • βœ… codecov/project: 100% remains the same compared to d1ff6d1 (Details).
  • βœ… codecov/patch: Coverage not affected when comparing d1ff6d1...8281aab (Details).
  • βœ… Travis CI - Branch: The build passed.
  • ❌ Build Failed: Workflow Error

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

ACNA-271 - aio config and aio config:get without key should return valid JSON

Expected Behaviour

Getting the complete configuration with aio config or aio config:get (no key) should return just a JSON document of the current configuration which would also be suitable for input to, say, jq.

Example empty configuration:

$ aio config:get
{}

Example configuration with one property piping out to jq:

$ aio config:set test 5
$ aio config | jq .
{
  "test": "5"
}

Actual Behaviour

The actual output prints a null prototype and then the object in plain JavaScript but non-JSON compliant way:

Example empty configuration:

$ aio config:get
[Object: null prototype] {}

Example configuration with one property:

$ aio config:set test 5
$ aio config
[Object: null prototype] { test: '5' }

Reproduce Scenario (including but not limited to)

See examples above

Steps to Reproduce

See examples above

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

An in-range update of @oclif/test is breaking the build 🚨

The devDependency @oclif/test was updated from 1.2.2 to 1.2.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@oclif/test is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build is in progress (Details).
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

README links to command source code result in 404

Describe the bug
oclif/dev-cli has a bug where it assumes a version tag is prefixed by v when it should respect the setting in .npmrc. See oclif/dev-cli#123

Workaround is setting this key in the plugin's package.json:

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

To Reproduce
See the section for a command in README.md, the link to the source goes to 404.

Expected behavior
The link works.

Actual behavior
The link does not work.

ACNA-338 - config can only load .env and .aio files once

Expected Behaviour

commands that navigate ( process.chdir ) expect local config files to be loaded from the new cwd

Actual Behaviour

cwd from where the cli is launched is used for eternity and there is no way to reset local config

Sample Code that illustrates the problem

process.chdir('./somedir')
// call some cli plugin command that used config
otherCommand.run(['get','somekey'])

An in-range update of acorn is breaking the build 🚨

The devDependency acorn was updated from 6.2.1 to 6.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

acorn is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

remove config upgrade hook

this was implemented over a year ago, to upgrade people from the old config to the new config system.

resolve depcheck warnings

Unused dependencies
* @oclif/config
* @oclif/errors
Missing dependencies
* execa: ./e2e/e2e.js
* chalk: ./e2e/e2e.js
* debug: ./src/hooks.js

ACNA-289 - Migrate all user config data

Expected Behaviour

My previously set config values are still accessible

Actual Behaviour

Only jwt-auth key is migrated to new plugins changed schema

Reproduce Scenario (including but not limited to)

  • set some values in config ( latest on npm )
  • upgrade to use this implementation
  • get the value

Steps to Reproduce

aio config set mySecretKey mySecretValue
git clone adobe/aio-cli-plugin-config
cd aio-cli-plugin-config
npm i
aio plugins link
aio config get mySecretKey

Platform and Version

any/all

Sample Code that illustrates the problem

see repro steps

An in-range update of @oclif/test is breaking the build 🚨

The devDependency @oclif/test was updated from 1.2.4 to 1.2.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@oclif/test is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v1.2.5
  • chore(deps): bump lodash from 4.17.11 to 4.17.15 (#45) abccac6
  • chore(deps): bump js-yaml from 3.12.0 to 3.13.1 (#44) 0b80890

v1.2.4...v1.2.5

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.