That wouldn't work, because old versions would reject the flag. This means scripts will need to add this flag in addition to the -ignore-stdin flag. Let users opt-out of the feature via a flag. I don't know how common keys with a leading dot are.ĭisable the feature when not in tty-mode. It would still change the meaning of some commands that already work right now. That would also make the value more flexible, because then you can combine it with the existing separators. (Maybe inverting jq is a good strategy in general?) That's reminiscent of jq, so hopefully it's not too weird. Maybe a leading dot? Then you'd have e.g.foo.bar=5. = and =: could work but I don't love them.Īnother solution would be to leave the separator alone, and add a marker to the key. But is for files, and has to be escaped or it'll end the command, so that just leaves = and. Ideally a separator would be made up of those existing special characters. Because of that, the characters =, :, (and \) are handled specially and may be escaped in keys and values. HTTPie already has :, =, =, :=, and as separators. (It would be fully backward compatible to change the meaning of an existing separator using a flag, but that's tedious and doesn't let you mix.) There's no fully backward compatible way to add a new separator. Question 4: How are these marked? =3 already has a meaning, changing that would be disruptive. We could just forbid it, and if we find a good reason to handle it one way or the other it can be loosened later without breaking backward compatibility. I think jarg's behavior is bad, because it changes the meaning of depending on the context. How object and array clashes should be handled?.Do we want to support specifying an index when constructing array?Īre there use cases for that? It seems a bit niche, and treating anything between brackets as a string would be simpler.Do we want to support bodies whose root is an array?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |