Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Two alias issues of generator plugin #16

@songwei

Description

@songwei
  1. tpl alias could not work, looks like yo does not support more than one character for alias.
    this.option('template', {
    alias: 'tpl',
    description: 'Generate from template',
    type: String,
    });
  2. t alias appears 2 times, it will cause the theia-version is set with the value of pluginType in generated package.json
    this.option('pluginType', {
    alias: 't',

this.option('theia-version', {
alias: 't',

suggestion:
I just tried replacing tpl with T and replacing the second t with V, and it could work.
The command line I used:
yo @theia/plugin:app theia-hello-world-plugin -t backend -T hello-world
and
yo @theia/plugin:app theia-hello-world-plugin -t backend -T hello-world -V latest
Both of them worked fine.

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