Rename the new "set" command to "modify"

This commit is contained in:
Vitaliy Filippov
2021-11-13 22:39:17 +03:00
parent 697ee30a26
commit 110b39900b
4 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -103,7 +103,7 @@ void cli_tool_t::help()
"%s snap-create [-p|--pool <id|name>] <image>@<snapshot>\n"
" Create a snapshot of image <name>. May be used live if only a single writer is active.\n"
"\n"
"%s set <name> [-s|--size <size>] [--readonly | --readwrite] [-f|--force]\n"
"%s modify <name> [-s|--size <size>] [--readonly | --readwrite] [-f|--force]\n"
" Resize image or change its readonly status. Images with children can't be made read-write.\n"
" If the new size is smaller than the old size, extra data will be purged.\n"
" You should resize file system in the image, if present, before shrinking it.\n"
@@ -243,6 +243,11 @@ void cli_tool_t::run(json11::Json cfg)
// Create image/snapshot
action_cb = start_create(cfg);
}
else if (cmd[0] == "modify")
{
// Modify image
action_cb = start_modify(cfg);
}
else if (cmd[0] == "rm-data")
{
// Delete inode data