#!/usr/bin/env node
'use strict';

const commander = require('commander'),
	version = require('../package.json').version;

commander
	.version(version)
	.command('clean [platforms]', 'clean up build directories for one or more platforms')
	.command('cleanbuild [platforms]', 'clean, build, package and install locally')
	.command('install', 'install the built SDK')
	.command('package [platforms]', 'package one or more platforms')
	.command('build [platforms]', 'build one or more platforms')
	.command('test [platforms]', 'Runs our unit tests')
	.command('update-node-deps', 'deletes and reinstalls node dependencies')
	.command('ssri [urls]', 'generates ssri integrity hashes for URLs')
	.command('modules-integrity', 'Regenerates ssri integrity hashes for all the modules in our pre-packaged listing under support/module/packged/modules.json given the current url values')
	.command('xcode-test', 'Hacks the XCode project for iOS to copy in the unit test suite so it can be run under XCode\'s debugger')
	.command('check-ios-toplevel', 'Ensures we don\'t check in prefilled values for version/hash/timestamp')
	.command('xcode-project-build <projectDir> <targetBuildDir> <productName>', 'Runs the portion of the xcode project setup')
	.parse(process.argv);
