← 返回命令列表

Linux command

otree 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

View a JSON file

otree [path/to/file.json]

View YAML from stdin

cat [file.yaml] | otree

View a TOML file

otree [path/to/file.toml]

View an XML file

otree [path/to/file.xml]

说明

otree is a command-line tool for viewing structured data objects (JSON, YAML, TOML, XML) in an interactive TUI tree widget. It was designed to handle deeply nested Kubernetes YAML files and similar complex configurations. It supports root-changing, scaling, and clipboard operations. Navigation keys and colors are configurable via ~/.config/otree.toml.

参数

--debug
Write debug logs to a file.
-h, --help
Display help message.
-V, --version
Display version information.

FAQ

What is the otree command used for?

otree is a command-line tool for viewing structured data objects (JSON, YAML, TOML, XML) in an interactive TUI tree widget. It was designed to handle deeply nested Kubernetes YAML files and similar complex configurations. It supports root-changing, scaling, and clipboard operations. Navigation keys and colors are configurable via ~/.config/otree.toml.

How do I run a basic otree example?

Run `otree [path/to/file.json]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --debug do in otree?

Write debug logs to a file.