Jo: Interesting use of command and subprocess substitution

  • jo: Interesting use of command and subprocess substitution to make a CLI interface for making JSON objects in https://cli.fan/posts/jo/
$ jo -p description="Hello World Examples" public@true files=$(jo hello_world.rb=$(jo content=foo))
{
   "description": "Hello World Examples",
   "public": true,
   "files": {
      "hello_world.rb": {
         "content": "foo"
      }
   }
}
1 Like