-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into mostynb-report_source…
…_of_parse_errors
- Loading branch information
Showing
49 changed files
with
885 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
- name: vet | ||
run: go run internal/build/build.go vet | ||
|
||
- name: test with tags | ||
- name: test with urfave_cli_no_docs tag | ||
run: go run internal/build/build.go -tags urfave_cli_no_docs test | ||
|
||
- name: test | ||
|
@@ -47,7 +47,7 @@ jobs: | |
run: go run internal/build/build.go check-binary-size | ||
|
||
- name: check-binary-size with tags (informational only) | ||
run: go run internal/build/build.go -tags urfave_cli_no_docs check-binary-size || true | ||
run: go run internal/build/build.go -tags urfave_cli_no_docs check-binary-size | ||
|
||
- name: Upload coverage to Codecov | ||
if: success() && matrix.go == '1.18.x' && matrix.os == 'ubuntu-latest' | ||
|
@@ -76,19 +76,37 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: | ||
mkdir -p "${GITHUB_WORKSPACE}/.local/bin" && | ||
curl -fsSL -o "${GITHUB_WORKSPACE}/.local/bin/gfmrun" "https://github.com/urfave/gfmrun/releases/download/v1.3.0/gfmrun-$(go env GOOS)-$(go env GOARCH)-v1.3.0" && | ||
chmod +x "${GITHUB_WORKSPACE}/.local/bin/gfmrun" && | ||
npm install -g [email protected] | ||
run: | | ||
mkdir -p "${GITHUB_WORKSPACE}/.local/bin" | ||
curl -fsSL -o "${GITHUB_WORKSPACE}/.local/bin/gfmrun" "https://github.com/urfave/gfmrun/releases/download/v1.3.0/gfmrun-$(go env GOOS)-$(go env GOARCH)-v1.3.0" | ||
chmod +x "${GITHUB_WORKSPACE}/.local/bin/gfmrun" | ||
- name: gfmrun | ||
run: go run internal/build/build.go gfmrun docs/v2/manual.md | ||
|
||
- name: toc | ||
run: go run internal/build/build.go toc docs/v2/manual.md | ||
|
||
- name: diff check | ||
run: | | ||
git diff --exit-code | ||
git diff --cached --exit-code | ||
publish: | ||
if: startswith(github.ref, 'refs/tags/') | ||
name: publish | ||
needs: [test-docs] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup mkdocs | ||
run: | | ||
pip install -U pip | ||
pip install -r mkdocs-requirements.txt | ||
git remote rm origin | ||
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/urfave/cli.git | ||
- name: Publish Docs | ||
run: | | ||
mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
*.coverprofile | ||
*.orig | ||
node_modules/ | ||
vendor | ||
.idea | ||
internal/*/built-example | ||
coverage.txt | ||
/.local/ | ||
/site/ | ||
|
||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
#compdef $PROG | ||
|
||
_cli_zsh_autocomplete() { | ||
|
||
local -a opts | ||
local cur | ||
cur=${words[-1]} | ||
if [[ "$cur" == "-"* ]]; then | ||
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} ${cur} --generate-bash-completion)}") | ||
opts=("${(@f)$(${words[@]:0:#words[@]-1} ${cur} --generate-bash-completion)}") | ||
else | ||
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}") | ||
opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-bash-completion)}") | ||
fi | ||
|
||
if [[ "${opts[1]}" != "" ]]; then | ||
_describe 'values' opts | ||
else | ||
_files | ||
fi | ||
|
||
return | ||
} | ||
|
||
compdef _cli_zsh_autocomplete $PROG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cli.urfave.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../CODE_OF_CONDUCT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Welcome to urfave/cli | ||
|
||
[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://pkg.go.dev/github.com/urfave/cli/v2) | ||
[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/github.aaakk.us.kg-urfave-cli) | ||
[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli) | ||
[![codecov](https://codecov.io/gh/urfave/cli/branch/main/graph/badge.svg)](https://codecov.io/gh/urfave/cli) | ||
|
||
`urfave/cli` is a simple, fast, and fun package for building command line apps in Go. The | ||
goal is to enable developers to write fast and distributable command line applications in | ||
an expressive way. | ||
|
||
These are the guides for each major supported version: | ||
|
||
- [`v2`](./v2/) | ||
- [`v1`](./v1/) | ||
|
||
In addition to the version-specific guides, these other documents are available: | ||
|
||
- [CONTRIBUTING](./CONTRIBUTING/) | ||
- [CODE OF CONDUCT](./CODE_OF_CONDUCT/) | ||
- [RELEASING](./RELEASING/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
manual.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
manual.md |
Oops, something went wrong.