Skip to content

Commit

Permalink
Revert "Add option to update projects individually"
Browse files Browse the repository at this point in the history
This reverts commit 077e1f2.
Which wasn't supposed to be pushed and isn't actually usefull
  • Loading branch information
RyanJarv committed May 22, 2018
1 parent 077e1f2 commit 46eacca
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ const fs = require('fs-extra')
const config = require('../lib/config')
const util = require('../lib/util')

const projectNames = config.projectNames.filter((project) => config.projects[project].ref)

program
.version(process.env.npm_package_version)
.option('--project <project>', 'run on specific project')
.option('--gclient_file <file>', 'gclient config file location')
.option('--run_hooks', 'run gclient hooks')
.option('--run_sync', 'run gclient sync')
.option('--submodule_sync', 'run submodule sync')
.option('--init', 'initialize all dependencies')
.option('--all', 'update all projects')

let projectNames = config.projectNames.filter((project) => config.projects[project].ref)

program.parse(process.argv)

if (program.project) {
projectNames = [program.project]
}
projectNames.forEach((project) => {
program.option('--' + project + '_ref <ref>', project + ' ref to checkout')
})
Expand Down

0 comments on commit 46eacca

Please sign in to comment.