Merge pull request #22061 from thebanjomatic/shelljs_set

adding missing function definition for shelljs `set` function
This commit is contained in:
Mine Starks
2017-12-11 09:18:11 -08:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -417,6 +417,12 @@ export function touch(files: string[]): void;
export function touch(options: TouchOptionsLiteral, ...files: Array<string | string[]>): void;
export function touch(options: TouchOptionsArray, ...files: Array<string | string[]>): void;
/**
* Sets global configuration variables
* @param options Available options: `+/-e`: exit upon error (`config.fatal`), `+/-v`: verbose: show all commands (`config.verbose`), `+/-f`: disable filename expansion (globbing)
*/
export function set(options: string): void;
// Configuration
export interface ShellConfig {
+7
View File
@@ -106,6 +106,13 @@ const childProc = shell.exec("node --version", (code: number) => {
});
pid = childProc.pid;
shell.set('+e');
shell.set('-e');
shell.set('+v');
shell.set('-v');
shell.set('+f');
shell.set('-f');
shell.chmod(755, "/Users/brandon");
shell.chmod("755", "/Users/brandon"); // same as above
shell.chmod("u+x", "/Users/brandon");