crystal-lang / shards

Dependency manager for the Crystal language
Other
765 stars 102 forks source link

Opening in an editor? #311

Closed atomical closed 4 years ago

atomical commented 4 years ago

Is there a way to open the libraries in an editor? In Ruby it's bundle show gem_name

straight-shoota commented 4 years ago

Such a tool doesn't exist (yet).

In contrast to bundler, shards always installs all dependencies in a local path at lib/#{dependency_name}. So there is really no need for any specific information that would be provided by shards. You can just implement this as a simple shell alias.

z64 commented 4 years ago

While a simple case, #202 feels relevant here to help fill small gaps like these.

ysbaddaden commented 4 years ago

@straight-shoota said it all: dependencies are always installed under lib, so shards show foo will always be ./lib/foo. I think just opening the lib folder is faster and simpler.