ReposManifest class

The parsed repos.yaml.

Constructors

ReposManifest({required String rootUrl, required String rootBranch, required List<RepoEntry> entries, required List<RepoLink> links, required List<String> unmanaged, String? rootDescription, List<String> notes = const []})
ReposManifest.parse(String text)
Parses text, checking the rules of repos.schema.json and that no path is listed twice; throws ReposManifestException naming every problem. Unknown keys and a newer version are notes, not problems.
factory

Properties

entries → List<RepoEntry>
final
hashCode → int
The hash code for this object.
no setterinherited
final
notes → List<String>
What the reader passed over without failing, one line each (repos/3: unknown key foo (ignored)): keys it does not know and a newer version:. A check names them, so a misspelt key stays visible.
final
rootBranch → String
final
rootDescription → String?
The root's description, null when it has none.
final
rootUrl → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unmanaged → List<String>
Paths of the clones a tool owns; never cloned, never walked.
final

Methods

ignoreBlocks({Set<String> exclude = const {}}) → Map<String, List<String>>
Per parent ('' for the root), the sorted anchored ignore lines of its direct children: /<rel>/ for an entry, /<rel> for a link, as tom_repos --apply writes them.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parentOf(String path) → String
The nearest entry whose path is a prefix of path; '' for the root.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

knownVersion → const int
The format version this reader knows.