Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#23959 from ccapndave/rsync-add-chmod
Browse files Browse the repository at this point in the history
Added chmod method to rsync types
  • Loading branch information
armanio123 authored Mar 8, 2018
2 parents 5cda6a8 + d1d1d18 commit 2a6ff43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion types/rsync/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface Rsync {
stdout: StreamDataHandler,
stderr: StreamDataHandler
): child_process.ChildProcess;

// cwd
cwd(cwd: string): string;

Expand All @@ -63,6 +63,7 @@ interface Rsync {
quiet(): Rsync;
dirs(): Rsync;
links(): Rsync;
chmod(flags: string): Rsync;
dry(): Rsync;

// accessor methods
Expand Down
3 changes: 2 additions & 1 deletion types/rsync/rsync-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ rsync.shell('ssh')
.quiet()
.dirs()
.links()
.chmod("ug=rwX")
.dry();


Expand Down Expand Up @@ -152,4 +153,4 @@ rsync.include('/a/file')
.include('/b/file');

// as Array
rsync.include(['/a/file', '/b/file']);
rsync.include(['/a/file', '/b/file']);

0 comments on commit 2a6ff43

Please sign in to comment.