# 使用 Homebrew 安装 tock

查看 tock 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tock
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tock
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tock
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tock>
- **版本:** 2.0.4
- **来源摘要:** Powerful time tracking tool for the command-line
- **主页:** <https://github.com/kriuchkov/tock>
- **仓库:** <https://github.com/kriuchkov/tock>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/kriuchkov/tock/archive/refs/tags/v2.0.4.tar.gz>
- **最后更新:** 2026-08-02T18:10:39Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tock (cli)
- tock (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.4
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://github.com/kriuchkov/tock
- 检测到的最新版本: v2.0.4 (当前)
## 项目历史与用法

Tock is a Go command-line time tracker that stores activity logs in local files and presents an interactive terminal calendar. Its official README frames it as a fast, lightweight, plaintext-first tool for people who track work from the command line.

### 项目历史

The project README describes Tock as a single-binary CLI with multiple storage backends, including flat files, TodoTXT-compatible files, TimeWarrior data files, and SQLite. It also states that Tock was inspired by Bartib and aims to provide a similar time-tracking workflow in Go with a clean architecture approach and an interactive terminal UI.

### 采用历史

Tock is available through Homebrew according to both the input metadata and the official README, which also documents go install, source builds, an install script, and release downloads. Its adoption history is therefore mostly package-manager and terminal-user oriented rather than tied to a large external ecosystem.

### 使用方式

Users start and stop activities with commands such as tock start and tock stop, inspect time in calendar and list views, and export reports as text, CSV, JSON, or iCal. The README also documents machine-readable JSON commands for local agent workflows.

### 为什么软件包爱好者会关心

Tock matters in the package-nerd niche because it bridges several plaintext productivity camps: TodoTXT-compatible lines, TimeWarrior data, SQLite, shell completion, Homebrew installation, and local files that can be inspected or synchronized without a hosted service.

### 时间线

- 2026: README examples document current commands, JSON output paths, and date examples.
- 2026: Homebrew formula metadata in the batch input lists Tock as brew:tock.

### Related projects

- Bartib is named by the official README as an inspiration.
- TodoTXT and TimeWarrior are supported storage formats or backends.

### 来源

- <https://github.com/kriuchkov/tock#readme>
- <https://github.com/kriuchkov/tock/blob/master/docs/commands.md>
- source_facts.package-manager


## 安全说明

没有找到 tock 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tock
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, go, productivity, tui.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, go, productivity, tui.
- [klog](https://pkg.so/zh-hans/brew/klog/) - Shares pkgdb curated category or tags: cli, go, productivity, time-tracking.
- [typtea](https://pkg.so/zh-hans/brew/typtea/) - Shares pkgdb curated category or tags: cli, go, productivity, tui.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, tui.
- [midnight-commander](https://pkg.so/zh-hans/brew/midnight-commander/) - Shares pkgdb curated category or tags: cli, productivity, tui.
- [mprocs](https://pkg.so/zh-hans/brew/mprocs/) - Shares pkgdb curated category or tags: cli, productivity, tui.
- [newsboat](https://pkg.so/zh-hans/brew/newsboat/) - Shares pkgdb curated category or tags: cli, productivity, tui.
- [bartib](https://pkg.so/zh-hans/brew/bartib/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, productivity, time.
- [cloudpan189-go](https://pkg.so/zh-hans/brew/cloudpan189-go/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, go, line, productivity.
- [invoice](https://pkg.so/zh-hans/brew/invoice/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, go, line, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/tock.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tock.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
