mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
scripts: dev_cli: Add clean command support
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
8676759c38
commit
275cb5c92f
@ -135,6 +135,9 @@ cmd_help() {
|
|||||||
echo " Build the Cloud Hypervisor container."
|
echo " Build the Cloud Hypervisor container."
|
||||||
echo " --dev Build dev container. This is the default."
|
echo " --dev Build dev container. This is the default."
|
||||||
echo ""
|
echo ""
|
||||||
|
echo " clean [<cargo args>]]"
|
||||||
|
echo " Remove the Cloud Hypervisor artifacts."
|
||||||
|
echo ""
|
||||||
echo " help"
|
echo " help"
|
||||||
echo " Display this help message."
|
echo " Display this help message."
|
||||||
echo ""
|
echo ""
|
||||||
@ -180,6 +183,20 @@ cmd_build() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd_clean() {
|
||||||
|
cargo_args=("$@")
|
||||||
|
|
||||||
|
$DOCKER_RUNTIME run \
|
||||||
|
-ti \
|
||||||
|
--workdir "$CTR_CLH_ROOT_DIR" \
|
||||||
|
--rm \
|
||||||
|
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \
|
||||||
|
"$CTR_IMAGE" \
|
||||||
|
cargo clean \
|
||||||
|
--target-dir "$CTR_CLH_CARGO_TARGET" \
|
||||||
|
"${cargo_args[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
cmd_tests() {
|
cmd_tests() {
|
||||||
unit=false
|
unit=false
|
||||||
cargo=false
|
cargo=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user