adding function definition for shelljs set function

http://documentup.com/shelljs/shelljs#setoptions
This commit is contained in:
Adam J. Hines
2017-12-08 18:08:46 -05:00
parent 14d6d73e6d
commit 057473a274
2 changed files with 13 additions and 0 deletions

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 {

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");