Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list command #55

Closed
haoliangyu opened this issue Sep 28, 2020 · 0 comments
Closed

list command #55

haoliangyu opened this issue Sep 28, 2020 · 0 comments
Assignees
Labels
proposed feature proposed feature that needs community support

Comments

@haoliangyu
Copy link
Member

haoliangyu commented Sep 28, 2020

The list command is for app project ONLY. This command read the plugins list from the koop.js file and print the plugin names:

# not specify any plugin type, then list everything
> koop list
Provider:
- geojson-provider
- csv-provider

Output:
- geoservice-output

Auth:
- koop-file-auth

# specify a type
> koop list provider
Provider
- geojson-provider
- csv-provider

These names can be used in the remove command (#53). The remove command and add command should update the plugin list in the koop.js:

{
  "plugins": [
    {
      "name": "test-provider",
      "type": "proider"
    },
    {
      "name": "test-output",
      "type": "output",
      "local": true
    }
  ]
}

It should not directly parse the src/plugins.js file because it may be too complicated to include all variations in js.

This command works best with a project created with the latest version of CLI.

@haoliangyu haoliangyu added the proposed feature proposed feature that needs community support label Sep 28, 2020
@haoliangyu haoliangyu self-assigned this Sep 28, 2020
@haoliangyu haoliangyu mentioned this issue Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed feature proposed feature that needs community support
Projects
None yet
Development

No branches or pull requests

1 participant