babashka / neil

A CLI to add common aliases and features to deps.edn-based projects
MIT License
372 stars 27 forks source link

Suggestion: Add human-readable output to `neil dep add` #214

Open rads opened 4 months ago

rads commented 4 months ago

Description: When you add a dependency you have to check the deps.edn file after to see what version was added. It would be convenient to see this in the output of the neil dep add command.

Current behavior:

$ neil dep add com.nextjournal/beholder
# no output

Suggested behavior:

$ neil dep add com.nextjournal/beholder
Added to deps.edn: [com.nextjournal/beholder {:mvn/version "1.0.2"}]
borkdude commented 4 months ago

Currently all commands output lines of EDN that potententially can be fed into neil as arguments, so it would be more in line to return something like:

:lib com.nextjournal/beholder :version "1.0.2" :added true

or whatever