Skip to content

Commit

Permalink
update readme; print add CID
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Apr 17, 2019
1 parent c8e0f3c commit 9578e73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ VERSION:
0.0.1

COMMANDS:
pin Pin a CID
rate Get the current storage rate in wei per GigaByteHour.
cost Get the current storage cost in wei for the given GigaByteHour.
add Add and pin a file.
status Get the current storage cost in wei per GigaByteHour.
help, h Shows a list of commands or help for one command
pin Pin a CID
rate Get the current storage rate in wei per GigaByteHour.
cost Get the current storage cost in wei for the given size and duration.
add Add and pin a file.
status Get the current storage status for a CID.
receipts Query for receipts.
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--url value GOFS API URL. (default: "https://gofs.io/api/v0/") [$GOFS_API]
Expand Down
1 change: 1 addition & 0 deletions cmd/gofs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func Add(ctx context.Context, apiURL, path string) error {
return fmt.Errorf("failed to add file %q: %v", path, err)
}
fmt.Println("File uploaded and pinned.")
fmt.Println("CID:", ar.CID)
fmt.Println("Pinned until:", ar.Expiration)
fmt.Println("File size:", units.Base2Bytes(ar.Size))
return nil
Expand Down

0 comments on commit 9578e73

Please sign in to comment.