Skip to content

Commit

Permalink
feat: extract specific path, accept stdin as streaming input
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Mar 6, 2023
1 parent d3a9667 commit e072d34
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 109 deletions.
8 changes: 7 additions & 1 deletion cmd/car/car.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ func main1() int {
&cli.StringFlag{
Name: "file",
Aliases: []string{"f"},
Usage: "The car file to extract from",
Usage: "The car file to extract from, or '-' to read from stdin",
Required: true,
TakesFile: true,
},
&cli.StringFlag{
Name: "path",
Aliases: []string{"p"},
Usage: "The unixfs path to extract",
Required: false,
},
&cli.BoolFlag{
Name: "verbose",
Aliases: []string{"v"},
Expand Down
Loading

0 comments on commit e072d34

Please sign in to comment.