Commit b5b61f75 authored by Kevin Atkinson's avatar Kevin Atkinson

Rename "files update" to "files chcid".

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent d29930c0
......@@ -58,16 +58,16 @@ from the parent directory.
// that uses "hash"
},
Subcommands: map[string]*cmds.Command{
"read": FilesReadCmd,
"write": FilesWriteCmd,
"mv": FilesMvCmd,
"cp": FilesCpCmd,
"ls": FilesLsCmd,
"mkdir": FilesMkdirCmd,
"stat": FilesStatCmd,
"rm": FilesRmCmd,
"flush": FilesFlushCmd,
"update": FilesUpdateCmd,
"read": FilesReadCmd,
"write": FilesWriteCmd,
"mv": FilesMvCmd,
"cp": FilesCpCmd,
"ls": FilesLsCmd,
"mkdir": FilesMkdirCmd,
"stat": FilesStatCmd,
"rm": FilesRmCmd,
"flush": FilesFlushCmd,
"chcid": FilesChcidCmd,
},
}
......@@ -791,7 +791,7 @@ are run with the '--flush=false'.
},
}
var FilesUpdateCmd = &cmds.Command{
var FilesChcidCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Change the cid version or hash function of the root node of a given path.",
ShortDescription: `
......
......@@ -606,7 +606,7 @@ tests_for_files_api() {
fi
test_expect_success "can update root hash to cidv1" '
ipfs files --cid-version=1 update / &&
ipfs files --cid-version=1 chcid / &&
echo zdj7WbTaiJT1fgatdet9Ei9iDB5hdCxkbVyhyh8YTUnXMiwYi > hash_expect &&
ipfs files stat --hash / > hash_actual &&
test_cmp hash_expect hash_actual
......@@ -617,7 +617,7 @@ tests_for_files_api() {
if [ "$EXTRA" = "offline" ]; then
test_expect_success "can update root hash to blake2b-256" '
ipfs files --hash-fun=blake2b-256 update / &&
ipfs files --hash-fun=blake2b-256 chcid / &&
echo zDMZof1kvswQMT8txrmnb3JGBuna6qXCTry6hSifrkZEd6VmHbBm > hash_expect &&
ipfs files stat --hash / > hash_actual &&
test_cmp hash_expect hash_actual
......@@ -630,7 +630,7 @@ tests_for_files_api() {
fi
test_expect_success "can update root hash back to cidv0" '
ipfs files --cid-version=0 update / &&
ipfs files --cid-version=0 chcid / &&
echo QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn > hash_expect &&
ipfs files stat --hash / > hash_actual &&
test_cmp hash_expect hash_actual
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment