Closed kyllingstad closed 5 years ago
Feels a bit weird that
cse run c:\dev\cse\cse-demos\dp-ship
is valid syntax, but
cse inspect c:\dev\cse\cse-demos\dp-ship\DPController.fmu
is not valid and results in
Error: No resolvers available to handle URI: c:\dev\cse\cse-demos\dp-ship\DPController.fmu
if we don't allow c:\dev\cse\....
we should provide examples on proper uri in the help like file:///c:/dev/cse...
@ljamt:
Feels a bit weird that
cse run c:\dev\cse\cse-demos\dp-ship
is valid syntax, butcse inspect c:\dev\cse\cse-demos\dp-ship\DPController.fmu
is not valid and results inError: No resolvers available to handle URI: c:\dev\cse\cse-demos\dp-ship\DPController.fmu
I agree. A solution might be to make "X:\...", where X is any letter, a special case that is always treated as a path on Windows. There might exist corner cases where X is in fact a URI scheme, but we can deal with those if and when they arise. Agree?
I agree. A solution might be to make "X:...", where X is any letter, a special case that is always treated as a path on Windows. There might exist corner cases where X is in fact a URI scheme, but we can deal with those if and when they arise. Agree?
Sounds good to me.
Done.
Looks good. One question: Should we consider adding parameter for not printing variables? That could be very verbose for some models.
@hplatou:
Should we consider adding parameter for not printing variables?
Great idea! Coming right up.
I've added a --no-vars
option now. Updated the PR description with new examples too.
This builds on the work in PR #1 and adds the first "non-builtin" subcommand:
inspect
. It works pretty much as specified in Confluence.~I've targeted this on the PR #1 branch so that all you see is the stuff I've added. I'll retarget it on
master
once #1 is merged.~Here is some example output:
cse inspect file:///home/larky/development/osp/cse-core/test/data/fmi1/identity.fmu
is equivalent and produces the exact same output. It should work with all our supported URI schemes, though I haven't tested them all.