Skip to content

Commit

Permalink
fix up docstrings & README
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jun 8, 2021
1 parent 78640d8 commit 4919ece
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ recreated. The `skeleton` and `predicate` arguments cannot be used together.
### Tar.extract

```jl
extract([ predicate, ] tarball, [ dir ];
[ skeleton, ] [ copy_symlinks ]) -> dir
extract(
[ predicate, ] tarball, [ dir ];
[ skeleton = <none>, ]
[ copy_symlinks = <auto>, ]
[ set_permissions = true, ]
) -> dir
```
* `predicate :: Header --> Bool`
* `tarball :: Union{AbstractString, AbstractCmd, IO}`
Expand Down
9 changes: 6 additions & 3 deletions src/Tar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,12 @@ function list(
end

"""
extract([ predicate, ] tarball, [ dir ];
[ skeleton, ] [ copy_symlinks ],
[ set_permissions ]) -> dir
extract(
[ predicate, ] tarball, [ dir ];
[ skeleton = <none>, ]
[ copy_symlinks = <auto>, ]
[ set_permissions = true, ]
) -> dir
predicate :: Header --> Bool
tarball :: Union{AbstractString, AbstractCmd, IO}
Expand Down

0 comments on commit 4919ece

Please sign in to comment.