datalad fsspec-head

Synopsis

datalad fsspec-head [-h] [-d DATASET] [-n LINES] [-c BYTES] [--mode-transparent] [--caching {none,ondisk}] [--version] path

Description

Show leading lines/bytes of an annexed file by fetching its data from a remote URL

Options

path

Path to an annexed file to show the leading contents of. 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

dataset to operate on. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) or value must be NONE

-n LINES, –lines LINES

How many lines to show (default 10). Constraints: value must be convertible to type ‘int’ or value must be NONE

-c BYTES, –bytes BYTES

How many bytes to show. Constraints: value must be convertible to type ‘int’ or value must be NONE

–mode-transparent

Support reading from .git directory.

–caching {none,ondisk}

Whether to cache fsspec’ed files on disk on not at all.

–version

show the module and its version which provides the command

Authors

datalad is developed by The DataLad Team and Contributors <team@datalad.org>.