kubo/core/commands/pin
Feiran Yang e93d6fbfb1
feat: warn user when 'pin remote add' while offline (#8621)
* feat: add warning message when the local node is offline for remote pinning

* feat: check is node is online

* feat: add test in t0700-remotepin.sh

* feat: use grep and fix the test

* fix: print to stdout only when --enc=text

This ensures we don't break JSON produced by --enc=json

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-15 17:19:53 -05:00
..
pin.go Merge pull request #8023 from ipfs/fix/pins-null 2021-04-28 11:28:30 -07:00
remotepin_test.go refactor: normalization with path.Clean 2021-01-27 19:28:58 -05:00
remotepin.go feat: warn user when 'pin remote add' while offline (#8621) 2022-02-15 17:19:53 -05:00