Skip to content

Sharing pattern with same name overwrites the readme file #9

@jaknor

Description

@jaknor

Wasn't sure if I should file this as feature request or bug. If you share a pattern with the same name as an existing one it will overwrite whatever is there. This is useful as it allows you to update an existing pattern, however I don't think it should overwrite the README with an empty file.

Expected Behavior

The template.yaml should be updated, but the readme should not

Current Behavior

The readme file of the pattern is overwritten

Possible Solution

  • We could check if there is already a readme file and if there is skip creating it
  • We could prompt and ask if readme should be created
  • We could have a specific update command or update flag

Steps to Reproduce (for bugs)

  1. Share a pattern
  2. Update the README
  3. Make some updates to the pattern
  4. Share the pattern again using the same name

Environment

  • SAM Patterns CLI version:
  • Node version:
  • NPM version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions