DATALAD-ANNOTATE-PATHS(1)
π datalad annotate-paths(1) π
okay bestie, welcome to the datalad annotate-paths glow-up β a page from the General Commands Manual that's about to become your new obsession. grab a boba, we're doing path analysis β¨
β¨ NAME β¨
datalad annotate-paths β analyze and act upon input paths π¦
πΈ SYNOPSIS πΈ
datalad annotate-paths [-h] [-d DATASET] [-r] [-R LEVELS]
[--action LABEL] [--unavailable-path-status LABEL]
[--unavailable-path-msg message] [--nondataset-path-status LABEL]
[--no-parentds-discovery] [--no-subds-discovery] [--revision-
change-discovery] [--no-untracked-discovery] [--modified
[MODIFIED]] [--version] [PATH ...]
π DESCRIPTION π
so basically, you hand it paths (or like, "location requests" if we're being fancy), it inspects them, and it annotates them with a whole lil stack of properties. the list of recognized properties is right down below, no gatekeeping π
π§ Recognized path properties π§
actionβ label of the action that triggered the path annotationannexkeyβ annex key for the content of a fileloggerβ logger for reporting a messagemessageβ message (plus possible tsring expansion arguments)orig_requestβ original input by which a path was determinedparentdsβ path of dataset containing the annotated path (superdataset for subdatasets)pathβ absolute path that is annotatedprocess_contentβ flag that content underneath the path is to be processedprocess_updated_onlyβ flag that only known dataset components are to be processedraw_inputβ flag whether this path was given as raw (non-annotated) inputrefdsβ path of a reference/base dataset the annotated path is part ofregistered_subdsβ flag whether a dataset is known to be a true subdataset of PARENTDSrevisionβ the recorded commit for a subdataset in a superdatasetrevision_descrβ a human-readable description of REVISIONsource_urlβ URL a dataset was installed fromstagedβ flag whether a path is known to be "staged" in its containing datasetstateβ state indicator for a path in its containing dataset (clean, modified, absent (also for files), conflict)statusβ action result status (ok, notneeded, impossible, error)typeβ nature of the path (file, directory, dataset)urlβ registered URL for a subdataset in a superdataset
if modification detection is turned on, the results can also carry extra properties about the nature of the modification. go peek at the docs of the DIFF command for the tea π
π OPTIONS π
PATHβ path to be annotated. Constraints: value must be a string-h,--help,--help-npβ show this help message.--help-npforcefully disables the use of a pager for displaying the help message-d DATASET,--dataset DATASETβ an optional reference/base dataset for the paths. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path)-r,--recursiveβ if set, recurse into potential subdataset.-R LEVELS,--recursion-limit LEVELSβ limit recursion into subdataset to the given number of levels. Constraints: value must be convertible to type'int'--action LABELβ an"action"property value to include in the path annotation. Constraints: value must be a string--unavailable-path-status LABELβ a"status"property value to include in the annotation for paths that are underneath a dataset, but do not exist on the filesystem. Constraints: value must be a string [Default:'']--unavailable-path-msg messageβ a"message"property value to include in the annotation for paths that are underneath a dataset, but do not exist on the filesystem. Constraints: value must be a string--nondataset-path-status LABELβ a"status"property value to include in the annotation for paths that are not underneath any dataset. Constraints: value must be a string [Default:'error']--no-parentds-discoveryβ Flag to disable reports of parent dataset information for any path, in particular dataset root paths. Disabling saves on command run time, if this information is not needed.--no-subds-discoveryβ Flag to disable reportingtype='dataset'for subdatasets, even when they are not installed, or their mount point directory doesn't exist. Disabling saves on command run time, if this information is not needed.--revision-change-discoveryβ Flag to disable discovery of changes which were not yet committed. Disabling saves on command run time, if this information is not needed.--no-untracked-discoveryβ Flag to disable discovery of untracked changes. Disabling saves on command run time, if this information is not needed.--modified [MODIFIED]β comparison reference specification for modification detection. This can be (mostly) anything thatgit diffunderstands (commit, treeish, tag, etc). See the documentation ofdatalad diff --revisionfor details. Unmodified paths will not be annotated. If a requested path was not modified but some content underneath it was, then the request is replaced by the modified paths and those are annotated instead. This option can be used without an argument to test against changes that have been made, but have not yet been staged for a commit. Constraints: value must be a string, or value must be convertible to type bool--versionβ show the module and its version which provides the command
ngl bestie, those--no-*-discoveryflags and--revision-change-discoveryare literally just "turn the feature off to go faster" β if you don't need the info, disabling saves on command run time. slay, efficiency π
π AUTHORS π
datalad is developed by The DataLad Team and Contributors <team@datalad.org>. iconic behavior, fr fr π«Ά
aaaand that's the whole page, bestie!! π¦ this was datalad annotate-paths version 0.15.5, dated 2022-02-10, and yeah β that footer lives in the datalad annotate-paths(1) zone. go annotate some paths, you absolute main character ππ
π¦ where this page comes from
- ubuntu jammy: datalad 0.15.5-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms