Skip to content

Commit

Permalink
Move things in the tests directory up one directory to the root. Docu…
Browse files Browse the repository at this point in the history
…ment what a content set is in the create-group --help command
  • Loading branch information
rjcorwin committed Jun 4, 2020
1 parent cd8c6cb commit 4b7200d
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions server/src/scripts/create-group/bin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env node

if (process.argv[2] === '--help') {
console.log('Create a group given a label and an optional content set.')
console.log('Create a group given a label and an optional content set.'
console.log('A local content set is any directory found in the /tangerine/content-sets/ directory.')
console.log('Usage:')
console.log(' generate-cases <label> [contentSet]')
console.log('')
Expand Down Expand Up @@ -42,7 +43,7 @@ async function createGroup() {
if (process.argv[3]) {
const contentSet = process.argv[3].includes('.git')
? process.argv[3]
: `/tangerine/test/content-sets/${process.argv[3]}`
: `/tangerine/content-sets/${process.argv[3]}`
const groupId = group._id
const groupPath = '/tangerine/client/content/groups/' + groupId
await exec(`rm -r ${groupPath}`)
Expand Down
File renamed without changes.

0 comments on commit 4b7200d

Please sign in to comment.