@cryptotaxi247 / kubo / commits / b5b61f752

Rename "files update" to "files chcid".

License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>

Kevin Atkinson committed Sep 10, 2017 at 19:46 UTC b5b61f7527c5e35a948b43b6d1b29cfa0d8d9bee
2 files changed +14 -14
core/commands/files/files.go
+11 -11
@@ -58,16 +58,16 @@ from the parent directory.
58 // that uses "hash"
59 },
60 Subcommands: map[string]*cmds.Command{
61 - "read": FilesReadCmd,
62 - "write": FilesWriteCmd,
63 - "mv": FilesMvCmd,
64 - "cp": FilesCpCmd,
65 - "ls": FilesLsCmd,
66 - "mkdir": FilesMkdirCmd,
67 - "stat": FilesStatCmd,
68 - "rm": FilesRmCmd,
69 - "flush": FilesFlushCmd,
70 - "update": FilesUpdateCmd,
61 + "read": FilesReadCmd,
62 + "write": FilesWriteCmd,
63 + "mv": FilesMvCmd,
64 + "cp": FilesCpCmd,
65 + "ls": FilesLsCmd,
66 + "mkdir": FilesMkdirCmd,
67 + "stat": FilesStatCmd,
68 + "rm": FilesRmCmd,
69 + "flush": FilesFlushCmd,
70 + "chcid": FilesChcidCmd,
71 },
72 }
73
@@ -791,7 +791,7 @@ are run with the '--flush=false'.
791 },
792 }
793
794 -var FilesUpdateCmd = &cmds.Command{
794 +var FilesChcidCmd = &cmds.Command{
795 Helptext: cmds.HelpText{
796 Tagline: "Change the cid version or hash function of the root node of a given path.",
797 ShortDescription: `
test/sharness/t0250-files-api.sh
+3 -3
@@ -606,7 +606,7 @@ tests_for_files_api() {
606 fi
607
608 test_expect_success "can update root hash to cidv1" '
609 - ipfs files --cid-version=1 update / &&
609 + ipfs files --cid-version=1 chcid / &&
610 echo zdj7WbTaiJT1fgatdet9Ei9iDB5hdCxkbVyhyh8YTUnXMiwYi > hash_expect &&
611 ipfs files stat --hash / > hash_actual &&
612 test_cmp hash_expect hash_actual
@@ -617,7 +617,7 @@ tests_for_files_api() {
617
618 if [ "$EXTRA" = "offline" ]; then
619 test_expect_success "can update root hash to blake2b-256" '
620 - ipfs files --hash-fun=blake2b-256 update / &&
620 + ipfs files --hash-fun=blake2b-256 chcid / &&
621 echo zDMZof1kvswQMT8txrmnb3JGBuna6qXCTry6hSifrkZEd6VmHbBm > hash_expect &&
622 ipfs files stat --hash / > hash_actual &&
623 test_cmp hash_expect hash_actual
@@ -630,7 +630,7 @@ tests_for_files_api() {
630 fi
631
632 test_expect_success "can update root hash back to cidv0" '
633 - ipfs files --cid-version=0 update / &&
633 + ipfs files --cid-version=0 chcid / &&
634 echo QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn > hash_expect &&
635 ipfs files stat --hash / > hash_actual &&
636 test_cmp hash_expect hash_actual