Skip to content

Commit

Permalink
Spelling (#1543)
Browse files Browse the repository at this point in the history
* spelling: available
* spelling: explicitly
* spelling: feel
* spelling: github
* spelling: individual
* spelling: inputting
* spelling: occurring
* spelling: overriding
* spelling: propagated
* spelling: recursively
* spelling: reuse
* spelling: single
* spelling: value

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref authored Oct 23, 2022
1 parent 8ea10b8 commit 7732a51
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/v1-bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _**( Put the version of urfave/cli that you are using here )**_

- [ ] Are you running the latest v1 release? The list of releases is [here](https://github.com/urfave/cli/releases).
- [ ] Did you check the manual for your release? The v1 manual is [here](https://github.com/urfave/cli/blob/main/docs/v1/manual.md).
- [ ] Did you perform a search about this problem? Here's the [Github guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.
- [ ] Did you perform a search about this problem? Here's the [GitHub guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.

## Dependency Management

Expand Down Expand Up @@ -50,7 +50,7 @@ reproduction steps above?

Add any other context about the problem here.

If the issue relates to a specific open source Github repo, please
If the issue relates to a specific open source GitHub repo, please
link that repo here.

If you can reproduce this issue with a public CI system, please
Expand All @@ -59,7 +59,7 @@ link a failing build here.
## Want to fix this yourself?

We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, free free to create a
this bug is easily explained and very small, feel free to create a
pull request for it. You'll want to base the PR off the `v1`
branch, all `v1` bug fix releases will be made from that branch.

Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/v2-bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _**( Put the version of urfave/cli that you are using here )**_

- [ ] Are you running the latest v2 release? The list of releases is [here](https://github.com/urfave/cli/releases).
- [ ] Did you check the manual for your release? The v2 manual is [here](https://github.com/urfave/cli/blob/main/docs/v2/manual.md)
- [ ] Did you perform a search about this problem? Here's the [Github guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.
- [ ] Did you perform a search about this problem? Here's the [GitHub guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.

## Dependency Management

Expand Down Expand Up @@ -50,7 +50,7 @@ reproduction steps above?

Add any other context about the problem here.

If the issue relates to a specific open source Github repo, please
If the issue relates to a specific open source GitHub repo, please
link that repo here.

If you can reproduce this issue with a public CI system, please
Expand All @@ -59,7 +59,7 @@ link a failing build here.
## Want to fix this yourself?

We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, free free to create a
this bug is easily explained and very small, feel free to create a
pull request for it.

## Run `go version` and paste its output here
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/v2-feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''

* [ ] Are you running the latest v2 release? The list of releases is [here](https://github.com/urfave/cli/releases).
* [ ] Did you check the manual for your release? The v2 manual is [here](https://github.com/urfave/cli/blob/main/docs/v2/manual.md).
* [ ] Did you perform a search about this feature? Here's the [Github guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.
* [ ] Did you perform a search about this feature? Here's the [GitHub guide](https://help.github.com/en/github/managing-your-work-on-github/using-search-to-filter-issues-and-pull-requests) about searching.

## What problem does this solve?

Expand Down
4 changes: 2 additions & 2 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ func TestRequiredFlagAppRunBehavior(t *testing.T) {
}},
expectedAnError: true,
},
// assertion: inputing --help, when a required flag is present, does not error
// assertion: inputting --help, when a required flag is present, does not error
{
testCase: "valid_case_help_input_with_required_flag_on_app",
appRunInput: []string{"myCLI", "--help"},
Expand Down Expand Up @@ -2584,7 +2584,7 @@ func TestWhenExitSubCommandWithCodeThenAppQuitUnexpectedly(t *testing.T) {
}

if exitCodeFromExitErrHandler != testCode {
t.Errorf("exitCodeFromOsExiter valeu should be %v, but its value is %v", testCode, exitCodeFromExitErrHandler)
t.Errorf("exitCodeFromOsExiter value should be %v, but its value is %v", testCode, exitCodeFromExitErrHandler)
}
}

Expand Down
8 changes: 4 additions & 4 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ View [unreleased 1.22.X] series changes.
there are no `ExitCoder`s in the `MultiError`.
* Fixed YAML file loading on Windows (previously would fail validate the file path)
* Subcommand `Usage`, `Description`, `ArgsUsage`, `OnUsageError` correctly
propogated
propagated
* `ErrWriter` is now passed downwards through command structure to avoid the
need to redefine it
* Pass `Command` context into `OnUsageError` rather than parent context so that
all fields are avaiable
* Errors occuring in `Before` funcs are no longer double printed
all fields are available
* Errors occurring in `Before` funcs are no longer double printed
* Use `UsageText` in the help templates for commands and subcommands if
defined; otherwise build the usage as before (was previously ignoring this
field)
Expand All @@ -225,7 +225,7 @@ View [unreleased 1.22.X] series changes.
`CustomAppHelpTemplate`
* Support for arbitrary key/value fields on `App` to be used with
`CustomAppHelpTemplate` via `ExtraInfo`
* `HelpFlag`, `VersionFlag`, and `BashCompletionFlag` changed to explictly be
* `HelpFlag`, `VersionFlag`, and `BashCompletionFlag` changed to explicitly be
`cli.Flag`s allowing for the use of custom flags satisfying the `cli.Flag`
interface to be used.

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ won't be able to call those. This reduces the resulting binary size by about
### Supported platforms

cli is tested against multiple versions of Go on Linux, and against the latest
released version of Go on OS X and Windows. This project uses Github Actions
released version of Go on OS X and Windows. This project uses GitHub Actions
for builds. To see our currently supported go versions and platforms, look at
the [github workflow
configuration](https://github.com/urfave/cli/blob/main/.github/workflows/cli.yml).
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func NewExitError(message interface{}, exitCode int) ExitCoder {
//
// This is the simplest way to trigger a non-zero exit code for an App without
// having to call os.Exit manually. During testing, this behavior can be avoided
// by overiding the ExitErrHandler function on an App or the package-global
// by overriding the ExitErrHandler function on an App or the package-global
// OsExiter function.
func Exit(message interface{}, exitCode int) ExitCoder {
return &exitError{
Expand Down
2 changes: 1 addition & 1 deletion fish.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (a *App) prepareFishCommands(commands []*Command, allCommands *[]string, pr
a.prepareFishFlags(command.VisibleFlags(), command.Names())...,
)

// recursevly iterate subcommands
// recursively iterate subcommands
if len(command.Subcommands) > 0 {
completions = append(
completions,
Expand Down
2 changes: 1 addition & 1 deletion godoc-current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ func Exit(message interface{}, exitCode int) ExitCoder

This is the simplest way to trigger a non-zero exit code for an App
without having to call os.Exit manually. During testing, this behavior
can be avoided by overiding the ExitErrHandler function on an App or the
can be avoided by overriding the ExitErrHandler function on an App or the
package-global OsExiter function.

func NewExitError(message interface{}, exitCode int) ExitCoder
Expand Down
4 changes: 2 additions & 2 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var helpCommand = &Command{
}

// Case 1 & 2
// Special case when running help on main app itself as opposed to indivdual
// Special case when running help on main app itself as opposed to individual
// commands/subcommands
if cCtx.parentContext.App == nil {
_ = ShowAppHelp(cCtx)
Expand Down Expand Up @@ -188,7 +188,7 @@ func printFlagSuggestions(lastArg string, flags []Flag, writer io.Writer) {
// this will get total count utf8 letters in flag name
count := utf8.RuneCountInString(name)
if count > 2 {
count = 2 // resuse this count to generate single - or -- in flag completion
count = 2 // reuse this count to generate single - or -- in flag completion
}
// if flag name has more than one utf8 letter and last argument in cli has -- prefix then
// skip flag completion for short flags example -v or -x
Expand Down
4 changes: 2 additions & 2 deletions help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ VERSION:

func TestShowAppHelp_UsageText(t *testing.T) {
app := &App{
UsageText: "This is a sinlge line of UsageText",
UsageText: "This is a single line of UsageText",
Commands: []*Command{
{
Name: "frobbly",
Expand All @@ -912,7 +912,7 @@ func TestShowAppHelp_UsageText(t *testing.T) {

_ = app.Run([]string{"foo"})

if !strings.Contains(output.String(), "This is a sinlge line of UsageText") {
if !strings.Contains(output.String(), "This is a single line of UsageText") {
t.Errorf("expected output to include usage text; got: %q", output.String())
}
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/godoc-v2.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ func Exit(message interface{}, exitCode int) ExitCoder

This is the simplest way to trigger a non-zero exit code for an App
without having to call os.Exit manually. During testing, this behavior
can be avoided by overiding the ExitErrHandler function on an App or the
can be avoided by overriding the ExitErrHandler function on an App or the
package-global OsExiter function.

func NewExitError(message interface{}, exitCode int) ExitCoder
Expand Down

0 comments on commit 7732a51

Please sign in to comment.