Skip to content

Commit ebf3e30

Browse files
committed
Replace "lightweight VM" with "microVM"
Since "microVM" has become the most popular term for this kind of VMs, use it here to give users a better idea of what krunvm does. Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent 8244dd6 commit ebf3e30

3 files changed

Lines changed: 18 additions & 20 deletions

File tree

src/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,5 @@ pub fn create(cfg: &mut KrunvmConfig, matches: &ArgMatches) {
126126
cfg.vmconfig_map.insert(name.clone(), vmcfg);
127127
confy::store(APP_NAME, cfg).unwrap();
128128

129-
println!("Lightweight VM created with name: {}", name);
129+
println!("microVM created with name: {}", name);
130130
}

src/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn printvm(vm: &VmConfig) {
1616

1717
pub fn list(cfg: &KrunvmConfig, _matches: &ArgMatches) {
1818
if cfg.vmconfig_map.is_empty() {
19-
println!("No lightweight VMs found");
19+
println!("No microVMs found");
2020
} else {
2121
for (_name, vm) in cfg.vmconfig_map.iter() {
2222
println!();

src/main.rs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn main() {
159159
let mut app = App::new("krunvm")
160160
.version(crate_version!())
161161
.author("Sergio Lopez <slp@redhat.com>")
162-
.about("Manage lightweight VMs created from OCI images")
162+
.about("Manage microVMs created from OCI images")
163163
.arg(
164164
Arg::with_name("v")
165165
.short("v")
@@ -168,7 +168,7 @@ fn main() {
168168
)
169169
.subcommand(
170170
App::new("changevm")
171-
.about("Change the configuration of a lightweight VM")
171+
.about("Change the configuration of a microVM")
172172
.arg(
173173
Arg::with_name("cpus")
174174
.long("cpus")
@@ -185,7 +185,7 @@ fn main() {
185185
Arg::with_name("workdir")
186186
.long("workdir")
187187
.short("w")
188-
.help("Working directory inside the lightweight VM")
188+
.help("Working directory inside the microVM")
189189
.takes_value(true),
190190
)
191191
.arg(
@@ -244,13 +244,13 @@ fn main() {
244244
.arg(
245245
Arg::with_name("dns")
246246
.long("dns")
247-
.help("DNS server to use in the lightweight VM")
247+
.help("DNS server to use in the microVM")
248248
.takes_value(true),
249249
),
250250
)
251251
.subcommand(
252252
App::new("create")
253-
.about("Create a new lightweight VM")
253+
.about("Create a new microVM")
254254
.arg(
255255
Arg::with_name("cpus")
256256
.long("cpus")
@@ -266,14 +266,14 @@ fn main() {
266266
.arg(
267267
Arg::with_name("dns")
268268
.long("dns")
269-
.help("DNS server to use in the lightweight VM")
269+
.help("DNS server to use in the microVM")
270270
.takes_value(true),
271271
)
272272
.arg(
273273
Arg::with_name("workdir")
274274
.long("workdir")
275275
.short("w")
276-
.help("Working directory inside the lightweight VM")
276+
.help("Working directory inside the microVM")
277277
.takes_value(true)
278278
.default_value("/root"),
279279
)
@@ -306,25 +306,23 @@ fn main() {
306306
),
307307
)
308308
.subcommand(
309-
App::new("delete")
310-
.about("Delete an existing lightweight VM")
311-
.arg(
312-
Arg::with_name("NAME")
313-
.help("Name of the lightweight VM to be deleted")
314-
.required(true)
315-
.index(1),
316-
),
309+
App::new("delete").about("Delete an existing microVM").arg(
310+
Arg::with_name("NAME")
311+
.help("Name of the microVM to be deleted")
312+
.required(true)
313+
.index(1),
314+
),
317315
)
318316
.subcommand(
319-
App::new("list").about("List lightweight VMs").arg(
317+
App::new("list").about("List microVMs").arg(
320318
Arg::with_name("debug")
321319
.short("d")
322320
.help("print debug information verbosely"),
323321
),
324322
)
325323
.subcommand(
326324
App::new("start")
327-
.about("Start an existing lightweight VM")
325+
.about("Start an existing microVM")
328326
.arg(Arg::with_name("cpus").long("cpus").help("Number of vCPUs"))
329327
.arg(
330328
Arg::with_name("mem")
@@ -333,7 +331,7 @@ fn main() {
333331
)
334332
.arg(
335333
Arg::with_name("NAME")
336-
.help("Name of the lightweight VM")
334+
.help("Name of the microVM")
337335
.required(true)
338336
.index(1),
339337
)

0 commit comments

Comments
 (0)