RepoCapabilities class

What a concrete RepositoryAdapter (as configured) is able and permitted to do. Tools consult this to fail cleanly ("not supported / not permitted") instead of throwing when an operation is unavailable.

Constructors

RepoCapabilities({bool canWrite = false, bool canGitMutate = false, bool supportsGit = false, bool isRemote = false})
const
RepoCapabilities.fromJson(Map<String, Object?> json)
factory

Properties

canGitMutate bool
Whether mutating git operations (add/commit/checkout/…) are permitted.
final
canWrite bool
Whether mutating filesystem operations (write/edit/mkdir/move/ delete) are permitted.
final
hashCode int
The hash code for this object.
no setterinherited
isRemote bool
Whether the backend is remote (calls cross a network boundary).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsGit bool
Whether any git operation (even read-only) is available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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