3 nitls - lists the packages, groups and paths of Nit sources files.
7 nitls [*options*] [*FILE*]...
11 `nitls` is used to list Nit files in directories and extract the module-group-package relation.
13 It is basically a `ls` or a simple `find` specialized on `.nit` source files.
15 By default `nitls` works with the current directory (`.`).
17 Each file can then be:
19 * A Nit module (file).
20 In this case, only this single module is considered
21 * A Nit group (directory).
22 In this case, all the modules of the groups (and recursively the sub-groups) are considered
24 In this case, all its entries are analysed.
25 Files that are Nit modules and directories that are Nit groups are considered.
26 Other files and directories are ignored.
30 Show the tree of modules from the current directory.
34 Show the list of packages imported by the modules of the current directory.
40 Each combination of option
44 Three presentation modes are available.
47 List packages in a flat list (default).
49 Only package are displayed (and not the individual files).
52 List source files in their groups and packages.
54 Each `.nit` file is presented in a tree of packages and groups.
57 List source files in a flat list.
59 Each `.nit` file is presented individually.
61 The three modes are exclusives.
63 The default mode is `--package` unless one on the argument is a group, then it is `--group`.
67 ### `-r`, `--recursive`
68 Process directories recursively.
70 All `.nit` files found in the specified directory and subdirectories are considered.
73 List dependencies of given modules.
75 All imported modules are also considered.
77 In --tree and --source modes, the modules directly imported are also displayed.
80 Ignore errors and files that are not a Nit source file.
82 When a file that is not a valid Nit module is encountered, it is ignored and the rest of the files are
85 Without this option, an error message is displayed and nitls terminates on such a case.
87 ## PRESENTATION OPTIONS
89 ### `-p`, `--path-only`
90 List only path (instead of name + path).
92 Paths are displayed uncolored.
95 List dependencies suitable for a rule in a Makefile.
97 Alias for `-d`, `-p` and `-s`.
101 The Nit language documentation and the source code of its tools and libraries may be downloaded from <http://nitlanguage.org>