4ba515419a570e0ea63731eb9bdd5e3996388131
[nit.git] / share / man / nitx.md
1 % NITX(1)
2
3 # NAME
4
5 nitx - displays specific pieces of API information from Nit source files.
6
7 # SYNOPSIS
8
9 nitx [*options*] FILE [COMMAND]
10
11 # DESCRIPTION
12
13 `nitx` in an interactive tool that displays informations about programs and libraries.
14
15 A command that query some information can be given as parameter.
16 This will immediately displays the information then terminates the programs.
17
18 If no command are given, the program starts an interactive session where commands are entered until `:q` is given.
19
20 # COMMANDS
21
22 `name`
23 :   lookup module, class and property with the corresponding 'name'.
24
25 `param: Type`
26 :   lookup methods using the corresponding 'Type' as parameter.
27
28 `return: Type`
29 :   lookup methods returning the corresponding 'Type'.
30
31 `new: Type`
32 :   lookup methods creating new instances of 'Type'.
33
34 `call: Property`
35 :   lookup calls to 'Property'.
36
37 `doc: name`
38 :   lookup documentation pages about 'name'.
39
40 `code: name`
41 :   lookup source code related to 'name'.
42
43 `:h`
44 :   display an help message about the commands.
45
46 `:q`
47 :   exit the tool.
48
49 # OPTIONS
50
51 `-q`
52 :       execute a query, display results in console then quit.
53
54 # SEE ALSO
55
56 The Nit language documentation and the source code of its tools and libraries may be downloaded from <http://nitlanguage.org>