mise icon indicating copy to clipboard operation
mise copied to clipboard

simplify `mise settings` commands

Open jdx opened this issue 1 year ago • 2 comments

here's what I would like to see:

$ mise settings # list all
a = true
b = true
$ mise settings a # get a value
true
$ mise settings a=false # set a value

I believe mise env-vars already works this way so we should be able to copy that logic.

jdx avatar Jan 06 '24 20:01 jdx

FYI

HAL:~/test$ mise version
2024.1.14 linux-x64 (187cc24 2024-01-09)
HAL:~/test$ mise env-vars a=b
HAL:~/test$ mise env-vars
a=b ~/test/.mise.toml
HAL:~/test$ mise env-vars a
error: invalid value 'a' for '[ENV_VARS]...'

For more information, try '--help'.

Are you wanting env-vars to also have "get a value" functionality?

4ydx avatar Jan 10 '24 14:01 4ydx

definitely

jdx avatar Jan 10 '24 14:01 jdx