.\" Generated by scdoc 1.11.4 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "hare-deps" "1" "2026-06-01" .PP .SH NAME .PP hare deps - display the dependency tree of a Hare program or module .PP .SH SYNOPSIS .PP \fBhare deps\fR [-hd] [-T \fItagset\fR] [\fIpath\fR|\fImodule\fR] .PP .SH DESCRIPTION .PP \fBhare deps\fR displays the dependency tree of a Hare program or module, as per the algorithm described in \fBDEPENDENCY RESOLUTION\fR in \fBhare-module\fR(5).\& The \fIpath\fR argument is a path to a Hare source file or a directory which contains a Hare module (see \fBhare-module\fR(5)).\& If no path is given, the Hare module contained in the current working directly is used.\& .PP By default, the dependency tree is pretty-printed using Unicode box-drawing characters.\& .PP .SH OPTIONS .PP \fB-h\fR .RS 4 Print the help text.\& .PP .RE \fB-D\fR .RS 4 Print only the direct dependencies of the module, and its submodules with the \fB-s\fR option.\& .PP .RE \fB-d\fR .RS 4 Print the dependency tree as a dot file for use with \fBgraphviz\fR(1).\& .PP .RE \fB-s\fR .RS 4 Recursively collect submodules below the specified path or module'\&s directory.\& A path should be a source directory to reliably collect dependencies.\& .PP .RE \fB-t\fR .RS 4 Print the dependency tree as a field-based plain text output.\& Each line has two fields, a module and one of its dependencies.\& If the module (or one of its submodules with the \fB-s\fR option) does not have dependencies, the second field contains just a dash.\& The text output is a suitable input for \fBtsort\fR(1).\& .PP .RE \fB-T\fR \fItagset\fR .RS 4 Set or unset build tags.\& See \fBBUILD TAGS\fR in \fBhare-module\fR(5).\& .PP .RE .SH ENVIRONMENT .PP The following environment variables affect \fBhare deps\fR'\& execution: .PP .TS l lx l lx. T{ \fBHAREPATH\fR T} T{ The list of directories to search for dependencies in.\& T} T{ \fBNO_COLOR\fR T} T{ Disables all color output when set to a non-empty string.\& T} .TE .sp 1 .SH SEE ALSO .PP \fBhare-module\fR(5)