help wantedneed/community-inputtopic/commands
倉庫指標
- Star
- (13,906 star)
- PR 合併指標
- (平均合併 4天 2小時) (30 天內合併 28 個 PR)
描述
I wonder what ipfs add -w should do when passed stdin input.
Currently it works and ouput a hash, but I wonder what can be done with the hash and where the content passed through stdin went.
For example the following tests work when added at the end of t0040-add-and-cat.sh:
test_expect_success "'ipfs add -w' with stdin input succeeds" '
echo "Hello Worlds!" | ipfs add -w >actual
'
test_expect_success "ipfs add -w output looks good" '
HASH="QmSDqa1nBwj2Vstyfqii4SdUbYVVb7cBbkFq78DpsLj5wf" &&
echo "added $HASH " >expected &&
test_cmp expected actual
'