diff options
author | Jhon Honce <jhonce@redhat.com> | 2018-05-24 17:50:37 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-25 08:45:15 +0000 |
commit | 684b544e9c45129a3d8112cfab22526440d8fd13 (patch) | |
tree | 8aa092161773f0bb171b6e15cffd5d468a1b4b88 /cmd/podman | |
parent | a7180cd5459ca063c14a60965b4487f04c0af439 (diff) | |
download | podman-684b544e9c45129a3d8112cfab22526440d8fd13.tar.gz podman-684b544e9c45129a3d8112cfab22526440d8fd13.tar.bz2 podman-684b544e9c45129a3d8112cfab22526440d8fd13.zip |
Spell check strings and comments
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes: #831
Approved by: rhatdan
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/commit.go | 2 | ||||
-rw-r--r-- | cmd/podman/create.go | 2 | ||||
-rw-r--r-- | cmd/podman/import.go | 2 | ||||
-rw-r--r-- | cmd/podman/inspect.go | 2 | ||||
-rw-r--r-- | cmd/podman/pull.go | 2 | ||||
-rw-r--r-- | cmd/podman/run_test.go | 6 | ||||
-rw-r--r-- | cmd/podman/varlink/io.projectatomic.podman.varlink | 16 |
7 files changed, 16 insertions, 16 deletions
diff --git a/cmd/podman/commit.go b/cmd/podman/commit.go index 9e468c2d9..ce8e99dd4 100644 --- a/cmd/podman/commit.go +++ b/cmd/podman/commit.go @@ -32,7 +32,7 @@ var ( }, cli.StringFlag{ Name: "author, a", - Usage: "Set the author for the image comitted", + Usage: "Set the author for the image committed", }, cli.BoolTFlag{ Name: "pause, p", diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 293762ff3..88e717f39 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -418,7 +418,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim return nil, err } - // SHM SIze + // SHM Size shmSize, err := units.FromHumanSize(c.String("shm-size")) if err != nil { return nil, errors.Wrapf(err, "unable to translate --shm-size") diff --git a/cmd/podman/import.go b/cmd/podman/import.go index 446516024..c2bcc8f5b 100644 --- a/cmd/podman/import.go +++ b/cmd/podman/import.go @@ -120,7 +120,7 @@ func importCmd(c *cli.Context) error { } // donwloadFromURL downloads an image in the format "https:/example.com/myimage.tar" -// and tempoarily saves in it /var/tmp/importxyz, which is deleted after the image is imported +// and temporarily saves in it /var/tmp/importxyz, which is deleted after the image is imported func downloadFromURL(source string) (string, error) { fmt.Printf("Downloading from %q\n", source) diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go index abc9cfb39..55c319d7d 100644 --- a/cmd/podman/inspect.go +++ b/cmd/podman/inspect.go @@ -60,7 +60,7 @@ func inspectCmd(c *cli.Context) error { } if len(args) > 0 && latestContainer { - return errors.Errorf("you cannot provide additional arguements with --latest") + return errors.Errorf("you cannot provide additional arguments with --latest") } if err := validateFlags(c, inspectFlags); err != nil { return err diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go index 0712283c3..521492dc5 100644 --- a/cmd/podman/pull.go +++ b/cmd/podman/pull.go @@ -109,7 +109,7 @@ func pullCmd(c *cli.Context) error { return errors.Wrapf(err, "error pulling image %q", image) } - // Intentially choosing to ignore if there is an error because + // Intentionally choosing to ignore if there is an error because // outputting the image ID is a NTH and not integral to the pull fmt.Println(newImage.ID()) return nil diff --git a/cmd/podman/run_test.go b/cmd/podman/run_test.go index e2d500187..93e42f5bd 100644 --- a/cmd/podman/run_test.go +++ b/cmd/podman/run_test.go @@ -88,7 +88,7 @@ func getRuntimeSpec(c *cli.Context) (*spec.Spec, error) { return runtimeSpec, nil } -// TestPIDsLimit verifies the inputed pid-limit is correctly defined in the spec +// TestPIDsLimit verifies the inputted pid-limit is correctly defined in the spec func TestPIDsLimit(t *testing.T) { a := createCLI() args := []string{"--pids-limit", "22"} @@ -100,7 +100,7 @@ func TestPIDsLimit(t *testing.T) { assert.Equal(t, runtimeSpec.Linux.Resources.Pids.Limit, int64(22)) } -// TestBLKIOWeightDevice verifies the inputed blkio weigh device is correctly defined in the spec +// TestBLKIOWeightDevice verifies the inputted blkio weigh device is correctly defined in the spec func TestBLKIOWeightDevice(t *testing.T) { a := createCLI() args := []string{"--blkio-weight-device", "/dev/zero:100"} @@ -112,7 +112,7 @@ func TestBLKIOWeightDevice(t *testing.T) { assert.Equal(t, *runtimeSpec.Linux.Resources.BlockIO.WeightDevice[0].Weight, uint16(100)) } -// TestMemorySwap verifies that the inputed memory swap is correctly defined in the spec +// TestMemorySwap verifies that the inputted memory swap is correctly defined in the spec func TestMemorySwap(t *testing.T) { a := createCLI() args := []string{"--memory-swap", "45m", "--memory", "40m"} diff --git a/cmd/podman/varlink/io.projectatomic.podman.varlink b/cmd/podman/varlink/io.projectatomic.podman.varlink index 6583065e9..f7b54cf1c 100644 --- a/cmd/podman/varlink/io.projectatomic.podman.varlink +++ b/cmd/podman/varlink/io.projectatomic.podman.varlink @@ -51,7 +51,7 @@ type ImageHistory ( ) # ImageSearch is the returned structure for SearchImage. It is returned -# in arrary form. +# in array form. type ImageSearch ( description: string, is_official: bool, @@ -330,7 +330,7 @@ method InspectContainer(name: string) -> (container: string) # ListContainerProcesses takes a name or ID of a container and returns the processes # running inside the container as array of strings. It will accept an array of string -# arguements that represent ps options. If the container cannot be found, a [ContainerNotFound](#ContainerNotFound) +# arguments that represent ps options. If the container cannot be found, a [ContainerNotFound](#ContainerNotFound) # error will be returned. # #### Example # ~~~ @@ -398,7 +398,7 @@ method ResizeContainerTty() -> (notimplemented: NotImplemented) method StartContainer(name: string) -> (container: string) # StopContainer stops a container given a timeout. It takes the name or ID of a container as well as a -# timeout value. The timeout value the time before a forceable stop to the container is applied. It +# timeout value. The timeout value the time before a forcible stop to the container is applied. It # returns the container ID once stopped. If the container cannot be found, a [ContainerNotFound](#ContainerNotFound) # error will be returned instead. See also [KillContainer](KillContainer). # #### Error @@ -411,7 +411,7 @@ method StartContainer(name: string) -> (container: string) method StopContainer(name: string, timeout: int) -> (container: string) # RestartContainer will restart a running container given a container name or ID and timeout value. The timeout -# value is the time before a forceable stop is used to stop the container. If the container cannot be found by +# value is the time before a forcible stop is used to stop the container. If the container cannot be found by # name or ID, a [ContainerNotFound](#ContainerNotFound) error will be returned; otherwise, the ID of the # container will be returned. method RestartContainer(name: string, timeout: int) -> (container: string) @@ -463,7 +463,7 @@ method GetAttachSockets(name: string) -> (sockets: Sockets) method WaitContainer(name: string) -> (exitcode: int) # RemoveContainer takes requires the name or ID of container as well a boolean representing whether a running -# container can be stopped and removed. Upon sucessful removal of the container, its ID is returned. If the +# container can be stopped and removed. Upon successful removal of the container, its ID is returned. If the # container cannot be found by name or ID, a [ContainerNotFound](#ContainerNotFound) error will be returned. # #### Example # ~~~ @@ -479,7 +479,7 @@ method RemoveContainer(name: string, force: bool) -> (container: string) method DeleteStoppedContainers() -> (containers: []string) # ListImages returns an array of ImageInList structures which provide basic information about -# an image currenly in storage. See also [InspectImage](InspectImage). +# an image currently in storage. See also [InspectImage](InspectImage). method ListImages() -> (images: []ImageInList) # This function is not implemented yet. @@ -507,7 +507,7 @@ method PushImage(name: string, tag: string, tlsverify: bool) -> (image: string) # be found, an [ImageNotFound](#ImageNotFound) error will be returned; otherwise, the ID of the image is returned on success. method TagImage(name: string, tagged: string) -> (image: string) -# RemoveImage takes the name or ID of an image as well as a booleon that determines if containers using that image +# RemoveImage takes the name or ID of an image as well as a boolean that determines if containers using that image # should be deleted. If the image cannot be found, an [ImageNotFound](#ImageNotFound) error will be returned. The # ID of the removed image is returned when complete. See also [DeleteUnusedImages](DeleteUnusedImages). # #### Example @@ -542,7 +542,7 @@ method Commit(name: string, image_name: string, changes: []string, author: strin method ImportImage(source: string, reference: string, message: string, changes: []string) -> (image: string) # ExportImage takes the name or ID of an image and exports it to a destination like a tarball. There is also -# a booleon option to force compression. Upon completion, the ID of the image is returned. If the image cannot +# a boolean option to force compression. Upon completion, the ID of the image is returned. If the image cannot # be found in local storage, an [ImageNotFound](#ImageNotFound) error will be returned. See also [ImportImage](ImportImage). method ExportImage(name: string, destination: string, compress: bool) -> (image: string) |