mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #9917 from baude/machineconventions
fix machine naming conventions
This commit is contained in:
@ -15,8 +15,8 @@ import (
|
|||||||
var (
|
var (
|
||||||
initCmd = &cobra.Command{
|
initCmd = &cobra.Command{
|
||||||
Use: "init [options] [NAME]",
|
Use: "init [options] [NAME]",
|
||||||
Short: "initialize a vm",
|
Short: "Initialize a virtual machine",
|
||||||
Long: "initialize a virtual machine for Podman to run on. Virtual machines are used to run Podman.",
|
Long: "initialize a virtual machine ",
|
||||||
RunE: initMachine,
|
RunE: initMachine,
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
Example: `podman machine init myvm`,
|
Example: `podman machine init myvm`,
|
||||||
|
@ -28,7 +28,7 @@ var (
|
|||||||
Use: "list [options]",
|
Use: "list [options]",
|
||||||
Aliases: []string{"ls"},
|
Aliases: []string{"ls"},
|
||||||
Short: "List machines",
|
Short: "List machines",
|
||||||
Long: "List Podman managed virtual machines.",
|
Long: "List managed virtual machines.",
|
||||||
RunE: list,
|
RunE: list,
|
||||||
Args: validate.NoArgs,
|
Args: validate.NoArgs,
|
||||||
Example: `podman machine list,
|
Example: `podman machine list,
|
||||||
|
@ -19,7 +19,7 @@ var (
|
|||||||
rmCmd = &cobra.Command{
|
rmCmd = &cobra.Command{
|
||||||
Use: "rm [options] [MACHINE]",
|
Use: "rm [options] [MACHINE]",
|
||||||
Short: "Remove an existing machine",
|
Short: "Remove an existing machine",
|
||||||
Long: "Remove an existing machine ",
|
Long: "Remove a managed virtual machine ",
|
||||||
RunE: rm,
|
RunE: rm,
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
Example: `podman machine rm myvm`,
|
Example: `podman machine rm myvm`,
|
||||||
|
@ -14,11 +14,11 @@ import (
|
|||||||
var (
|
var (
|
||||||
sshCmd = &cobra.Command{
|
sshCmd = &cobra.Command{
|
||||||
Use: "ssh [NAME] [COMMAND [ARG ...]]",
|
Use: "ssh [NAME] [COMMAND [ARG ...]]",
|
||||||
Short: "SSH into a virtual machine",
|
Short: "SSH into an existing machine",
|
||||||
Long: "SSH into a virtual machine ",
|
Long: "SSH into a managed virtual machine ",
|
||||||
RunE: ssh,
|
RunE: ssh,
|
||||||
Example: `podman machine ssh myvm
|
Example: `podman machine ssh myvm
|
||||||
podman machine ssh -e myvm echo hello`,
|
podman machine ssh myvm echo hello`,
|
||||||
ValidArgsFunction: autocompleteMachineSSH,
|
ValidArgsFunction: autocompleteMachineSSH,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -14,7 +14,7 @@ var (
|
|||||||
startCmd = &cobra.Command{
|
startCmd = &cobra.Command{
|
||||||
Use: "start [MACHINE]",
|
Use: "start [MACHINE]",
|
||||||
Short: "Start an existing machine",
|
Short: "Start an existing machine",
|
||||||
Long: "Start an existing machine ",
|
Long: "Start a managed virtual machine ",
|
||||||
RunE: start,
|
RunE: start,
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
Example: `podman machine start myvm`,
|
Example: `podman machine start myvm`,
|
||||||
|
@ -14,7 +14,7 @@ var (
|
|||||||
stopCmd = &cobra.Command{
|
stopCmd = &cobra.Command{
|
||||||
Use: "stop [MACHINE]",
|
Use: "stop [MACHINE]",
|
||||||
Short: "Stop an existing machine",
|
Short: "Stop an existing machine",
|
||||||
Long: "Stop an existing machine ",
|
Long: "Stop a managed virtual machine ",
|
||||||
RunE: stop,
|
RunE: stop,
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
Example: `podman machine stop myvm`,
|
Example: `podman machine stop myvm`,
|
||||||
|
Reference in New Issue
Block a user