{
  "id": "micasa",
  "name": "Micasa",
  "homepage": "https://micasa.dev/",
  "description": "TUI for tracking home projects, maintenance schedules, appliances and quotes",
  "executables": [
    "micasa"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/micasa/config.toml",
      "~/Library/Application Support/micasa/config.toml",
      "%APPDATA%/micasa/config.toml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "micasa",
    "description": "Open the TUI on a database, print its path, back it up, or try the demo. The db, config, eval and pro subcommands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "doc",
        "kind": "manual",
        "url": "https://micasa.dev/docs/reference/cli/",
        "evidence": "micasa [database-path] [flags]\n--print-path Print the resolved database path and exit\n"
      }
    ],
    "field": [
      {
        "id": "database_path",
        "label": "Database file",
        "description": "Defaults to the standard location.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "doc"
        ]
      },
      {
        "id": "print_path",
        "label": "Print resolved database path and exit",
        "type": "boolean",
        "option": [
          "--print-path"
        ],
        "sources": [
          "doc"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open the TUI",
        "fields": [
          "database_path"
        ],
        "required": []
      },
      {
        "id": "path",
        "label": "Print database path",
        "fields": [
          "print_path"
        ],
        "required": [
          "print_path"
        ],
        "set": {
          "print_path": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "database_path",
          "print_path"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "backup"
        ],
        "label": "Back up the database",
        "source": [
          {
            "id": "doc",
            "kind": "manual",
            "url": "https://micasa.dev/docs/reference/cli/",
            "evidence": "micasa backup [destination] [flags]\n--source Source database path (default: standard location, honors MICASA_DB_PATH)\n"
          }
        ],
        "field": [
          {
            "id": "destination",
            "label": "Backup file",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "output"
            },
            "effect": "overwrite",
            "sources": [
              "doc"
            ]
          },
          {
            "id": "source",
            "label": "Source database",
            "type": "path",
            "option": [
              "--source"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "doc"
            ]
          }
        ],
        "task": [
          {
            "id": "backup",
            "label": "Back up",
            "fields": [
              "destination",
              "source"
            ],
            "required": [
              "destination"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "destination",
              "source"
            ]
          }
        ]
      },
      {
        "path": [
          "demo"
        ],
        "label": "Demo with sample data",
        "source": [
          {
            "id": "doc",
            "kind": "manual",
            "url": "https://micasa.dev/docs/reference/cli/",
            "evidence": "micasa demo [database-path] [flags]\n--seed-only Seed data and exit without launching the TUI\n--years Generate N years of simulated home ownership data\n"
          }
        ],
        "field": [
          {
            "id": "database_path",
            "label": "Database file",
            "description": "Without a path, an in-memory database is used.",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "output"
            },
            "sources": [
              "doc"
            ]
          },
          {
            "id": "seed_only",
            "label": "Seed data and exit",
            "type": "boolean",
            "option": [
              "--seed-only"
            ],
            "sources": [
              "doc"
            ]
          },
          {
            "id": "years",
            "label": "Years of sample data",
            "type": "integer",
            "option": [
              "--years"
            ],
            "sources": [
              "doc"
            ]
          }
        ],
        "task": [
          {
            "id": "demo",
            "label": "Launch demo",
            "fields": [
              "database_path",
              "years"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "database_path",
              "years",
              "seed_only"
            ]
          }
        ]
      }
    ]
  }
}
