From ff5d4aacd8d163ec585d2ad4a45f43371a205e81 Mon Sep 17 00:00:00 2001 From: Rowena Foo Date: Tue, 12 Oct 2021 11:36:13 -0500 Subject: [PATCH] edit readme --- scripts/.gitignore | 1 + scripts/README.md | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 scripts/.gitignore 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 ```