jbang icon indicating copy to clipboard operation
jbang copied to clipboard

jbang config list --show-origin does not show a consistent order

Open maxandersen opened this issue 3 years ago • 1 comments

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.

maxandersen avatar Dec 23 '21 23:12 maxandersen

You're right, I'll see how doable that is.

Btw this is an issue with all --show-origin options (alias, catalog)

quintesse avatar Dec 24 '21 21:12 quintesse