title: How to implement forms in a terminal?
body: <p>I write alot of bash/zsh/nodejs scripts, and would like to allow an option to specify some options interactively in a terminal based form.</p>
  
  <p>So for example, say I run a program like so:</p>
  
  <pre><code>foo -name=test -dir=/tmp -output=tmp/it.txt
  </code></pre>
  
  <p>I'd like to be able to display a form that had those options as default values, and possibly had other values in lists that I could choose.</p>
  
  <p>Is there some way to do this that already exists?</p>
  
  <p>I think it'd be great if I could specify those options in some json, and then pass them to a program which launched my program after, </p>
  
  <p>for example, with json like so in a file named <code>args.json</code></p>
  
  <pre><code>{
      "program": "foo",
      "args": {
          "name": "test",
          "dir": "/tmp",
          "output": "tmp/it.txt"
      }
  }
  </code></pre>
  
  <p>I could run </p>
  
  <pre><code>form_runner args.json
  </code></pre>
  
  <p>and it'd display a form that let me interactively fill in the form in a terminal, and by hitting <code>enter</code>, it'd run the program.</p>