I read the docs and go for B.
Now try to automate/script it.
Good luck with A
For scripting or automation, I want something like a code editor or IDE; not a terminal.
For scripting or automation, I want something like a code editor or IDE; not a terminal.