Expand description
§use-dockerignore
Primitive .dockerignore pattern vocabulary for RustUse.
This crate classifies lines as blank lines, comments, negated patterns, directory-only patterns, or ordinary patterns. It does not decide whether a filesystem path is ignored.
§Basic Usage
use use_dockerignore::{DockerIgnoreNegation, DockerIgnoreRule};
let rule = DockerIgnoreRule::parse("!target/")?;
assert_eq!(rule.negation(), DockerIgnoreNegation::Negated);
assert!(rule.is_directory_only());Structs§
- Docker
Ignore Pattern - A non-empty
.dockerignorepattern. - Docker
Ignore Rule - A classified
.dockerignorerule.
Enums§
- Docker
Ignore Negation - Pattern negation vocabulary.
- Docker
Ignore Parse Error - Error returned while parsing
.dockerignorevocabulary. - Docker
Ignore Scope - Ignore rule classification.