jbang
jbang copied to clipboard
jbang config list --show-origin does not show a consistent order
Describe the bug
jbang config list --show-origin
/Users/max/.jbang/jbang.properties
edit.open = idea
/Users/max/code/personal/jbangdev/jbang/jbang.properties
edit.open = idea
classpath:/jbang.properties
init.template = hello
run.debug = 4004
run.jfr = filename={baseName}.jfr
wrapper.dir = .
it should be 👍
jbang config list --show-origin
/Users/max/code/personal/jbangdev/jbang/jbang.properties
edit.open = idea
/Users/max/.jbang/jbang.properties
edit.open = idea
classpath:/jbang.properties
init.template = hello
run.debug = 4004
run.jfr = filename={baseName}.jfr
wrapper.dir = .
to be able to say first one wins.
Or we shouldn't include values found elsewhere. In any case the ordering is intuitively wrong/incomplete.
You're right, I'll see how doable that is.
Btw this is an issue with all --show-origin
options (alias, catalog)