{
  "id": "lazyjournal",
  "name": "lazyjournal",
  "homepage": "https://github.com/Lifailon/lazyjournal",
  "description": "TUI for viewing logs from journald, auditd, file systems, containers and Kubernetes.",
  "executables": [
    "lazyjournal"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/lazyjournal/config.yml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Open lazyjournal",
    "description": "Start the log viewer with common display and source options. Short flags and the Podman/Kubernetes options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/Lifailon/lazyjournal/blob/main/main.go",
        "revision": "main 2026-10-27",
        "evidence": "--tail-lines   Change the number of log lines to output (range: 200-200000, default: 10K)\n--update-interval   Change the update interval of the log output (range: 2-10, default: 5)\n--mouse-disable   Disable mouse control support\n--wrap-disable   Disable wrap mode in log content\n--color-mode   Highlighting mode for logs (available values: default, tailspin, bat or disable)\n--docker-context   Use the specified Docker context (default: default)\n--journal-priority   Filter the log output by priority (available values: debug, info, notice, warning, err, crit, alert, emerg)\n--ssh   Connect to a remote host using standard ssh options (e.g. lazyjournal --ssh \"root@192.168.3.100 -p 22\")\n--tail-mode-disable   Disable streaming of new events (log is loaded once without update)\n"
      }
    ],
    "field": [
      {
        "id": "ssh",
        "label": "Remote host (SSH)",
        "description": "user@host, optionally followed by ssh options.",
        "type": "string",
        "option": [
          "--ssh"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "tail_lines",
        "label": "Log lines",
        "description": "200 to 200000.",
        "type": "integer",
        "option": [
          "--tail-lines"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "update_interval",
        "label": "Update interval (seconds)",
        "description": "2 to 10.",
        "type": "integer",
        "option": [
          "--update-interval"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "color_mode",
        "label": "Highlighting",
        "type": "enum",
        "option": [
          "--color-mode"
        ],
        "choices": [
          {
            "value": "default",
            "label": "Default"
          },
          {
            "value": "tailspin",
            "label": "tailspin"
          },
          {
            "value": "bat",
            "label": "bat"
          },
          {
            "value": "disable",
            "label": "Disabled"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "priority",
        "label": "Minimum journal priority",
        "type": "enum",
        "option": [
          "--journal-priority"
        ],
        "choices": [
          {
            "value": "debug",
            "label": "debug"
          },
          {
            "value": "info",
            "label": "info"
          },
          {
            "value": "notice",
            "label": "notice"
          },
          {
            "value": "warning",
            "label": "warning"
          },
          {
            "value": "err",
            "label": "err"
          },
          {
            "value": "crit",
            "label": "crit"
          },
          {
            "value": "alert",
            "label": "alert"
          },
          {
            "value": "emerg",
            "label": "emerg"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "docker_context",
        "label": "Docker context",
        "type": "string",
        "option": [
          "--docker-context"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_stream",
        "label": "Load logs once (no streaming)",
        "type": "boolean",
        "option": [
          "--tail-mode-disable"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_mouse",
        "label": "Disable mouse",
        "type": "boolean",
        "option": [
          "--mouse-disable"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_wrap",
        "label": "Disable line wrap",
        "type": "boolean",
        "option": [
          "--wrap-disable"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "remote",
        "label": "View a remote host",
        "fields": [
          "ssh"
        ],
        "required": [
          "ssh"
        ]
      },
      {
        "id": "errors",
        "label": "Errors only",
        "fields": [
          "priority"
        ],
        "required": [],
        "set": {
          "priority": [
            "err"
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "ssh",
          "priority",
          "tail_lines",
          "color_mode"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "update_interval",
          "docker_context",
          "no_stream",
          "no_mouse",
          "no_wrap"
        ]
      }
    ]
  }
}
