{
  "id": "clock-rs",
  "name": "clock-rs",
  "homepage": "https://github.com/Oughie/clock-rs",
  "description": "Modern, digital clock that effortlessly runs in your terminal",
  "executables": [
    "clock-rs"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/clock-rs/conf.toml",
      "~/Library/Application Support/clock-rs/conf.toml",
      "%LOCALAPPDATA%/clock-rs/conf.toml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Show a clock",
    "description": "Display the current time in the terminal. The timer subcommand has its own form.",
    "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/Oughie/clock-rs#usage",
        "revision": "2026-10-27",
        "evidence": "Usage: clock-rs [OPTIONS] [COMMAND]\n  -c, --color <COLOR>        Specify the clock color\n  -i, --interval <INTERVAL>  Set the polling interval in milliseconds\n  -B, --blink                Set the colon to blink\n  -b, --bold                 Use bold text\n  -x, --x-pos <X_POS>        Set the position along the horizontal axis\n  -y, --y-pos <Y_POS>        Set the position along the vertical axis\n      --fmt <FMT>            Set the date format\n  -t                         Use the 12h format\n      --utc                  Use UTC time\n  -s, --hide-seconds         Do not show seconds\n"
      }
    ],
    "field": [
      {
        "id": "color",
        "label": "Color",
        "type": "string",
        "option": [
          "--color",
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "blink",
        "label": "Blinking colon",
        "type": "boolean",
        "option": [
          "--blink",
          "-B"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "bold",
        "label": "Bold",
        "type": "boolean",
        "option": [
          "--bold",
          "-b"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "hour12",
        "label": "12-hour format",
        "type": "boolean",
        "option": [
          "-t"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "utc",
        "label": "UTC time",
        "type": "boolean",
        "option": [
          "--utc"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "hide_seconds",
        "label": "Hide seconds",
        "type": "boolean",
        "option": [
          "--hide-seconds",
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "fmt",
        "label": "Date format",
        "type": "string",
        "option": [
          "--fmt"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "interval",
        "label": "Polling interval (ms)",
        "type": "integer",
        "option": [
          "--interval",
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "x_pos",
        "label": "X position",
        "type": "integer",
        "option": [
          "--x-pos",
          "-x"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "y_pos",
        "label": "Y position",
        "type": "integer",
        "option": [
          "--y-pos",
          "-y"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "clock",
        "label": "Show clock",
        "fields": [
          "color",
          "bold",
          "hour12",
          "hide_seconds"
        ],
        "required": []
      },
      {
        "id": "utc",
        "label": "UTC clock",
        "set": {
          "utc": [
            true
          ]
        },
        "lock": [
          "utc"
        ],
        "fields": [
          "utc",
          "color",
          "hide_seconds"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "color",
          "bold",
          "hour12",
          "utc",
          "hide_seconds"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "blink",
          "fmt",
          "interval",
          "x_pos",
          "y_pos"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "timer"
        ],
        "label": "Run a timer",
        "source": [
          {
            "id": "help",
            "kind": "help",
            "url": "https://github.com/Oughie/clock-rs#usage",
            "revision": "2026-10-27",
            "evidence": "Usage: clock-rs timer [OPTIONS]\n  -S, --seconds <SECONDS>  Add seconds to the timer\n  -M, --minutes <MINUTES>  Add minutes to the timer\n  -H, --hours <HOURS>      Add hours to the timer\n  -k, --kill               Terminate the application when the timer finishes\n"
          }
        ],
        "field": [
          {
            "id": "hours",
            "label": "Hours",
            "type": "integer",
            "option": [
              "--hours",
              "-H"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "minutes",
            "label": "Minutes",
            "type": "integer",
            "option": [
              "--minutes",
              "-M"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "seconds",
            "label": "Seconds",
            "type": "integer",
            "option": [
              "--seconds",
              "-S"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "kill",
            "label": "Exit when finished",
            "type": "boolean",
            "option": [
              "--kill",
              "-k"
            ],
            "sources": [
              "help"
            ]
          }
        ],
        "task": [
          {
            "id": "five",
            "label": "5 minute timer",
            "set": {
              "minutes": [
                5
              ]
            },
            "fields": [
              "minutes",
              "seconds",
              "hours",
              "kill"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "hours",
              "minutes",
              "seconds",
              "kill"
            ]
          }
        ]
      }
    ]
  }
}
