Skip to content

Commit

Permalink
fix: remove config from json response (#878)
Browse files Browse the repository at this point in the history
* fix: remove config from json response

* chore(release): 5.1.3-qa.0 [skip ci]

---------

Co-authored-by: svc-cli-bot <[email protected]>
  • Loading branch information
mdonnalley and svc-cli-bot authored May 24, 2024
1 parent cbd3ef8 commit 0305a8c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ EXAMPLES
$ mycli plugins
```

_See code: [src/commands/plugins/index.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/index.ts)_
_See code: [src/commands/plugins/index.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/index.ts)_

## `mycli plugins:inspect PLUGIN...`

Expand All @@ -144,7 +144,7 @@ EXAMPLES
$ mycli plugins inspect myplugin
```

_See code: [src/commands/plugins/inspect.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/inspect.ts)_
_See code: [src/commands/plugins/inspect.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/inspect.ts)_

## `mycli plugins install PLUGIN`

Expand Down Expand Up @@ -193,7 +193,7 @@ EXAMPLES
$ mycli plugins install someuser/someplugin
```

_See code: [src/commands/plugins/install.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/install.ts)_
_See code: [src/commands/plugins/install.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/install.ts)_

## `mycli plugins link PATH`

Expand Down Expand Up @@ -223,7 +223,7 @@ EXAMPLES
$ mycli plugins link myplugin
```

_See code: [src/commands/plugins/link.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/link.ts)_
_See code: [src/commands/plugins/link.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/link.ts)_

## `mycli plugins reset`

Expand All @@ -238,7 +238,7 @@ FLAGS
--reinstall Reinstall all plugins after uninstalling.
```

_See code: [src/commands/plugins/reset.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/reset.ts)_
_See code: [src/commands/plugins/reset.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/reset.ts)_

## `mycli plugins uninstall [PLUGIN]`

Expand Down Expand Up @@ -266,7 +266,7 @@ EXAMPLES
$ mycli plugins uninstall myplugin
```

_See code: [src/commands/plugins/uninstall.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/uninstall.ts)_
_See code: [src/commands/plugins/uninstall.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/uninstall.ts)_

## `mycli plugins update`

Expand All @@ -284,7 +284,7 @@ DESCRIPTION
Update installed plugins.
```

_See code: [src/commands/plugins/update.ts](https://github.com/oclif/plugin-plugins/blob/5.1.2/src/commands/plugins/update.ts)_
_See code: [src/commands/plugins/update.ts](https://github.com/oclif/plugin-plugins/blob/5.1.3-qa.0/src/commands/plugins/update.ts)_

<!-- commandsstop -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oclif/plugin-plugins",
"description": "plugins plugin for oclif",
"version": "5.1.2",
"version": "5.1.3-qa.0",
"author": "Salesforce",
"bugs": "https://github.com/oclif/plugin-plugins/issues",
"dependencies": {
Expand Down
12 changes: 11 additions & 1 deletion src/commands/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ export default class PluginsIndex extends Command {
this.displayJitPlugins(jitPlugins)
}

return [...results.filter((p) => !p.parent), ...jitPlugins]
return [
...results
.filter((p) => !p.parent)
.map((p) => {
// @ts-expect-error because we are removing the config property, which may or may not be there.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const {config, ...rest} = p
return rest
}),
...jitPlugins,
]
}

private createTree(plugin: Plugin) {
Expand Down

0 comments on commit 0305a8c

Please sign in to comment.