Open mosteo opened 2 years ago
nested-crates?
I don't see this as being very useful to be honest.
I don't see this as being very useful to be honest.
I envision something like:
$ alr get libhello
libhello=1.0.0 successfully retrieved.
This release also includes these nested crates:
demo: An example on how to use this library.
tests: A test suite to verify functionality.
Now, it's true that we could achieve that even without modifying the manifest, just looking for alire.toml
files, although not remotely for alr show
.
Perhaps this could be tucked away in an alr doc --show-nested
or somesuch when we come around that.
I'm thinking that, as the use of subcrates for demos, examples, tests, etc. generalizes, it could be interesting to have a property in the manifest to make users better aware of them. Either simply:
subcrates = ["demo", "tests"]
or
On
alr get
andalr show
we could announce them.Not very fond of "subcrate" as a word though. Children?