-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dev): observation print commands #762
base: main
Are you sure you want to change the base?
Conversation
Seeing as we're re-using the |
Yeah looking back at the commands, there's a ton of logic overlap so that might be a fair way to refactor that. Let me poke at that a bit more and throw this back up |
@mildwonkey it's been thrown up 🤮 🤣 |
I like it!! I think you still need to update the lula_dev docs but otherwise 👩🏻🍳 💋 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic itself I don't have much in the way of concerns. I'd like to document the constraints around composed component definitions as that looks like an obvious "gotcha" that will occur.
Otherwise my primary concern is command location - does a sub-command of dev
feel appropriate here if the story we've been telling to-date is that dev
is meant for validations
and separate/distinct from OSCAL?
Actually, I just added the compose to that step - the wrinkle to that is that it doesn't currently support templating, but that might be something we can add via #771 ?
I guess I wasn't thinking Our help text for dev is "Collection of dev commands to make dev life easier", our help text for tools is "Collection of additional commands to make OSCAL easier"... feels like this is a little of both haha, although print logic is more lula <> OSCAL specific rather than standalone OSCAL (since we're relaying on specific props/links) so maybe tools doesn't make sense either. |
That sounds good.
My wanting to think about command locality is still an open question that I've made for if
(maybe not in scope today) - This highlights another area of opportunity which is documenting the design - as this may be Lula opinionation today - but something we should look to have available for review and standardization from the OSCAL community provided there was interest - either in changing our logic or others following the pattern. |
@brandtkeller went ahead and moved the commands to |
Description
Dev commands to print the associated resources and validation provided an Observation UUID
print-validation
command is that the component definition must be composed, so the ID can be referenced from the back-matter. This is probably a larger can of worms on supporting the file path in that prop, but I feel like right now the cleanest case is to enforce that it must be composedRelated Issue
Fixes #621
Type of change
Checklist before merging