Skip to content

How to turn off --pretty? #377

Closed Answered by TomWright
smprather asked this question in Q&A
Discussion options

You must be logged in to vote

--pretty allows you to turn on/off pretty printing.

JSON with pretty print (default):

{
  "name": "Tom"
}

JSON with pretty print off:

{"name":"Tom"}

Usage is --pretty=true/false and is documented here: https://daseldocs.tomwright.me/commands/select#flags-args


If you want to get a plain value without any encoding, you can use -w - to use the "plain" formatter, which under the hood is just go's fmt.Sprint. E.g. https://dasel.tomwright.me/s/0a257c1a-396e-4e75-820f-f61211695024

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by TomWright
Comment options

You must be logged in to vote
1 reply
@TomWright
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants