theca 1.0.0

a simple, fully featured, command line note taking tool
Documentation
{
  "title": "GOOD JSON LIST TESTS",
  "desc": "testing correct JSON output from note lists.",
  "tests": [
    {
      "name": "view",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["1", "-j"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        {
          "id": 1,
          "title": "a title this is",
          "status": "",
          "body": ""
        }
      ]
    },{
      "name": "view full",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is", "-s", "-b", "p short body ya know"],
        ["1", "-j"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        {
          "id": 1,
          "title": "a title this is",
          "status": "Started",
          "body": "p short body ya know"
        }
      ]
    },{
      "name": "empty list",
      "cmds": [
        ["new-profile"],
        ["-j"]
      ],
      "result_type": "json",
      "results": [
        null,
        []
      ]
    },{
      "name": "list",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["-j"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        [
          {
            "id": 1,
            "title": "a title this is",
            "status": "",
            "body": ""
          },{
            "id": 2,
            "title": "another title this is",
            "status": "",
            "body": ""
          }
        ]
      ]
    },{
      "name": "reversed list",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["-j", "-r"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        [
          {
            "id": 2,
            "title": "another title this is",
            "status": "",
            "body": ""
          },{
            "id": 1,
            "title": "a title this is",
            "status": "",
            "body": ""
          }
        ]
      ]
    },{
      "name": "limit list",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["-j", "-l", "1"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        [
          {
            "id": 1,
            "title": "a title this is",
            "status": "",
            "body": ""
          }
        ]
      ]
    },{
      "name": "limit reversed list",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["-j", "-r", "-l", "1"]
      ],
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        [
          {
            "id": 2,
            "title": "another title this is",
            "status": "",
            "body": ""
          }
        ]
      ]
    },{
      "name": "datesort list (takes a long time)",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["add", "third title this is"],
        ["edit", "2", "-s"],
        ["-j", "-d"]
      ],
      "cmd_interval": 1,
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        null,
        null,
        [
          {
            "id": 1,
            "title": "a title this is",
            "status": "",
            "body": ""
          },{
            "id": 3,
            "title": "third title this is",
            "status": "",
            "body": ""
          },{
            "id": 2,
            "title": "another title this is",
            "status": "Started",
            "body": ""
          }
        ]
      ]
    },{
      "name": "datesort reversed list (takes a long time)",
      "cmds": [
        ["new-profile"],
        ["add", "a title this is"],
        ["add", "another title this is"],
        ["add", "third title this is"],
        ["edit", "2", "-s"],
        ["-j", "-d", "-r"]
      ],
      "cmd_interval": 1,
      "result_type": "json",
      "results": [
        null,
        null,
        null,
        null,
        null,
        [
          {
            "id": 2,
            "title": "another title this is",
            "status": "Started",
            "body": ""
          },{
            "id": 3,
            "title": "third title this is",
            "status": "",
            "body": ""
          },{
            "id": 1,
            "title": "a title this is",
            "status": "",
            "body": ""
          }
        ]
      ]
    }
  ]
}