@@ -24,7 +24,7 @@ func RegisterEdit(cmd *cobra.Command) {
2424func registerEdit (cmd * cobra.Command , commentPrefix string ) {
2525 flags := cmd .Flags ()
2626
27- flags .Int ("cpus" , 0 , commentPrefix + "number of CPUs" ) // Similar to colima's --cpu, but the flag name is slightly different (cpu vs cpus)
27+ flags .Int ("cpus" , 0 , commentPrefix + "Number of CPUs" ) // Similar to colima's --cpu, but the flag name is slightly different (cpu vs cpus)
2828 _ = cmd .RegisterFlagCompletionFunc ("cpus" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
2929 var res []string
3030 for _ , f := range completeCPUs (runtime .NumCPU ()) {
@@ -33,9 +33,9 @@ func registerEdit(cmd *cobra.Command, commentPrefix string) {
3333 return res , cobra .ShellCompDirectiveNoFileComp
3434 })
3535
36- flags .IPSlice ("dns" , nil , commentPrefix + "specify custom DNS (disable host resolver)" ) // colima-compatible
36+ flags .IPSlice ("dns" , nil , commentPrefix + "Specify custom DNS (disable host resolver)" ) // colima-compatible
3737
38- flags .Float32 ("memory" , 0 , commentPrefix + "memory in GiB" ) // colima-compatible
38+ flags .Float32 ("memory" , 0 , commentPrefix + "Memory in GiB" ) // colima-compatible
3939 _ = cmd .RegisterFlagCompletionFunc ("memory" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
4040 var res []string
4141 for _ , f := range completeMemoryGiB (memory .TotalMemory ()) {
@@ -44,36 +44,36 @@ func registerEdit(cmd *cobra.Command, commentPrefix string) {
4444 return res , cobra .ShellCompDirectiveNoFileComp
4545 })
4646
47- flags .StringSlice ("mount" , nil , commentPrefix + "directories to mount, suffix ':w' for writable (Do not specify directories that overlap with the existing mounts)" ) // colima-compatible
47+ flags .StringSlice ("mount" , nil , commentPrefix + "Directories to mount, suffix ':w' for writable (Do not specify directories that overlap with the existing mounts)" ) // colima-compatible
4848
49- flags .String ("mount-type" , "" , commentPrefix + "mount type (reverse-sshfs, 9p, virtiofs)" ) // Similar to colima's --mount-type=(sshfs|9p|virtiofs), but "reverse-sshfs" is Lima is called "sshfs" in colima
49+ flags .String ("mount-type" , "" , commentPrefix + "Mount type (reverse-sshfs, 9p, virtiofs)" ) // Similar to colima's --mount-type=(sshfs|9p|virtiofs), but "reverse-sshfs" is Lima is called "sshfs" in colima
5050 _ = cmd .RegisterFlagCompletionFunc ("mount-type" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
5151 return []string {"reverse-sshfs" , "9p" , "virtiofs" }, cobra .ShellCompDirectiveNoFileComp
5252 })
5353
54- flags .Bool ("mount-writable" , false , commentPrefix + "make all mounts writable" )
55- flags .Bool ("mount-inotify" , false , commentPrefix + "enable inotify for mounts" )
54+ flags .Bool ("mount-writable" , false , commentPrefix + "Make all mounts writable" )
55+ flags .Bool ("mount-inotify" , false , commentPrefix + "Enable inotify for mounts" )
5656
57- flags .StringSlice ("network" , nil , commentPrefix + "additional networks, e.g., \" vzNAT\" or \" lima:shared\" to assign vmnet IP" )
57+ flags .StringSlice ("network" , nil , commentPrefix + "Additional networks, e.g., \" vzNAT\" or \" lima:shared\" to assign vmnet IP" )
5858 _ = cmd .RegisterFlagCompletionFunc ("network" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
5959 // TODO: retrieve the lima:* network list from networks.yaml
6060 return []string {"lima:shared" , "lima:bridged" , "lima:host" , "lima:user-v2" , "vzNAT" }, cobra .ShellCompDirectiveNoFileComp
6161 })
6262
63- flags .Bool ("rosetta" , false , commentPrefix + "enable Rosetta (for vz instances)" )
63+ flags .Bool ("rosetta" , false , commentPrefix + "Enable Rosetta (for vz instances)" )
6464
65- flags .String ("set" , "" , commentPrefix + "modify the template inplace, using yq syntax" )
65+ flags .String ("set" , "" , commentPrefix + "Modify the template inplace, using yq syntax" )
6666
6767 // negative performance impact: https://gitlab.com/qemu-project/qemu/-/issues/334
68- flags .Bool ("video" , false , commentPrefix + "enable video output (has negative performance impact for QEMU)" )
68+ flags .Bool ("video" , false , commentPrefix + "Enable video output (has negative performance impact for QEMU)" )
6969}
7070
7171// RegisterCreate registers flags related to in-place YAML modification, for `limactl create`.
7272func RegisterCreate (cmd * cobra.Command , commentPrefix string ) {
7373 registerEdit (cmd , commentPrefix )
7474 flags := cmd .Flags ()
7575
76- flags .String ("arch" , "" , commentPrefix + "machine architecture (x86_64, aarch64, riscv64, armv7l, s390x)" ) // colima-compatible
76+ flags .String ("arch" , "" , commentPrefix + "Machine architecture (x86_64, aarch64, riscv64, armv7l, s390x)" ) // colima-compatible
7777 _ = cmd .RegisterFlagCompletionFunc ("arch" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
7878 return []string {"x86_64" , "aarch64" , "riscv64" , "armv7l" , "s390x" }, cobra .ShellCompDirectiveNoFileComp
7979 })
@@ -83,17 +83,17 @@ func RegisterCreate(cmd *cobra.Command, commentPrefix string) {
8383 return []string {"user" , "system" , "user+system" , "none" }, cobra .ShellCompDirectiveNoFileComp
8484 })
8585
86- flags .Float32 ("disk" , 0 , commentPrefix + "disk size in GiB" ) // colima-compatible
86+ flags .Float32 ("disk" , 0 , commentPrefix + "Disk size in GiB" ) // colima-compatible
8787 _ = cmd .RegisterFlagCompletionFunc ("memory" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
8888 return []string {"10" , "30" , "50" , "100" , "200" }, cobra .ShellCompDirectiveNoFileComp
8989 })
9090
91- flags .String ("vm-type" , "" , commentPrefix + "virtual machine type (qemu, vz)" ) // colima-compatible
91+ flags .String ("vm-type" , "" , commentPrefix + "Virtual machine type (qemu, vz)" ) // colima-compatible
9292 _ = cmd .RegisterFlagCompletionFunc ("vm-type" , func (* cobra.Command , []string , string ) ([]string , cobra.ShellCompDirective ) {
9393 return []string {"qemu" , "vz" }, cobra .ShellCompDirectiveNoFileComp
9494 })
9595
96- flags .Bool ("plain" , false , commentPrefix + "plain mode. Disable mounts, port forwarding, containerd, etc." )
96+ flags .Bool ("plain" , false , commentPrefix + "Plain mode. Disables mounts, port forwarding, containerd, etc." )
9797}
9898
9999func defaultExprFunc (expr string ) func (v * flag.Flag ) (string , error ) {
0 commit comments