1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00
nix/tests/functional/repl/doc-constant.expected

111 lines
2.6 KiB
Plaintext
Raw Normal View History

2024-07-09 13:25:45 -04:00
Nix <nix version>
Type :? for help.
nix-repl> :l doc-comments.nix
2024-07-09 13:25:45 -04:00
Added <number omitted> variables.
nix-repl> :doc constant
2024-07-09 13:25:45 -04:00
error: value does not have documentation
nix-repl> :doc lib.version
Attribute `version`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:30:3
2024-07-09 13:25:45 -04:00
Immovably fixed.
2024-07-09 13:25:45 -04:00
nix-repl> :doc lib.attr.empty
Attribute `empty`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:33:3
2024-07-09 13:25:45 -04:00
Unchangeably constant.
2024-07-09 13:25:45 -04:00
nix-repl> :doc lib.attr.undocument
2024-07-09 13:25:45 -04:00
error:
… while evaluating the attribute 'attr.undocument'
at /path/to/tests/functional/repl/doc-comments.nix:33:3:
32| /** Unchangeably constant. */
33| lib.attr.empty = { };
2024-07-09 13:25:45 -04:00
| ^
34|
2024-07-09 13:25:45 -04:00
error: attribute 'undocument' missing
at «string»:1:1:
1| lib.attr.undocument
| ^
Did you mean undocumented?
nix-repl> :doc (import ./doc-comments.nix).constant
Attribute `constant`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:27:3
2024-07-09 13:25:45 -04:00
Firmly rigid.
2024-07-09 13:25:45 -04:00
nix-repl> :doc (import ./doc-comments.nix).lib.version
Attribute `version`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:30:3
2024-07-09 13:25:45 -04:00
Immovably fixed.
2024-07-09 13:25:45 -04:00
nix-repl> :doc (import ./doc-comments.nix).lib.attr.empty
Attribute `empty`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:33:3
2024-07-09 13:25:45 -04:00
Unchangeably constant.
2024-07-09 13:25:45 -04:00
nix-repl> :doc (import ./doc-comments.nix).lib.attr.undocumented
Attribute `undocumented`
2024-07-09 13:25:45 -04:00
… defined at /path/to/tests/functional/repl/doc-comments.nix:35:3
2024-07-09 13:25:45 -04:00
No documentation found.
2024-07-09 13:25:45 -04:00
nix-repl> :doc missing
2024-07-09 13:25:45 -04:00
error: undefined variable 'missing'
at «string»:1:1:
1| missing
| ^
nix-repl> :doc constanz
2024-07-09 13:25:45 -04:00
error: undefined variable 'constanz'
at «string»:1:1:
1| constanz
| ^
nix-repl> :doc missing.attr
2024-07-09 13:25:45 -04:00
error: undefined variable 'missing'
at «string»:1:1:
1| missing.attr
| ^
nix-repl> :doc lib.missing
2024-07-09 13:25:45 -04:00
error: attribute 'missing' missing
at «string»:1:1:
1| lib.missing
| ^
nix-repl> :doc lib.missing.attr
2024-07-09 13:25:45 -04:00
error: attribute 'missing' missing
at «string»:1:1:
1| lib.missing.attr
| ^
nix-repl> :doc lib.attr.undocumental
2024-07-09 13:25:45 -04:00
error:
… while evaluating the attribute 'attr.undocumental'
at /path/to/tests/functional/repl/doc-comments.nix:33:3:
32| /** Unchangeably constant. */
33| lib.attr.empty = { };
2024-07-09 13:25:45 -04:00
| ^
34|
2024-07-09 13:25:45 -04:00
error: attribute 'undocumental' missing
at «string»:1:1:
1| lib.attr.undocumental
| ^
Did you mean undocumented?