• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

numtide / treefmt
50%
main: 39%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-5
DEFAULT BRANCH: main
Repo Added 14 Nov 2024 08:50AM UTC
Files 23
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/completions
branch: fix/completions
CHANGE BRANCH
x
Reset
  • fix/completions
  • better-error
  • check-for-errors
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/cachix/install-nix-action-31
  • document-missing-formatter
  • feat/batch-size
  • feat/config-wrappers
  • feat/git-merge-tool
  • feat/git-untracked-files
  • feat/go-1.24
  • feat/refine-docs
  • feat/refine-error-handling
  • feat/refine-untracked-files
  • feat/refine-vendor-hash-update
  • feat/simpler-nix-build
  • feat/tree-root-cmd
  • feat/update-vendor-hash-automatically
  • feat/validate-formatter-name
  • feat/verbosity-changes
  • fix/concurrent-invocation
  • fix/default-tree-root-cmd
  • fix/exit-on-formatter-errors
  • fix/logging
  • fix/non-ascii-paths
  • fix/update-vendor-hash-workflow
  • fixup/non-ascii-paths
  • main
  • mergify/configuration-deprecated-update
  • more-linter
  • new-README
  • renovate/actions-checkout-5.x
  • renovate/actions-setup-go-6.x
  • renovate/github.com-otiai10-copy-1.x
  • renovate/github.com-spf13-cobra-1.x
  • renovate/github.com-spf13-pflag-1.x
  • renovate/github.com-stretchr-testify-1.x
  • renovate/go-1.x
  • renovate/golang.org-x-sync-0.x
  • renovate/golang.org-x-sys-0.x
  • renovate/ubuntu-24.x
  • tagline
  • termenv-fix
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.3.0
  • v2.3.1

11 Mar 2025 04:54PM UTC coverage: 50.03% (-0.4%) from 50.399%
13793786108

Pull #542

github

brianmcgee
fix: shell completions

- disables default `completion` cobra sub-command
- adds a `--completion [bash|zsh|fish]` flag which will generate shell completions using cobra's built-in support
- adds `installShellCompletion` to the `treefmt` package (this will need added to the nixpkgs entry after release)

The completions are static and address the first half of #529.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
Pull Request #542: fix: shell completions

18 of 41 new or added lines in 2 files covered. (43.9%)

1 existing line in 1 file now uncovered.

829 of 1657 relevant lines covered (50.03%)

34.38 hits per line

Relevant lines Covered
Build:
Build:
1657 RELEVANT LINES 829 COVERED LINES
34.38 HITS PER LINE
Source Files on fix/completions
  • Tree
  • List 20
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
13793786108 fix/completions fix: shell completions - disables default `completion` cobra sub-command - adds a `--completion [bash|zsh|fish]` flag which will generate shell completions using cobra's built-in support - adds `installShellCompletion` to the `treefmt` package (t... Pull #542 11 Mar 2025 05:04PM UTC brianmcgee github
50.03
13793525430 fix/completions Signed-off-by: Brian McGee <brian@bmcgee.ie> fix: shell completions - disabled default `completion` cobra sub-command - adds a `--completion [bash|zsh|fish]` flag which will generate shell completions using cobra's built-in support - adds `insta... push 11 Mar 2025 04:46PM UTC brianmcgee github
50.03
13793273042 fix/completions feat: add a `--completions` flag for generating shell completions Signed-off-by: Brian McGee <brian@bmcgee.ie> push 11 Mar 2025 04:34PM UTC brianmcgee github
50.03
See All Builds (204)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc