diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..9a18cd1 --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1 @@ +dev/stdinv.json diff --git a/scripts/README.md b/scripts/README.md index ce700fd..c1411ed 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -2,9 +2,14 @@ This directory contains scripts used in the class by the trainer ## Main.js + This script will take a repository as a template and create a copy in the target organization for each user in the input file. -Input is a JSON array of github user names. -Sample usage: + +1. Run `npm -i` +2. Create `dev/stdinv.json` in `/scripts` +3. JSON file is an array of github user names. +4. Run the following command in `/scripts`: + ``` -echo '["selkins13","chocrates"]' | node main.js --token --org --template --file /dev/stdinv +node main.js --token --org --template --file dev/stdinv.json ```