Expand description
§sel — Select Slices from Text Files
sel — компактная консольная утилита для быстрого извлечения фрагментов
текстовых файлов по номерам строк, диапазонам, позициям или регулярным выражениям.
Re-exports§
pub use app::App;pub use app::Stage1;pub use context::EmitOwned;pub use context::Expander;pub use context::LineContext;pub use context::NoContext;pub use error::Result;pub use error::SelError;pub use format::FormatOpts;pub use format::Formatter;pub use format::FragmentFormatter;pub use format::PlainFormatter;pub use matcher::AllMatcher;pub use matcher::LineMatcher;pub use matcher::Matcher;pub use matcher::PositionMatcher;pub use matcher::RegexMatcher;pub use pipeline::run;pub use selector::LineSpec;pub use selector::Position;pub use selector::Selector;pub use sink::Sink;pub use sink::StdoutSink;pub use types::Emit;pub use types::Line;pub use types::MatchInfo;pub use types::Role;
Modules§
- app
- Typed builder for a ready-to-run pipeline.
- cli
- Command-line argument parsing using clap.
- context
- Context expander — turns hits into an emit plan, optionally including neighbors.
- error
- Error types for
sel. - format
- Output formatting.
- matcher
- Matcher stage — decides whether a given line is a hit.
- pipeline
- Single driver for all pipelines.
- selector
- Selector parsing and representation.
- sink
- Output sinks.
- source
- Input sources — iterators that yield
Lines one at a time. - types
- Shared types used across pipeline stages.