Skip to content

Highlight deprecated extensions within the interactive Prompt #6079

Open
@Jay-Plumb

Description

@Jay-Plumb

What area(s) will this request affect?

Function

What type of change do you want to see?

New feature

Overview

When running npm run generate extension, the prompt currently outputs an interactive prompt to select from e.g.

   Discounts and checkout                                                    
      Delivery customization — Function                                      
   >  Discount — Function                                                    
                               

Since `@shopify/cli/3.82.0, the ouput lists out deprecated options such as:

  Discounts and checkout                                                    
      Product discount — Function                                            
      Shipping discount — Function  

It would be nice to have deprecation warnings e.g.

  Discounts and checkout                                                    
      Product discount — (Deprecated) Function                                           
      Shipping discount — (Deprecated) Function  

Motivation

It's easy to use a deprecated option from the interactive prompt which requires a re-write a year later

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions