Problem/Motivation

If a user (hypothetically, me) runs drupal-radix-cli add and accidentally chooses a component that has already been created (selecting, say, nav instead of navbar), the preexisting component is overwritten without warning, potentially erasing uncommitted changes.

Proposed resolution

It would be great if instead you got a prompt "COMPONENT_NAME already exists. Do you want to overwrite it? y/N"

Comments

BrightBold created an issue. See original summary.

doxigo’s picture

Good idea, will do so. but the issue should probably go to Github rather than the Drupal theme. but thanks

doxigo’s picture

Status: Active » Fixed

Just released the 1.0.7 tag, thanks for the issue, please do run npm update drupal-radix-cli to get the latest version and test it out and let me know if it works as expected or not.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.