Skip to content

Add support to pass hex colors in prefixColor #260

@geralt-debugs

Description

@geralt-debugs

Hex colors are not currently supported as prefixColor value. However chalk package which is used internally has support for hex colors. It should be fixed by the following code?

let color;
if(command.prefixColor.startsWith("#")) {
  color = chalk.hex(command.prefixColor)
} else {
  color = _.get(chalk, command.prefixColor, chalk.gray.dim);
}

Happy to open a PR!

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