2 The [`select()` function](https://stedolan.github.io/jq/manual/#select(boolean_expression)) only ever evaluates a boolean. The bit that's confusing from the array/`contains()` examples is the addition of the pipeline _inside_ the `select()`. For exact equality. this is not necessary as `select()` can probe an arbitrary path into the object against which it evaluates in order complete it's input expression.
6 As JackDouglas observes in a comment, the principal advantage of a text-based program is that you don't need to be either (a) sat in front of the machine, or (b) connected using a screen/window-sharing protocol, in order to run a TUI.
2 In addition to the points mentioned in the other answer, it is very relevant that TUI applications ensure that you don't need a mouse to use them (and few even support mouse usage, Vim and Midnight Commander being examples that do), while GUI ones are usually over reliant on mouse. Reaching for the mouse too much is often harmful to productivity.
Does encrypting a secret used in a script more secure than having it plaintext, if the script is in the same server and decrypts it back? 3