Skip to content

Commit 8f77630

Browse files
authored
Merge pull request #3 from filedrive-team/feature
Modify subcommand
2 parents d529560 + f9d3486 commit 8f77630

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.PHONY: build
22
build:
3-
go build -ldflags "-s -w" -o graphsplit graphsplit.go utils.go retrieve.go
3+
go build -ldflags "-s -w" -o graphsplit graphsplit.go utils.go restore.go

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ Import car file to IPFS:
4343
ipfs dag import /path/to/car-dir/car-file
4444
```
4545

46-
Retrieve files:
46+
Restore files:
4747
```sh
4848
# car-path: directory or file, in form of .car
4949
# output-dir: usually just be the same as /path/to/output-dir
50-
# parallel: number goroutines run when retrieving
51-
./graphsplit retrieve \
50+
# parallel: number goroutines run when restoring
51+
./graphsplit restore \
5252
--car-path=/path/to/car-path \
5353
--output-dir=/path/to/output-dir \
5454
--parallel=2

graphsplit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func main() {
1616
logging.SetLogLevel("*", "INFO")
1717
local := []*cli.Command{
1818
chunkCmd,
19-
retrieveCmd,
19+
restoreCmd,
2020
}
2121

2222
app := &cli.App{
@@ -170,9 +170,9 @@ var chunkCmd = &cli.Command{
170170
},
171171
}
172172

173-
var retrieveCmd = &cli.Command{
174-
Name: "retrieve",
175-
Usage: "Retrieve files from CAR files",
173+
var restoreCmd = &cli.Command{
174+
Name: "restore",
175+
Usage: "Restore files from CAR files",
176176
Flags: []cli.Flag{
177177
&cli.StringFlag{
178178
Name: "car-path",

retrieve.go renamed to restore.go

File renamed without changes.

0 commit comments

Comments
 (0)