DATALAD-ANNOTATE-PATHS(1)

πŸ“¦ version 0.15.5, in ubuntu jammy

πŸ’– 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 annotation
  • annexkey β€” annex key for the content of a file
  • logger β€” logger for reporting a message
  • message β€” message (plus possible tsring expansion arguments)
  • orig_request β€” original input by which a path was determined
  • parentds β€” path of dataset containing the annotated path (superdataset for subdatasets)
  • path β€” absolute path that is annotated
  • process_content β€” flag that content underneath the path is to be processed
  • process_updated_only β€” flag that only known dataset components are to be processed
  • raw_input β€” flag whether this path was given as raw (non-annotated) input
  • refds β€” path of a reference/base dataset the annotated path is part of
  • registered_subds β€” flag whether a dataset is known to be a true subdataset of PARENTDS
  • revision β€” the recorded commit for a subdataset in a superdataset
  • revision_descr β€” a human-readable description of REVISION
  • source_url β€” URL a dataset was installed from
  • staged β€” flag whether a path is known to be "staged" in its containing dataset
  • state β€” 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-np forcefully 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 reporting type='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 that git diff understands (commit, treeish, tag, etc). See the documentation of datalad diff --revision for 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-*-discovery flags and --revision-change-discovery are 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