Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Donders-Institute/dr-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
hurngchunlee committed Mar 14, 2023
2 parents f00cec3 + cbafe88 commit 843d554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/repocli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,7 @@ From version >= 0.5.0, `repocli` also supports retry on failed file upload and d

## Calling `repocli` from scripts

Since `repocli` is a standalone executable, one can integrate it with a script by making a system call. An example script illustrating how to download subject MR data from the Donders Repository collection followed by processing the downloaded data locally can be found [here](example.sh).
Since `repocli` is a standalone executable, it can be used within a shell script or by making a system call. Hereafter are some examples:

- [size.sh](https://github.com/Donders-Institute/dr-tools/blob/main/cmd/repocli/size.sh) gets the total size and number of files in a remote (WebDAV) directory.
- [download_n_process.sh](https://github.com/Donders-Institute/dr-tools/blob/main/cmd/repocli/download_n_process.sh) downloads the MR data from a Donders Repository followed by processing it locally.

0 comments on commit 843d554

Please sign in to comment.