New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default values to web manual and man pages #8395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zsloane : thank you for opening up this PR and your patience! 🙇
Couple of minor suggestions but this looks good. I do notice some flags with and without double quotes which I don't know if is intended or not. Thoughts?
Nice catch. It should be consistent. The cobra help text generally has lowercase default and no colon. The other thing I realized I am missing is quotes for strings ( I also discovered that some flags have cli/pkg/cmd/release/create/create.go Line 181 in 6309446
cli/pkg/cmd/gist/create/create.go Line 99 in 6eb6501
Line 229 in 6309446
|
Man after my own heart ❤️
Assuming that it is more effort to change how Cobra formats defaults, I assume we do what we can to match it. What are your thoughts?
Interesting. Without tracing all of these code paths to see why the defaults are not set in the command, I suppose we leave them be? |
I prefer This got a bit tricksy as I dug in some more. When trying to verify the requested changes I noticed another special case in how cobra handles the display of the defaults. For example this has a default of Line 241 in cd2a6ad
At first I thought the "duration" type is handled differently so I added support for hiding based on flag type. However, cobra shows
They're more like default behaviors (i.e. "use whatever the main branch is") rather than default values. The |
Should I keep this updated with changes from main periodically while it's being reviewed? |
Firstly, thank you for your patience with slow replies due to holiday leave! 🙇 Secondly, I hadn't forgotten about you. Let's see get reacquainted with where we left off to see if we can get this merged finally. 💪 Lastly, some PRs are okay not keeping them updating with the latest from |
Using the following commands to locally build and compare the changes from this PR to the results in gh pr checkout 8479
make manpages site-docs
grep -rn default site/ > ~/Desktop/8395-pr-site
grep -rn default share/man/ > ~/Desktop/8395-pr-man
git checkout trunk
git pull
make manpages site-docs
grep -rn default site/ > ~/Desktop/8395-trunk-site
grep -rn default share/man/ > ~/Desktop/8395-trunk-man The main thing I think we need to figure out is how much consistency as there are several variations between the results and just looking at the code:
|
I can take a closer look at this a little later today but from my memory of the last time I was working on this, one source of the discrepancies are commands that use the usage string to tell the user about a default behavior (see examples below) rather than from the doc generation pulling it from the default value for the command (if that makes sense). In your files it does look like the number defaults for limits and such still have the colon. I thought I already removed that. I will take a look cli/pkg/cmd/release/create/create.go Line 181 in 6309446
cli/pkg/cmd/gist/create/create.go Line 99 in 6eb6501
Line 229 in 6309446
|
For commands that have "default behaviors" in the usage strings, how should we handle it if we are going to be consistent and remove the colon? cli/pkg/cmd/release/create/create.go Line 181 in 6309446
cli/pkg/cmd/pr/checkout/checkout.go Line 68 in 6309446
Things like |
(I'm from #8479.) There are two default values belonging to settings of Lines 16 to 26 in 586eb8b
|
I will update the description of the default for |
You raise a good point 🤔 In the case of "the name of the head branch", it seems this is also a little wordy and might be more concise "head branch name". Does changing the language make it less likely we need another special formatting syntax? |
Weird. My comment from after I committed my latest changes yesterday is just gone...? Anyway, what I said was I opted for the We already have the defval and options in
I don't think so. Since the even something like "head branch name" isn't actually what you would pass to the flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zsloane: Think we're almost there! There is a regression from webpage formatting of keywords we need to knock out but I finished with comparing the results from these changes to man pages below
Thank you for your patience working through sudden changes in priority 🙇
Default changes for man pages
Note
cli/cli
is your branch, cli/cli-trunk
is trunk.
andyfeller@Andrews-MBP:cli/cli-trunk ‹trunk›$ for file in $(find . -type f -name "*.1"); do echo "\nFILE: $file\n"; diff <(man $file) <(man ../cli/$file); done
FILE: ./share/man/man1/gh-run-download.1
26c26
< -D, --dir <string>
---
> -D, --dir <string> (default ".")
FILE: ./share/man/man1/gh-search-issues.1
91c91
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
128c128
< --order <string>
---
> --order <string> (default "desc")
149c149
< --sort <string>
---
> --sort <string> (default "best-match")
FILE: ./share/man/man1/gh-auth-setup-git.1
33,37d32
< -f, --force <--hostname>
< Force setup even if the host is not known. Must be used in
< conjunction with --hostname
<
<
FILE: ./share/man/man1/gh-api.1
116c116
< -X, --method <string>
---
> -X, --method <string> (default "GET")
FILE: ./share/man/man1/gh-search-prs.1
103c103
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
148c148
< --order <string>
---
> --order <string> (default "desc")
182c182
< --sort <string>
---
> --sort <string> (default "best-match")
FILE: ./share/man/man1/gh-extension-search.1
68c68
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
72c72
< --order <string>
---
> --order <string> (default "desc")
81c81
< --sort <string>
---
> --sort <string> (default "best-match")
FILE: ./share/man/man1/gh-workflow-list.1
33c33
< -L, --limit <int>
---
> -L, --limit <int> (default 50)
FILE: ./share/man/man1/gh-cache-list.1
24c24
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
28c28
< -O, --order <string>
---
> -O, --order <string> (default "desc")
32c32
< -S, --sort <string>
---
> -S, --sort <string> (default "last_accessed_at")
FILE: ./share/man/man1/gh-release-create.1
59,60c59
< Mark this release as "Latest" (default: automatic based on date
< and version)
---
> Mark this release as "Latest" (default )
85c84
< Target branch or full commit SHA (default: main branch)
---
> Target branch or full commit SHA (default )
FILE: ./share/man/man1/gh-ssh-key-add.1
20c20
< --type <string>
---
> --type <string> (default "authentication")
FILE: ./share/man/man1/gh-run-watch.1
20c20
< -i, --interval <int>
---
> -i, --interval <int> (default 3)
FILE: ./share/man/man1/gh-codespace-list.1
33c33
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-ruleset-view.1
35c35
< -p, --parents
---
> -p, --parents (default true)
FILE: ./share/man/man1/gh-pr-checkout.1
17c17
< Local branch name to use (default: the name of the head branch)
---
> Local branch name to use (default )
FILE: ./share/man/man1/gh-config.1
19,25c19,25
< Current respected settings: - git_protocol: the protocol to use for git
< clone and push operations (default: "https") - editor: the text editor
< program to use for authoring text - prompt: toggle interactive
< prompting in the terminal (default: "enabled") - pager: the terminal
< pager program to send standard output to - http_unix_socket: the path
< to a Unix socket through which to make an HTTP connection - browser:
< the web browser to use for opening URLs
---
> Current respected settings: - git_protocol: the protocol to use for git
> clone and push operations {https|ssh} (default https) - editor: the
> text editor program to use for authoring text - prompt: toggle
> interactive prompting in the terminal {enabled|disabled} (default
> enabled) - pager: the terminal pager program to send standard output to
> - http_unix_socket: the path to a Unix socket through which to make an
> HTTP connection - browser: the web browser to use for opening URLs
FILE: ./share/man/man1/gh-project-item-edit.1
61c61
< --number <float32>
---
> --number <float32> (default 0)
FILE: ./share/man/man1/gh-repo-sync.1
34c34
< Branch to sync (default: default branch)
---
> Branch to sync (default )
FILE: ./share/man/man1/gh-pr-checks.1
29c29
< -i, --interval <--watch>
---
> -i, --interval <--watch> (default 10)
FILE: ./share/man/man1/gh-gist-create.1
38c38
< List the gist publicly (default: secret)
---
> List the gist publicly (default "secret")
FILE: ./share/man/man1/gh-label-list.1
34c34
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
38c38
< --order <string>
---
> --order <string> (default "asc")
46c46
< --sort <string>
---
> --sort <string> (default "created")
FILE: ./share/man/man1/gh-project-field-list.1
24c24
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-gist-list.1
16c16
< -L, --limit <int>
---
> -L, --limit <int> (default 10)
FILE: ./share/man/man1/gh-run-list.1
40c40
< -L, --limit <int>
---
> -L, --limit <int> (default 20)
FILE: ./share/man/man1/gh-release-list.1
24,32c24
< -q, --jq <expression>
< Filter JSON output using a jq expression
<
<
< --json <fields>
< Output JSON with the specified fields
<
<
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
34,37d25
<
<
< -t, --template <string>
< Format JSON output using a Go template; see "gh help formatting"
FILE: ./share/man/man1/gh-release-download.1
35c35
< -D, --dir <directory>
---
> -D, --dir <directory> (default ".")
FILE: ./share/man/man1/gh-codespace-delete.1
37c37
< --days <N>
---
> --days <N> (default 0)
FILE: ./share/man/man1/gh-run-view.1
16c16
< -a, --attempt <uint>
---
> -a, --attempt <uint> (default 0)
FILE: ./share/man/man1/gh-org-list.1
16c16
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-repo-clone.1
37c37
< -u, --upstream-remote-name <string>
---
> -u, --upstream-remote-name <string> (default "upstream")
FILE: ./share/man/man1/gh-project-list.1
28c28
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-variable-list.1
29,36d28
< -q, --jq <expression>
< Filter JSON output using a jq expression
<
<
< --json <fields>
< Output JSON with the specified fields
<
<
39,42d30
<
<
< -t, --template <string>
< Format JSON output using a Go template; see "gh help formatting"
FILE: ./share/man/man1/gh-search-code.1
52c52
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-secret-set.1
69c69
< -v, --visibility <string>
---
> -v, --visibility <string> (default "private")
FILE: ./share/man/man1/gh-project-item-list.1
24c24
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
FILE: ./share/man/man1/gh-search-repos.1
75c75
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
88c88
< --order <string>
---
> --order <string> (default "desc")
101c101
< --sort <string>
---
> --sort <string> (default "best-match")
149,151d148
<
< # search repositories excluding archived repositories
< $ gh search repos --archived=false
FILE: ./share/man/man1/gh-ruleset-list.1
36c36
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
44c44
< -p, --parents
---
> -p, --parents (default true)
FILE: ./share/man/man1/gh-pr-create.1
79,80c79,80
< The branch that contains commits for your pull request (default:
< current branch)
---
> The branch that contains commits for your pull request (default
> )
FILE: ./share/man/man1/gh-repo-fork.1
56c56
< --remote-name <string>
---
> --remote-name <string> (default "origin")
FILE: ./share/man/man1/gh-codespace-ssh.1
92c92
< --server-port <int>
---
> --server-port <int> (default 0)
FILE: ./share/man/man1/gh-search-commits.1
75c75
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
83c83
< --order <string>
---
> --order <string> (default "desc")
100c100
< --sort <string>
---
> --sort <string> (default "best-match")
FILE: ./share/man/man1/gh-pr-diff.1
28c28
< --color <string>
---
> --color <string> (default "auto")
FILE: ./share/man/man1/gh-release-edit.1
47c47
< Target branch or full commit SHA (default: main branch)
---
> Target branch or full commit SHA (default )
FILE: ./share/man/man1/gh-variable-set.1
50c50
< -v, --visibility <string>
---
> -v, --visibility <string> (default "private")
FILE: ./share/man/man1/gh-pr-list.1
62c62
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
70c70
< -s, --state <string>
---
> -s, --state <string> (default "open")
FILE: ./share/man/man1/gh-issue-list.1
50c50
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
66c66
< -s, --state <string>
---
> -s, --state <string> (default "open")
FILE: ./share/man/man1/gh-repo-list.1
46c46
< -L, --limit <int>
---
> -L, --limit <int> (default 30)
🤔 Couple of oddities when comparing the results above:
|
Co-authored-by: Andy Feller <andyfeller@github.com>
@zsloane : thoughts about the anomalies in #8395 (comment)? |
Still looking into the first one but for the rest I think I just need to escape the brackets? cmdutil.NilBoolFlag(cmd, &opts.IsLatest, "latest", "", "Mark this release as \"Latest\" (default <automatic based on date and version>)") |
Ah, ok. I see. This is just due to a change that hasn't been synced onto my fork yet |
Anyone have thoughts on this: cmdutil.NilBoolFlag(cmd, &opts.IsLatest, "latest", "", "Mark this release as \"Latest\" (default <automatic based on date and version>)") Anything in between the |
@zsloane : If the brackets are problematic, perhaps we don't use the brackets |
I'm good with whatever. The brackets make the most sense to me in the context but we can do either of the following:
I just got back from a work trip so I can spend some more time looking at this now. |
I went with the It doesn't look quite right but maybe it is good enough for now |
Thank you once again, @zsloane, for your patience given how nuanced these changes turned out and limited capacity of myself. 🙇 ❤️ I definitely want to see these changes get shipped, so I'm devoting time today to get these cleared. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ajeetdsouza/zoxide](https://togithub.com/ajeetdsouza/zoxide) | patch | `v0.9.2` -> `v0.9.3` | | [aquaproj/aqua-registry](https://togithub.com/aquaproj/aqua-registry) | minor | `v4.131.1` -> `v4.135.0` | | [bitnami-labs/sealed-secrets](https://togithub.com/bitnami-labs/sealed-secrets) | minor | `v0.25.0` -> `v0.26.0` | | [casey/just](https://togithub.com/casey/just) | minor | `1.23.0` -> `1.24.0` | | [cli/cli](https://togithub.com/cli/cli) | minor | `v2.43.1` -> `v2.44.0` | | [derailed/k9s](https://togithub.com/derailed/k9s) | patch | `v0.31.8` -> `v0.31.9` | | [eza-community/eza](https://togithub.com/eza-community/eza) | patch | `v0.18.2` -> `v0.18.3` | | [golangci/golangci-lint](https://togithub.com/golangci/golangci-lint) | patch | `v1.56.1` -> `v1.56.2` | | [helm/helm](https://togithub.com/helm/helm) | patch | `v3.14.0` -> `v3.14.1` | | [homeport/dyff](https://togithub.com/homeport/dyff) | patch | `v1.7.0` -> `v1.7.1` | | [kevincobain2000/gobrew](https://togithub.com/kevincobain2000/gobrew) | patch | `v1.10.7` -> `v1.10.8` | | [kubernetes/kubectl](https://togithub.com/kubernetes/kubectl) | patch | `1.29.1` -> `1.29.2` | | [mikefarah/yq](https://togithub.com/mikefarah/yq) | minor | `v4.40.7` -> `v4.41.1` | | [twpayne/chezmoi](https://togithub.com/twpayne/chezmoi) | patch | `v2.46.0` -> `v2.46.1` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>ajeetdsouza/zoxide (ajeetdsouza/zoxide)</summary> ### [`v0.9.3`](https://togithub.com/ajeetdsouza/zoxide/releases/tag/v0.9.3): 0.9.3 [Compare Source](https://togithub.com/ajeetdsouza/zoxide/compare/v0.9.2...v0.9.3) ##### Added - Nushell: support for v0.89.0. </details> <details> <summary>aquaproj/aqua-registry (aquaproj/aqua-registry)</summary> ### [`v4.135.0`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.135.0) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.134.0...v4.135.0) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.135.0) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.135.0) | aquaproj/aqua-registry@v4.134.0...v4.135.0 #### 🎉 New Packages [#​19964](https://togithub.com/aquaproj/aqua-registry/issues/19964) [reproducible-containers/diffoci](https://togithub.com/reproducible-containers/diffoci): diff for Docker and OCI container images [@​ponkio-o](https://togithub.com/ponkio-o) ### [`v4.134.0`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.134.0) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.133.0...v4.134.0) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.134.0) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.134.0) | aquaproj/aqua-registry@v4.133.0...v4.134.0 #### 🎉 New Packages [#​19942](https://togithub.com/aquaproj/aqua-registry/issues/19942) [nabeken/go-github-apps](https://togithub.com/nabeken/go-github-apps): A tiny command-line utility to retrieve Github Apps Installation Token [@​ponkio-o](https://togithub.com/ponkio-o) #### Fixes [#​19932](https://togithub.com/aquaproj/aqua-registry/issues/19932) kitabisa/teler: Follow up changes of teler v2.0.0 ### [`v4.133.0`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.133.0) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.132.1...v4.133.0) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.133.0) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.133.0) | aquaproj/aqua-registry@v4.132.1...v4.133.0 #### 🎉 New Packages [#​19895](https://togithub.com/aquaproj/aqua-registry/issues/19895) [asciinema/agg](https://togithub.com/asciinema/agg): asciinema gif generator [@​Omochice](https://togithub.com/Omochice) ### [`v4.132.1`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.132.1) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.132.0...v4.132.1) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.132.1) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.132.1) | aquaproj/aqua-registry@v4.132.0...v4.132.1 #### Fixes [#​19891](https://togithub.com/aquaproj/aqua-registry/issues/19891) denoland/deno: Support linux/arm64 [@​4513ECHO](https://togithub.com/4513ECHO) ### [`v4.132.0`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.132.0) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.131.2...v4.132.0) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.132.0) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.132.0) | aquaproj/aqua-registry@v4.131.2...v4.132.0 #### 🎉 New Packages [#​19890](https://togithub.com/aquaproj/aqua-registry/issues/19890) [tummychow/git-absorb](https://togithub.com/tummychow/git-absorb): git commit --fixup, but automatic [@​haya14busa](https://togithub.com/haya14busa) #### 🎉 New Contributors Thank you for your contribution! [@​haya14busa](https://togithub.com/haya14busa) [#​19890](https://togithub.com/aquaproj/aqua-registry/issues/19890) ### [`v4.131.2`](https://togithub.com/aquaproj/aqua-registry/releases/tag/v4.131.2) [Compare Source](https://togithub.com/aquaproj/aqua-registry/compare/v4.131.1...v4.131.2) [Issues](https://togithub.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.131.2) | [Pull Requests](https://togithub.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.131.2) | aquaproj/aqua-registry@v4.131.1...v4.131.2 #### Fixes [#​19880](https://togithub.com/aquaproj/aqua-registry/issues/19880) matryer/moq: Follow up changes of moq v0.3.4 [#​19881](https://togithub.com/aquaproj/aqua-registry/issues/19881) aristocratos/btop: Follow up changes of btop v1.3.0 [#​19885](https://togithub.com/aquaproj/aqua-registry/issues/19885) BurntSushi/ripgrep Use aarch64 binary after 14.0.0 [@​Omochice](https://togithub.com/Omochice) [#​19887](https://togithub.com/aquaproj/aqua-registry/issues/19887) BurntSushi/ripgrep: Regenerate config </details> <details> <summary>bitnami-labs/sealed-secrets (bitnami-labs/sealed-secrets)</summary> ### [`v0.26.0`](https://togithub.com/bitnami-labs/sealed-secrets/blob/HEAD/RELEASE-NOTES.md#v0260) [Compare Source](https://togithub.com/bitnami-labs/sealed-secrets/compare/v0.25.0...v0.26.0) ##### Changelog - feat: Implement structured logging ([#​1438](https://togithub.com/bitnami-labs/sealed-secrets/pull/1438)) - feat: \[helm] add rbac.proxier config ([#​1451](https://togithub.com/bitnami-labs/sealed-secrets/pull/1451)) - docs: Add clarity around template Secret fields ([#​1456](https://togithub.com/bitnami-labs/sealed-secrets/pull/1456)) - docs: \[helm] adding disable keyrenewperiod comment ([#​1455](https://togithub.com/bitnami-labs/sealed-secrets/pull/1455)) - chore: Update Go version and dependencies ([#​1460](https://togithub.com/bitnami-labs/sealed-secrets/pull/1460)) - chore: Bump golang.org/x/crypto from 0.18.0 to 0.19.0 ([#​1458](https://togithub.com/bitnami-labs/sealed-secrets/pull/1458)) - chore: Bump k8s.io/client-go from 0.29.0 to 0.29.1 ([#​1452](https://togithub.com/bitnami-labs/sealed-secrets/pull/1452)) - chore: Bump k8s.io/code-generator from 0.29.0 to 0.29.1 ([#​1441](https://togithub.com/bitnami-labs/sealed-secrets/pull/1441)) - chore: Bump k8s.io/api from 0.29.0 to 0.29.1 ([#​1443](https://togithub.com/bitnami-labs/sealed-secrets/pull/1443)) - chore: Bump k8s.io/klog/v2 from 2.120.0 to 2.120.1 ([#​1439](https://togithub.com/bitnami-labs/sealed-secrets/pull/1439)) - chore: Bump github.com/onsi/gomega from 1.30.0 to 1.31.1 ([#​1440](https://togithub.com/bitnami-labs/sealed-secrets/pull/1440)) </details> <details> <summary>casey/just (casey/just)</summary> ### [`v1.24.0`](https://togithub.com/casey/just/blob/HEAD/CHANGELOG.md#1240---2024-02-11) [Compare Source](https://togithub.com/casey/just/compare/1.23.0...1.24.0) ##### Added - Support recipe paths containing `::` in Bash completion script ([#​1863](https://togithub.com/casey/just/pull/1863) by [crdx](https://togithub.com/crdx)) - Add function to canonicalize paths ([#​1859](https://togithub.com/casey/just/pull/1859)) ##### Misc - Document installing just on Github Actions in readme ([#​1867](https://togithub.com/casey/just/pull/1867) by [cclauss](https://togithub.com/cclauss)) - Use unlikely-to-be-set variable name in env tests ([#​1882](https://togithub.com/casey/just/pull/1882)) - Skip write_error test if running as root ([#​1881](https://togithub.com/casey/just/pull/1881)) - Convert run_shebang into integration test ([#​1880](https://togithub.com/casey/just/pull/1880)) - Install mdbook with cargo in CI workflow ([#​1877](https://togithub.com/casey/just/pull/1877)) - Remove deprecated actions-rs/toolchain ([#​1874](https://togithub.com/casey/just/pull/1874) by [cclauss](https://togithub.com/cclauss)) - Fix Gentoo package link ([#​1875](https://togithub.com/casey/just/pull/1875) by [vozbu](https://togithub.com/vozbu)) - Fix typos found by codespell ([#​1872](https://togithub.com/casey/just/pull/1872) by [cclauss](https://togithub.com/cclauss)) - Replace deprecated set-output command in Github Actions workflows ([#​1869](https://togithub.com/casey/just/pull/1869) by [cclauss](https://togithub.com/cclauss)) - Update `actions/checkout` and `softprops/action-gh-release` ([#​1871](https://togithub.com/casey/just/pull/1871) by [app/dependabot](https://togithub.com/app/dependabot)) - Keep GitHub Actions up to date with Dependabot ([#​1868](https://togithub.com/casey/just/pull/1868) by [cclauss](https://togithub.com/cclauss)) - Add contrib directory ([#​1870](https://togithub.com/casey/just/pull/1870)) - Fix install script ([#​1844](https://togithub.com/casey/just/pull/1844)) </details> <details> <summary>cli/cli (cli/cli)</summary> ### [`v2.44.0`](https://togithub.com/cli/cli/releases/tag/v2.44.0): GitHub CLI 2.44.0 [Compare Source](https://togithub.com/cli/cli/compare/v2.43.1...v2.44.0) #### What's Changed - Feature: added Order flag for release list command by [@​leevic31](https://togithub.com/leevic31) in [cli/cli#8632 - autofill with body by [@​guerinoni](https://togithub.com/guerinoni) in [cli/cli#8423 - Add default values to web manual and man pages by [@​zsloane](https://togithub.com/zsloane) in [cli/cli#8395 - build(deps): bump microsoft/setup-msbuild from 1.3.2 to 2.0.0 by [@​dependabot](https://togithub.com/dependabot) in [cli/cli#8648 - Documentation for built-in aliases by [@​Rebeccasun31](https://togithub.com/Rebeccasun31) in [cli/cli#8367 - Add more detail to fork failure message by [@​chrisroat](https://togithub.com/chrisroat) in [cli/cli#8614 - feat: Add cache key option to `gh cache list` by [@​toshimaru](https://togithub.com/toshimaru) in [cli/cli#8667 #### New Contributors - [@​zsloane](https://togithub.com/zsloane) made their first contribution in [cli/cli#8395 - [@​Rebeccasun31](https://togithub.com/Rebeccasun31) made their first contribution in [cli/cli#8367 - [@​chrisroat](https://togithub.com/chrisroat) made their first contribution in [cli/cli#8614 - [@​toshimaru](https://togithub.com/toshimaru) made their first contribution in [cli/cli#8667 **Full Changelog**: cli/cli@v2.43.1...v2.44.0 </details> <details> <summary>derailed/k9s (derailed/k9s)</summary> ### [`v0.31.9`](https://togithub.com/derailed/k9s/releases/tag/v0.31.9) [Compare Source](https://togithub.com/derailed/k9s/compare/v0.31.8...v0.31.9) <img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/k9s.png" align="center" width="800" height="auto"/> ### Release v0.31.9 #### Notes Thank you to all that contributed with flushing out issues and enhancements for K9s! I'll try to mark some of these issues as fixed. But if you don't mind grab the latest rev and see if we're happier with some of the fixes! If you've filed an issue please help me verify and close. Your support, kindness and awesome suggestions to make K9s better are, as ever, very much noted and appreciated! Also big thanks to all that have allocated their own time to help others on both slack and on this repo!! As you may know, K9s is not pimped out by corps with deep pockets, thus if you feel K9s is helping your Kubernetes journey, please consider joining our [sponsorship program](https://togithub.com/sponsors/derailed) and/or make some noise on social! [@​kitesurfer](https://twitter.com/kitesurfer) On Slack? Please join us [K9slackers](https://join.slack.com/t/k9sers/shared_invite/enQtOTA5MDEyNzI5MTU0LWQ1ZGI3MzliYzZhZWEyNzYxYzA3NjE0YTk1YmFmNzViZjIyNzhkZGI0MmJjYzhlNjdlMGJhYzE2ZGU1NjkyNTM) #### Maintenance Release! ```text S .-'-. o __| F `\ S `-,-`--._ `\ [] .->' X `|-' `=/ (__/_ / \_, ` _) `----; | ``` ⛔️ WE HAVE A PIPER DOWN! I REPEAT PIPER IS DOWN!! ⛔️ Popeye is undergoing heavy surgery at the moment so I had to break the bridge. If you dig Popeye please run the binary separately for the time being. I'll post another message here once the spinach formula upgrade is successful! Also please make sure to add the gory details to issues ie relevant configs, debug logs, etc... Comments like: `same here!` or `me to!` doesn't really cut it for us to zero in ;( Everyone has slightly different settings/platforms so every little bits of info helps with the resolves even if seemingly irrelevant. Thank you all for pitching in and helping flesh out issues!! *** #### Videos Are In The Can! Please dial [K9s Channel](https://www.youtube.com/channel/UC897uwPygni4QIjkPCpgjmw) for up coming content... - [K9s v0.31.0 Configs+Sneak peek](https://youtu.be/X3444KfjguE) - [K9s v0.30.0 Sneak peek](https://youtu.be/mVBc1XneRJ4) - [Vulnerability Scans](https://youtu.be/ULkl0MsaidU) *** #### ♫ Sounds Behind The Release ♭ Ushered or Taylored out? - [Rough God Goes Riding - Van Morrison](https://www.youtube.com/watch?v=-kGrwRlJxcM) - [Walk On - John Hiatt](https://www.youtube.com/watch?v=YVdMyeTQCkw) - [On The Beach - Neil Young](https://www.youtube.com/watch?v=KBVde75e4sU) *** #### A Word From Our Sponsors... To all the good folks below that opted to `pay it forward` and join our sponsorship program, I salute you!! - [Francis Lalonde](https://togithub.com/f-lalonde) - [e-conomic a/s](https://togithub.com/e-conomic) > Sponsorship cancellations since the last release: **2!** 🥹 *** #### Resolved Issues - [#​2540](https://togithub.com/derailed/k9s/issues/2540) Option --write not functional - [#​2538](https://togithub.com/derailed/k9s/issues/2538) Opening screen dumps (sd) in K9s results in Failed to launch editor error message - [#​2536](https://togithub.com/derailed/k9s/issues/2536) Recent namespaces are lost when changing context - [#​2535](https://togithub.com/derailed/k9s/issues/2535) Namespaced configmap edit fails for user with RoleBinding to a role that allows it - [#​2532](https://togithub.com/derailed/k9s/issues/2532) Sporadic crashes (Maybe??) *** #### Contributed PRs Please be sure to give `Big Thanks!` and `ATTA Girls/Boys!` to all the fine contributors for making K9s better for all of us!! - [#​2541](https://togithub.com/derailed/k9s/pull/2541) Add Rose Pine moon and dawn variants to skins - [#​2531](https://togithub.com/derailed/k9s/pull/2531) fix the --write flag - [#​2516](https://togithub.com/derailed/k9s/pull/2516) Added defaultsToFullScreen flag for Live/Details view,logs *** <img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/imhotep_logo.png" width="32" height="auto"/> © 2024 Imhotep Software LLC. All materials licensed under [Apache v2.0](http://www.apache.org/licenses/LICENSE-2.0) </details> <details> <summary>eza-community/eza (eza-community/eza)</summary> ### [`v0.18.3`](https://togithub.com/eza-community/eza/releases/tag/v0.18.3): eza v0.18.3 [Compare Source](https://togithub.com/eza-community/eza/compare/v0.18.2...v0.18.3) ### Changelog Faster yet again! ##### Bug Fixes - Duplicates in shell completions ##### Documentation - Add target arch to deb PPA installation for strict apt environments ##### Miscellaneous Tasks - Release eza v0.18.3 ##### Performance - Do not pre-compute MountInfo to reduce readlink calls ##### Refactor - Use #\[default] attribute instead of custom impl for enums ### Checksums #### sha256sum 2f88e6c9b592e1f24f1d87f052bc4cf1fc51d302b58a9babe7ad03ee362d7708 ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.tar.gz d2b2b615a8dc5de91542a1d46e9f8f36e5750fc66172faf7f30c439cdd3d0602 ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.zip f68e63d987824fe31cc480554fdcd68d971fd9a0719ac2d81dab1591f13e3ee9 ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.tar.gz 3815de0d0ec5fe654314cee0f41edbcd084a882977b448277d733ad217fa78c3 ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.zip 0aa122bf73c3535d356d54cb62e74a8495d8bf639b81744fc59861a084bd4143 ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.tar.gz 5f9d9b6f5486fee3c51629ad02e548df2321a3e197f4bbe55c5251978a92542a ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.zip 5968bbd0322384fbc9872c6254f89dc63d56bcfc58592a0419e83bb759324c6d ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.tar.gz 3b8b024165c6115a2b6c7820fcda9575f9e48c7f24b80f386df3e7d0bb6b00c8 ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.zip b66d0413920ca6b42e68c3ad79d0f5bc18b5d4ef45ac4cc835ac42d14a7abe98 ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.tar.gz 6670d19911a5d71980201aec23db67032ca690bb8956806d4807f16d8ee89e01 ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.zip #### md5sum a7189972ef711b3e39714e73c0b1f004 ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.tar.gz 8ea5320ea85f0b2539b7bd6cda3970a4 ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.zip 1d2b46b24b28877dc9a1045d1d8454fe ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.tar.gz d26f7e144c62e2f8759499ec5efbee25 ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.zip 3be3033566f2e405e266e5afcbdff5fb ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.tar.gz 952acde8b660f1316549d612e6a9f994 ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.zip 932d1ecf2ee1981a23710c1acebe9ec3 ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.tar.gz 6cf4927a5ee7a5616aca3892c9165c1f ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.zip 1169a256882aeb29bc4e1bef98d27e3c ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.tar.gz 14539328854467bc12866915fce38ff3 ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.zip #### blake3sum cd1911965a56e198b594bd363d2588e88ad1e22d6894a6516516a84a29d7d37b ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.tar.gz e621b99c452d70665c87dc7f7ccabdce026cb9765f181c40e7dac0ff5839c74e ./target/bin-0.18.3/eza_aarch64-unknown-linux-gnu.zip 92b27d0652d4946c6811534394f1211f5fe277e8e0b575704bb0c865efb06073 ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.tar.gz 66177e09d1ba9158eb392d9d46e4a2dbccbff28301d497cc087dfc171215305a ./target/bin-0.18.3/eza_arm-unknown-linux-gnueabihf.zip f09f8ab0820f631c3289efaebc437700891813e0fc67230d2018b3f97f370d4e ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.tar.gz 696fc1f50919f00866f19282f16854819a6ce6ceb2d900e1a03af824ab5bb78a ./target/bin-0.18.3/eza.exe_x86_64-pc-windows-gnu.zip c292f9e492f1cb7057859bd67e49f35c50a04fc31bb9dcb46e0d164d1bcd26f9 ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.tar.gz c9756d508885e4bce83d4423c8b089d4dfc664bdf78a49f4ce881b715ff2bddb ./target/bin-0.18.3/eza_x86_64-unknown-linux-gnu.zip 4bb679347711c507b94c86f5fb055306df8091726d6ba785f98a6aebb21bb5f4 ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.tar.gz d67f7d9e6b054e94c97c38c3b5baededfeb64c9e6c4b7a27538a3a540db19da7 ./target/bin-0.18.3/eza_x86_64-unknown-linux-musl.zip </details> <details> <summary>golangci/golangci-lint (golangci/golangci-lint)</summary> ### [`v1.56.2`](https://togithub.com/golangci/golangci-lint/compare/v1.56.1...v1.56.2) [Compare Source](https://togithub.com/golangci/golangci-lint/compare/v1.56.1...v1.56.2) </details> <details> <summary>helm/helm (helm/helm)</summary> ### [`v3.14.1`](https://togithub.com/helm/helm/releases/tag/v3.14.1): Helm v3.14.1 [Compare Source](https://togithub.com/helm/helm/compare/v3.14.0...v3.14.1) Helm v3.14.1 is a security (patch) release. Users are strongly recommended to update to this release. A Helm contributor discovered a path traversal vulnerability when Helm saves a chart including at download time. [Dominykas Blyžė](https://togithub.com/dominykas) with [Nearform Ltd.](https://www.nearform.com/) discovered the vulnerability. #### Installation and Upgrading Download Helm v3.14.1. The common platform binaries are here: - [MacOS amd64](https://get.helm.sh/helm-v3.14.1-darwin-amd64.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-darwin-amd64.tar.gz.sha256sum) / 67928236b37c4e780b9fb5e614fb3b9aece90d60f0b1b4cb7406ee292c2dae3b) - [MacOS arm64](https://get.helm.sh/helm-v3.14.1-darwin-arm64.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-darwin-arm64.tar.gz.sha256sum) / 96468f927cc6efb4a2b92fd9419f40ed21d634af2f3e84fb8efa59526c7a003b) - [Linux amd64](https://get.helm.sh/helm-v3.14.1-linux-amd64.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-amd64.tar.gz.sha256sum) / 75496ea824f92305ff7d28af37f4af57536bf5138399c824dff997b9d239dd42) - [Linux arm](https://get.helm.sh/helm-v3.14.1-linux-arm.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-arm.tar.gz.sha256sum) / f50c00c262b74435530e677bcec07637aaeda1ed92ef809b49581a4e6182cbbe) - [Linux arm64](https://get.helm.sh/helm-v3.14.1-linux-arm64.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-arm64.tar.gz.sha256sum) / f865b8ad4228fd0990bbc5b50615eb6cb9eb31c9a9ca7238401ed897bbbe9033) - [Linux i386](https://get.helm.sh/helm-v3.14.1-linux-386.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-386.tar.gz.sha256sum) / 3c94ed0601e0e62c195a7e9b75262b18128c8284662aa0e080bb548dc6d47bcd) - [Linux ppc64le](https://get.helm.sh/helm-v3.14.1-linux-ppc64le.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-ppc64le.tar.gz.sha256sum) / 4d853ab8fe3462287c7272fbadd5f73531ecdd6fa0db37d31630e41ae1ae21de) - [Linux s390x](https://get.helm.sh/helm-v3.14.1-linux-s390x.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-s390x.tar.gz.sha256sum) / 19bf07999c7244bfeb0fd27152919b9faa1148cf43910edbb98efa9150058a98) - [Linux riscv64](https://get.helm.sh/helm-v3.14.1-linux-riscv64.tar.gz) ([checksum](https://get.helm.sh/helm-v3.14.1-linux-riscv64.tar.gz.sha256sum) / 2660bd8eb37aafc071599b788a24bfe244e5d3ffa42da1599da5a5041dafa214) - [Windows amd64](https://get.helm.sh/helm-v3.14.1-windows-amd64.zip) ([checksum](https://get.helm.sh/helm-v3.14.1-windows-amd64.zip.sha256sum) / 8a6c78a23a4e497ad8bd288138588adb3e5b49be8dbe82a3200fe7b297dac184) This release was signed with ` 672C 657B E06B 4B30 969C 4A57 4614 49C2 5E36 B98E ` and can be found at [@​mattfarina](https://togithub.com/mattfarina) [keybase account](https://keybase.io/mattfarina). Please use the attached signatures for verifying this release using `gpg`. The [Quickstart Guide](https://helm.sh/docs/intro/quickstart/) will get you going from there. For **upgrade instructions** or detailed installation notes, check the [install guide](https://helm.sh/docs/intro/install/). You can also use a [script to install](https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3) on any system with `bash`. #### What's Next - 3.14.2 will contain only bug fixes and be released on March 13, 2024. - 3.15.0 is the next feature release and will be on May 08, 2024. </details> <details> <summary>homeport/dyff (homeport/dyff)</summary> ### [`v1.7.1`](https://togithub.com/homeport/dyff/releases/tag/v1.7.1): dyff release v1.7.1 [Compare Source](https://togithub.com/homeport/dyff/compare/v1.7.0...v1.7.1) #### What's Changed - Fix dash quotation issue by [@​HeavyWombat](https://togithub.com/HeavyWombat) in [homeport/dyff#343 **Full Changelog**: homeport/dyff@v1.7.0...v1.7.1 </details> <details> <summary>kevincobain2000/gobrew (kevincobain2000/gobrew)</summary> ### [`v1.10.8`](https://togithub.com/kevincobain2000/gobrew/releases/tag/v1.10.8) [Compare Source](https://togithub.com/kevincobain2000/gobrew/compare/v1.10.7...v1.10.8) #### Changelog - [`de3d482`](https://togithub.com/kevincobain2000/gobrew/commit/de3d482) Add golangci-lint ([#​181](https://togithub.com/kevincobain2000/gobrew/issues/181)) - [`b068e3c`](https://togithub.com/kevincobain2000/gobrew/commit/b068e3c) fix: help message for windows ([#​183](https://togithub.com/kevincobain2000/gobrew/issues/183)) </details> <details> <summary>kubernetes/kubectl (kubernetes/kubectl)</summary> ### [`v1.29.2`](https://togithub.com/kubernetes/kubectl/compare/kubernetes-1.29.1...kubernetes-1.29.2) [Compare Source](https://togithub.com/kubernetes/kubectl/compare/kubernetes-1.29.1...kubernetes-1.29.2) </details> <details> <summary>mikefarah/yq (mikefarah/yq)</summary> ### [`v4.41.1`](https://togithub.com/mikefarah/yq/compare/v4.40.7...v4.41.1) [Compare Source](https://togithub.com/mikefarah/yq/compare/v4.40.7...v4.41.1) </details> <details> <summary>twpayne/chezmoi (twpayne/chezmoi)</summary> ### [`v2.46.1`](https://togithub.com/twpayne/chezmoi/releases/tag/v2.46.1) [Compare Source](https://togithub.com/twpayne/chezmoi/compare/v2.46.0...v2.46.1) #### Changelog ##### Features - [`8a20f91`](https://togithub.com/twpayne/chezmoi/commit/8a20f91af) feat: Add update.apply configuration variable - [`431ec39`](https://togithub.com/twpayne/chezmoi/commit/431ec39b1) feat: Set CHEZMOI_SOURCE_FILE env var for scripts ##### Fixes - [`0eb98a9`](https://togithub.com/twpayne/chezmoi/commit/0eb98a936) fix: Fix age/rage check in doctor command ##### Documentation updates - [`baeaf6b`](https://togithub.com/twpayne/chezmoi/commit/baeaf6b22) docs: typo ##### Other - [`deb5adf`](https://togithub.com/twpayne/chezmoi/commit/deb5adfa5) chore(deps-dev): bump ruff from 0.1.9 to 0.1.15 in /assets </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fixes #8387
It looks like the help text is largely controlled by Cobra internally, so I tried to make my changes match what Cobra outputs.
I added tests but if it would be better to test each flag default condition separately rather than in two larger tests, I can split them out.
I wasn't sure how exactly each flag type should be handled but my assumptions were:
false
defaults) and empty strings/slices should just be hiddentrue
defaults are technically possible so they should be shownAlso, this was my first time writing any Go (and my first open source contribution) so hopefully what I came up with isn't too far off beat.