Replies: 5 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
I'm working on this here: #145 |
Beta Was this translation helpful? Give feedback.
-
Just a couple more tests to add to increase coverage but it's working and the docs can be found here: https://daseldocs.tomwright.me/usage/delete There will be a release soon. |
Beta Was this translation helpful? Give feedback.
-
The delete command is now released under Docs are here: https://daseldocs.tomwright.me/usage/delete Quick example: echo '{
"email": "contact@tomwright.me",
"name": "Tom"
}' | dasel delete -p json '.email' 'contact@tomwright.me'
{
"name": "Tom"
} |
Beta Was this translation helpful? Give feedback.
-
Oh this is a good day. |
Beta Was this translation helpful? Give feedback.
-
Dasel doesn't currently support deletions.
Idea
A new
dasel delete
command that takes a selector and deletes it.It should handle the same kinds of flags as
dasel put
except for the fact you don't need to provide any variable type or value.E.g.
Unknowns
ValueNotFound
errors be thrown if the value you're trying to delete doesn't exist?null
?Beta Was this translation helpful? Give feedback.
All reactions