Add examples for Cobra

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

First pass of entries for the Examples listed in the Cobra
Help.  Will add others in following PR's.
This commit is contained in:
TomSweeneyRedHat
2019-02-13 19:22:29 -05:00
parent dd82acd8ba
commit a7a691809a
11 changed files with 40 additions and 12 deletions

View File

@@ -49,7 +49,9 @@ var (
createCommand.GlobalFlags = MainGlobalOpts
return createCmd(&createCommand)
},
Example: "IMAGE [COMMAND [ARG...]]",
Example: `podman create alpine ls
podman create --annotation HELLO=WORLD alpine ls
podman create -t -i --name myctr alpine ls`,
}
defaultEnvVariables = map[string]string{