hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

hare-deps.1.scd (1644B)


      1 hare-deps(1)
      2 
      3 # NAME
      4 
      5 hare deps - display the dependency tree of a Hare program or module
      6 
      7 # SYNOPSIS
      8 
      9 *hare deps* [-hd] [-T _tagset_] [_path_|_module_]
     10 
     11 # DESCRIPTION
     12 
     13 *hare deps* displays the dependency tree of a Hare program or module, as per the
     14 algorithm described in *DEPENDENCY RESOLUTION* in *hare-module*(5). The _path_
     15 argument is a path to a Hare source file or a directory which contains a Hare
     16 module (see *hare-module*(5)). If no path is given, the Hare module contained in
     17 the current working directly is used.
     18 
     19 By default, the dependency tree is pretty-printed using Unicode box-drawing
     20 characters.
     21 
     22 # OPTIONS
     23 
     24 *-h*
     25 	Print the help text.
     26 
     27 *-D*
     28 	Print only the direct dependencies of the module, and its submodules
     29 	with the *-s* option.
     30 
     31 *-d*
     32 	Print the dependency tree as a dot file for use with *graphviz*(1).
     33 
     34 *-s*
     35 	Recursively collect submodules below the specified path or module's
     36 	directory. A path should be a source directory to reliably collect
     37 	dependencies.
     38 
     39 *-t*
     40 	Print the dependency tree as a field-based plain text output. Each
     41 	line has two fields, a module and one of its dependencies. If the
     42 	module (or one of its submodules with the *-s* option) does not have
     43 	dependencies, the second field contains just a dash. The text output
     44 	is a suitable input for *tsort*(1).
     45 
     46 *-T* _tagset_
     47 	Set or unset build tags. See *BUILD TAGS* in *hare-module*(5).
     48 
     49 # ENVIRONMENT
     50 
     51 The following environment variables affect *hare deps*' execution:
     52 
     53 |[ *HAREPATH*
     54 :< The list of directories to search for dependencies in.
     55 |  *NO_COLOR*
     56 :  Disables all color output when set to a non-empty string.
     57 
     58 # SEE ALSO
     59 
     60 *hare-module*(5)