Skip to main content

Module pointer

Module pointer 

Source
Expand description

The .nib file in the folder of a tree outside its library’s folder, which names the library, as a worktree’s .git file names its repository, so that commands run there find it; and none in the folder of a tree inside it, where the commands find the library without one, and a file left there would take them over. nib and the apps that start trees settle it alike (technical design: trees).

Structs§

Found
A library that a command found, and the .nib file that named it, if one did.

Enums§

PointerError
What is wrong with a .nib file, or with writing one.
Settled
What settle did in a tree’s folder.

Constants§

LIBRARY_DATA
The folder in a library’s folder that holds the library, and the file in a tree’s folder that names it.

Functions§

check
Refuses a library that a .nib file named, unless the library keeps a tree in that very folder on this device: a .nib file from elsewhere, such as in an archive, must not point commands at the person’s library. A file in starting, the folder that nib init makes a tree, counts all the same, as init writes it anew.
check_place
Refuses where something other than a file is in the place of the tree’s .nib file, which writing must neither follow nor replace.
folder_of
The folder that a .nib file is in, for messages.
holds_library
Whether a folder’s .nib holds a library, what is left of starting one, or copies of replicas made elsewhere.
names
Whether the tree’s folder root holds a .nib file that names the library in library.
nearest
The nearest library of here and the folders it is in, below ceiling: the folder whose .nib holds it, or the one that a .nib file names.
needed
Whether commands run in the tree’s folder root need a .nib file there to find the library in library: unless the nearest library of the folder and those it is in, below ceiling, is that one, in its own folder. Another tree’s .nib file above it would name another library, or none.
resolved_as_far_as_it_exists
A folder as the file system resolves it, so that one folder is named one way: the nearest part of it that exists, resolved, then the rest, which nothing can link elsewhere yet.
settle
Settles the .nib file in the tree’s folder root, as commands there need it to find the library in library: writes the file that names it where they would not find it otherwise, as needed says, and else takes away what they would read as one, such as a file copied with the folder, which would take them over; of a link to a file, the link goes, not what it links to. A folder in its place stays, such as the library’s own where the tree’s folder is the library’s.
tree_rooted_at
The tree whose folder on this device is folder itself, in any space of the library, with its space.
write
Writes into the tree’s folder root the .nib file that names the library in library, over one that is there, and saves it, and the folder where the system allows.