To install a command from git-auto-download (e.g. the download command) you first need to get the repository to your computer. There you have to navigate to it using a command line. When in the git-auto-download folder, change the directory to the folder named like the command you want to install (in this case "download").
Now run the command:
$ npm link
(npm needs to be installed)
npm will link the command to your environment variables. You can now use the command simply by typing its name into the console:
$ download
With the download command you can automatically download a given csv-list of repositories to a specified folder, by default this folder is git-repositories. You can also prepare the repositories to download for grading. This will create a review branch and a template file to every given repository.
Download a list of given git-repositories into the folder git-repositories (either existant or will be created, name is editable in git-auto-download/download/src/settings.js). The csv-file must be formatted like that:
format:
path
[repository-link]
[repository-link]
[...]
example:
path
https://github.com/Username/repository1
https://github.com/Username/repository2
https://github.com/Username/repository3
Download a list of given git-repositories into the folder git-repositories and prepare them for grading, meaning:
- a new branch review will be created in every repository
- a new file, by default called revision.md (editable in git-auto-download/download/src/settings.js), will be created
- the file is a copy of the template file specified as second argument of the command