crystal-lang / shards

Dependency manager for the Crystal language
Other
763 stars 100 forks source link

`shards remove` command #576

Open devnote-dev opened 1 year ago

devnote-dev commented 1 year ago

Following the naming of #144 and https://github.com/crystal-lang/shards/issues/144#issuecomment-364628499, have a shards remove command to remove a dependency/dependencies from shard.yml. Currently, if you want to remove one or more dependencies from your project, you have to do the following:

While this process isn't necessarily wrong, it's not intuitive either – new Crystal users aren't going to know that this is the process as it isn't really documented, nor does it imply that what you're doing is essentially what a remove command would do. Furthermore, if you mistakenly skipped running shards update then those dependencies are stuck sitting in the lib folder which can lead to unexpected hidden issues.