In the interfaces where we have has_, get_, list_all_*
Add a count_* function, that will be needed for testing conformance, also useful to test locally. And it is a minor addition to the interfaces.
For instance on tests we need to check we have 0 opts, instead of calling list_all_opts() and counting items in the result, we can use count_opts() directly. This simplifies test implementation (e.g. in cucumber, spock or whatever tool).
I've added functions called xxx_count() (sounds more normal in English) to the Definition package interfaces.
Seen the added functions on the spec>
+ artefacts_count
+ archetypes_count
+ templates_count
+ opts_count
Looks goods for me!
I think this is done, if the changes are merged, you can close this one, thanks.