Skip to content

Write internal util to interact with plugin config file #23

Open
@fdrozdowski

Description

@fdrozdowski

The plugin config file contains the metadata for a plugin. Many commands need to read from it. This should be abstracted behind a util. This will make it easy to support different locations or formats of the config.

One large piece of this is to figure out how to find plugin config. It would be really nice to not have to specify the config location for every command that needs to read from it. There are two solutions that I'm thinking of to solve this:

  1. Follow the gradle model and use a wrapper. The wrapper should live where the config is. This is okay, but not ideal in my opinion as the wrapper is something else we have to maintain.
  2. Follow the git model and look in the current folder and all parent folders for the config file. I like this as I think it will handle most scenarios well. The main concern is if there is another config file that is not Delphix related. We can detect this pretty quickly though.

┆Issue is synchronized with this Jira Story by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions