[Task] Add samm-cli command to display a model element's definition #570
Labels
acknowledged
Has been viewed by one of the maintainers and is ready for further work, discussion or other steps.
task
Is your task related to a problem? Please describe.
When I want to see the definition of a model element I know is present in my models root, but I don't know or remember in which namespace of file it is located, I currently can only do a text search (e.g. using
grep
or Windows Explorer). It would be much more convenient, if I can just have samm-cli show it.Describe the solution you'd like
I would like a new samm-cli subcommand called "show" (or "explain", or similar), that prints a model element's definition. I want to be able to provide either a full URN or only a local name. Let's assume my current working directory is a models root, then the command should work something like this:
Possible additional options:
--fuzzy
: Allows fuzzy search, e.g. also finds elements with non-identical but similar names--details
: Display details about where the model element was resolved from (e.g. absolut file path)--closure
: transitively include all referred elements as well, i.e. in the example also include the definition for :CelsiusTemperatureWhat should happen when multiple elements are found needs to be clarified. Possible options include:
The text was updated successfully, but these errors were encountered: