umccr / icav2-cli-plugins

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

Add new command projectdata copy-manifest #264

Open alexiswl opened 8 months ago

alexiswl commented 8 months ago

TODO - https://github.com/umccr/icav2-cli-plugins/issues/244

For a given dict of icav2 uris, copy to their destinations (specified as a value), this provides a 1-many mapping for a given file / directory

i.e

manifest-input (can also be a yaml file)

In this case there for uri1, it only needs to go to one place (dest1/uri1), but for uri2, it needs to be copied into multiple locations (dest1/uri2, dest2/uri2).

This will call the projectdata rclone command underneath

{
  "icav2://src_project_id/path/to/src/uri1": [
    "icav2://dest_project_id/path/to/dest1/uri1"
  ],
  "icav2://src_project_id/path/to/src/uri2": [
    "icav2://dest_project_id/path/to/dest1/uri2",
    "icav2://dest_project_id/path/to/dest2/uri2",
  ]
}