Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Setting BaseCommand#chip #18

@ffflick-gh

Description

@ffflick-gh

Currently, BaseCommand#chip needs to be explicitly set by whoever writes the code, like so:

class Cmd extends BaseCommand {
  constructor() {
      super({
          name: 'cmd',
          description: 'cmd descr',
          chip: 'the-chip'
      });
  }
}

But people who write code are dumb and make lots of mistakes. A typo or forgetting to add the chip field while creating commands could be a common error. Instead, automatically set chip inside the loadChip function to make it easier for everyone!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions