vmctl show

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

vmctl show

phessler
My fingers have typed "vmctl show" instead of "vmctl status" for over a
year now, so add it as an alias.

OK?


Index: main.c
===================================================================
RCS file: /cvs/openbsd/src/usr.sbin/vmctl/main.c,v
retrieving revision 1.34
diff -u -p -u -p -r1.34 main.c
--- main.c 3 Jan 2018 05:39:56 -0000 1.34
+++ main.c 10 Feb 2018 23:46:44 -0000
@@ -68,6 +68,7 @@ struct ctl_command ctl_commands[] = {
  { "log", CMD_LOG, ctl_log, "(verbose|brief)" },
  { "reload", CMD_RELOAD, ctl_reload, "" },
  { "reset", CMD_RESET, ctl_reset, "[all|vms|switches]" },
+ { "show", CMD_STATUS, ctl_status, "[id]" },
  { "start", CMD_START, ctl_start, "\"name\""
     " [-Lc] [-b image] [-r image] [-m size]\n"
     "\t\t[-n switch] [-i count] [-d disk]*" },
Index: vmctl.8
===================================================================
RCS file: /cvs/openbsd/src/usr.sbin/vmctl/vmctl.8,v
retrieving revision 1.37
diff -u -p -u -p -r1.37 vmctl.8
--- vmctl.8 3 Jan 2018 08:17:18 -0000 1.37
+++ vmctl.8 10 Feb 2018 23:48:59 -0000
@@ -143,6 +143,10 @@ with '.', '-' or '_'.
 .It Cm status Op Ar id
 Lists VMs running on the host, optionally listing just the selected VM
 .Ar id .
+.It Cm show Op Ar id
+An alias for the
+.Cm status
+command.
 .It Cm stop Ar id
 Stops (terminates) a VM defined by the specified VM
 .Ar id .


--
Coito ergo sum

Reply | Threaded
Open this post in threaded view
|

Re: vmctl show

Sebastian Benoit-3
Peter Hessler([hidden email]) on 2018.02.11 00:51:57 +0100:
> My fingers have typed "vmctl show" instead of "vmctl status" for over a
> year now, so add it as an alias.

oh yes please, i thought i was the only stupid one.

> OK?

ok

> Index: main.c
> ===================================================================
> RCS file: /cvs/openbsd/src/usr.sbin/vmctl/main.c,v
> retrieving revision 1.34
> diff -u -p -u -p -r1.34 main.c
> --- main.c 3 Jan 2018 05:39:56 -0000 1.34
> +++ main.c 10 Feb 2018 23:46:44 -0000
> @@ -68,6 +68,7 @@ struct ctl_command ctl_commands[] = {
>   { "log", CMD_LOG, ctl_log, "(verbose|brief)" },
>   { "reload", CMD_RELOAD, ctl_reload, "" },
>   { "reset", CMD_RESET, ctl_reset, "[all|vms|switches]" },
> + { "show", CMD_STATUS, ctl_status, "[id]" },
>   { "start", CMD_START, ctl_start, "\"name\""
>      " [-Lc] [-b image] [-r image] [-m size]\n"
>      "\t\t[-n switch] [-i count] [-d disk]*" },
> Index: vmctl.8
> ===================================================================
> RCS file: /cvs/openbsd/src/usr.sbin/vmctl/vmctl.8,v
> retrieving revision 1.37
> diff -u -p -u -p -r1.37 vmctl.8
> --- vmctl.8 3 Jan 2018 08:17:18 -0000 1.37
> +++ vmctl.8 10 Feb 2018 23:48:59 -0000
> @@ -143,6 +143,10 @@ with '.', '-' or '_'.
>  .It Cm status Op Ar id
>  Lists VMs running on the host, optionally listing just the selected VM
>  .Ar id .
> +.It Cm show Op Ar id
> +An alias for the
> +.Cm status
> +command.
>  .It Cm stop Ar id
>  Stops (terminates) a VM defined by the specified VM
>  .Ar id .
>
>
> --
> Coito ergo sum
>

Reply | Threaded
Open this post in threaded view
|

Re: vmctl show

Ax0n
Guilty.

On Feb 10, 2018 17:56, "Sebastian Benoit" <[hidden email]> wrote:

> Peter Hessler([hidden email]) on 2018.02.11 00:51:57 +0100:
> > My fingers have typed "vmctl show" instead of "vmctl status" for over a
> > year now, so add it as an alias.
>
> oh yes please, i thought i was the only stupid one.
>
> > OK?
>
> ok
>
> > Index: main.c
> > ===================================================================
> > RCS file: /cvs/openbsd/src/usr.sbin/vmctl/main.c,v
> > retrieving revision 1.34
> > diff -u -p -u -p -r1.34 main.c
> > --- main.c    3 Jan 2018 05:39:56 -0000       1.34
> > +++ main.c    10 Feb 2018 23:46:44 -0000
> > @@ -68,6 +68,7 @@ struct ctl_command ctl_commands[] = {
> >       { "log",        CMD_LOG,        ctl_log,        "(verbose|brief)"
> },
> >       { "reload",     CMD_RELOAD,     ctl_reload,     "" },
> >       { "reset",      CMD_RESET,      ctl_reset,
> "[all|vms|switches]" },
> > +     { "show",       CMD_STATUS,     ctl_status,     "[id]" },
> >       { "start",      CMD_START,      ctl_start,      "\"name\""
> >           " [-Lc] [-b image] [-r image] [-m size]\n"
> >           "\t\t[-n switch] [-i count] [-d disk]*" },
> > Index: vmctl.8
> > ===================================================================
> > RCS file: /cvs/openbsd/src/usr.sbin/vmctl/vmctl.8,v
> > retrieving revision 1.37
> > diff -u -p -u -p -r1.37 vmctl.8
> > --- vmctl.8   3 Jan 2018 08:17:18 -0000       1.37
> > +++ vmctl.8   10 Feb 2018 23:48:59 -0000
> > @@ -143,6 +143,10 @@ with '.', '-' or '_'.
> >  .It Cm status Op Ar id
> >  Lists VMs running on the host, optionally listing just the selected VM
> >  .Ar id .
> > +.It Cm show Op Ar id
> > +An alias for the
> > +.Cm status
> > +command.
> >  .It Cm stop Ar id
> >  Stops (terminates) a VM defined by the specified VM
> >  .Ar id .
> >
> >
> > --
> > Coito ergo sum
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: vmctl show

Mike Larkin
In reply to this post by phessler
On Sun, Feb 11, 2018 at 12:51:57AM +0100, Peter Hessler wrote:

> My fingers have typed "vmctl show" instead of "vmctl status" for over a
> year now, so add it as an alias.
>
> OK?
>
>
> Index: main.c
> ===================================================================
> RCS file: /cvs/openbsd/src/usr.sbin/vmctl/main.c,v
> retrieving revision 1.34
> diff -u -p -u -p -r1.34 main.c
> --- main.c 3 Jan 2018 05:39:56 -0000 1.34
> +++ main.c 10 Feb 2018 23:46:44 -0000
> @@ -68,6 +68,7 @@ struct ctl_command ctl_commands[] = {
>   { "log", CMD_LOG, ctl_log, "(verbose|brief)" },
>   { "reload", CMD_RELOAD, ctl_reload, "" },
>   { "reset", CMD_RESET, ctl_reset, "[all|vms|switches]" },
> + { "show", CMD_STATUS, ctl_status, "[id]" },
>   { "start", CMD_START, ctl_start, "\"name\""
>      " [-Lc] [-b image] [-r image] [-m size]\n"
>      "\t\t[-n switch] [-i count] [-d disk]*" },
> Index: vmctl.8
> ===================================================================
> RCS file: /cvs/openbsd/src/usr.sbin/vmctl/vmctl.8,v
> retrieving revision 1.37
> diff -u -p -u -p -r1.37 vmctl.8
> --- vmctl.8 3 Jan 2018 08:17:18 -0000 1.37
> +++ vmctl.8 10 Feb 2018 23:48:59 -0000
> @@ -143,6 +143,10 @@ with '.', '-' or '_'.
>  .It Cm status Op Ar id
>  Lists VMs running on the host, optionally listing just the selected VM
>  .Ar id .
> +.It Cm show Op Ar id
> +An alias for the
> +.Cm status
> +command.
>  .It Cm stop Ar id
>  Stops (terminates) a VM defined by the specified VM
>  .Ar id .
>
>
> --
> Coito ergo sum
>

No objections. Since at least 3-4 people have said they want it, go for it.