steel_core/command/brigadier/
mod.rs1#![cfg_attr(
26 not(test),
27 expect(
28 dead_code,
29 reason = "the complete Brigadier foundation includes primitives not used by current built-ins"
30 )
31)]
32
33mod argument;
34mod builder;
35mod context;
36mod context_chain;
37mod dispatcher;
38mod error;
39mod node;
40mod reader;
41mod runtime;
42mod string_range;
43mod suggestion;
44
45pub(crate) use argument::{
46 ArgumentType, CommandArgumentParser, ContainsPrimitiveArgumentValue, PrimitiveArgumentValue,
47 StringType,
48};
49pub(crate) use builder::{CommandNodeBuilder, CommandRequirementRoute};
50#[cfg_attr(
51 not(test),
52 expect(
53 unused_imports,
54 reason = "generic Brigadier builders remain available for future internal command runtimes"
55 )
56)]
57pub(crate) use builder::{argument, literal};
58#[cfg_attr(
59 not(test),
60 expect(
61 unused_imports,
62 reason = "parsed node metadata is part of the tested Brigadier foundation"
63 )
64)]
65pub(crate) use context::ParsedCommandNode;
66pub(crate) use context::{
67 ArgumentSuggestionContext, CommandContext, ParseError, ParseResults, ParsedCommandContext,
68};
69pub(crate) use context_chain::{ContextChain, ContextChainStage};
70pub(crate) use dispatcher::CommandDispatcher;
71pub(crate) use error::{CommandSyntaxError, CommandSyntaxErrorKind};
72pub(crate) use node::{
73 CommandRedirectTarget, CommandRequirement, NodeId, NodeKind, RegistrationError,
74 RegistrationErrorKind,
75};
76pub(crate) use reader::{ReaderCursor, StringReader};
77pub(crate) use runtime::{BrigadierRuntime, CommandRuntime};
78pub(crate) use string_range::StringRange;
79#[cfg_attr(
80 not(test),
81 expect(
82 unused_imports,
83 reason = "direct suggestion construction is part of the tested Brigadier foundation"
84 )
85)]
86pub(crate) use suggestion::Suggestion;
87pub(crate) use suggestion::{SuggestionError, Suggestions, SuggestionsBuilder};
88
89#[cfg(test)]
90mod tests;