umccr / icav2-cli-plugins

A set of additional subcommands for icav2
MIT License
2 stars 0 forks source link

icav2 projectdata ls /path/ is failing #278

Closed alexiswl closed 4 months ago

alexiswl commented 4 months ago

Returns

icav2 projectdata ls /
2024-08-05 16:26:47,844 - ERROR    - __init__                  - coerce_magical_value                     : LineNo. 223  - Tried to get the data object for / but failed because could not get the project id
2024-08-05 16:26:47,845 - ERROR    - __init__                  - coerce_magical_value                     : LineNo. 225  - Could not get the project id from either the env var OR the icav2 session file
Usage:
    icav2 projectdata ls help
    icav2 projectdata ls [<data>]
                         [-l | --long-listing]
                         [-t | --time]
                         [-r | --reverse]

Description:
    List data in directory, similar to ls in a posix file system

Options:
    <data_path>             Optional, path to icav2 data folder you wish to download from,
                            May also specify a folder id or an icav2 uri,
                            Default is the root folder '/'
    -l, --long-listing      Optional, use long-listing format to show owner, modification timestamp and size
    -t, --time              Optional, sort items by time
    -r, --reverse           Optional, reverse order

Environment variables:
    ICAV2_BASE_URL           Optional, default set as https://ica.illumina.com/ica/rest
    ICAV2_PROJECT_ID         Optional, taken from "$HOME/.icav2/.session.ica.yaml" if not set
    ICAV2_ACCESS_TOKEN       Optional, taken from "$HOME/.icav2/.session.ica.yaml" if not set

Example: icav2 projectdata ls /reference_data/