hare-deps(1)

πŸ’… hare-deps(1) β€” from the General Commands Manual πŸŽ€

okay bestie, welcome to hare-deps(1), literally the cutest way to spy on your Hare dependency tree 🌸

✨ NAME ✨

hare deps β€” show off the dependency tree of a Hare program or module πŸ¦‹


🌈 SYNOPSIS 🌈

hare deps [-hd] [-T tagset] [path|module]

πŸ’– DESCRIPTION πŸ’–

hare deps prints out the dependency tree of a Hare program or module, following the algorithm laid out in DEPENDENCY RESOLUTION in hare-module(5). It's giving organized. It's giving I know where my modules come from ✨

The path argument is a path to a Hare source file, or a directory that contains a Hare module (peep hare-module(5) for the deets on that). And if you don't hand it a path at all? No stress β€” it just uses the Hare module sitting in the current working directory πŸ’…

By default the dependency tree is pretty-printed with Unicode box-drawing characters. Yes, actual cute little lines. Iconic behaviour honestly πŸŽ€


πŸ‘‘ OPTIONS πŸ‘‘

  • -h β€” print the help text. your friendly little reminder of what all the flags do 🫢
  • -D β€” print only the direct dependencies of the module β€” plus its submodules when you've got -s on too. like, keep it surface-level bestie πŸ™ˆ
  • -d β€” print the dependency tree as a dot file, for use with graphviz(1). graph go brrr πŸ”₯
  • -s β€” recursively collect submodules below the specified path or module's directory. heads up: a path should be a source directory for dependency collection to be reliable ⭐
  • -t β€” print the dependency tree as field-based plain text output. each line has exactly two fields: a module, and one of its dependencies. if the module (or one of its submodules, when -s is on) has no dependencies, that second field is just a dash. and ngl, this text output is a perfect input for tsort(1) πŸ˜­πŸ’œ
  • -T tagset β€” set or unset build tags. see BUILD TAGS in hare-module(5) πŸ’«

🌸 ENVIRONMENT 🌸

these environment variables affect how hare deps runs, fr fr:

  • HAREPATH β€” the list of directories to search for dependencies in πŸ¦‹
  • NO_COLOR β€” disables all color output when set to a non-empty string. sad but valid πŸ’”

⭐ SEE ALSO ⭐

hare-module(5)


go forth and know thy dependencies, bestie πŸ’…βœ¨

that's a wrap on hare-deps(1) β€” dated 2026-05-05, and it's from the hare-deps(1) page itself πŸŽ€ bye pookie, slay your builds πŸ‘‘

πŸ“¦ where this page comes from