Skip to content

new CLI argument to run against entry points more convenient #214

@michaelbe812

Description

@michaelbe812

(After this PR is merged)

We can pass entryPoints as CLI arguments like this sheriff verify '{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }'

this is not really convenient and also really error prone

Suggested Feature

Given this entryPoints in a sheriff.config.ts:

  entryPoints: {
    'app-i': 'projects/app-i/src/main.ts',
    'app-ii': 'projects/app-ii/src/main.ts',
  },

We will be able to call sheriff verify like this: sheriff verify --entryPoints=app-i or with multiple: sheriff verify --entryPoints=app-i,app-ii.

Questions

Should we still support passing entryPoints via a serialized object ('{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }')?

If we drop this option we can also simplify the internal implementation.

However it would be a breaking change.
(only if in the meantime a release is created which includes this PR

TODO

  • introduce entryPoints CLI arg
  • verify that provided entryPoints exist
  • remove the possibility to provide entryPoints as serialized Record

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions