Skip to main content

tilo_actions/tree/
mod.rs

1//! The workspace's published tree as a caller names it: an address of nested
2//! resources ending in an action, the names a resource goes by among the
3//! others under its parent, and which resource or action a name picks.
4//!
5//! Every way in reads the tree through these: MCP, the REST API, the command
6//! line and tilolang. A resource's type is a property of it, not a level of
7//! an address: an address is resources inside resources, as deep as they nest.
8
9mod address;
10mod cursor;
11mod level;
12mod names;
13mod node;
14mod pick;
15mod target;
16mod walk;
17
18pub use address::{Address, Segment};
19pub use cursor::LsCursor;
20pub use level::read_on;
21pub use names::{
22    BOUND_PREFIX, app_meant, bind_choices, bound_key, close_matches, folded, path_name,
23};
24pub use node::{
25    Level, LevelPages, Names, Node, PageMark, distinct_children, level_of, row_offset,
26    shared_names, spanned,
27};
28pub use pick::{
29    TypeNames, action_rank, is_program_form, named_beyond_its_start, only_by_id, pick, pick_action,
30    rank, reads_action,
31};
32pub use target::Called;
33pub use walk::{
34    ANSWER_WAIT, AppRef, Asker, DEEP_READS, FILES_APP, InstalledApp, LEVEL_PAGES, LISTED_NEAR,
35    Levels, ListingResolution, Pause, RESOLVED_PATHS, RESTART_PAUSE_MAX, ROOT_PEEK, Resolved, Tree,
36    Unresolved, app_named, app_names, app_of, as_the_service, below_app, is_device_resource,
37    is_window, list_names, list_or_none, listed_as, names_a_type, names_files, not_running,
38    restart_pause, type_address, within,
39};
40
41/// How many names an error lists before it stops.
42pub const NAMES_LISTED: usize = 12;
43
44/// The close matches an action no resource offers is told with.
45pub const CLOSE_MATCHES: usize = 5;