chore(build): repair vendored baseline
- commit
- d4952b41d17da47c4f9870c27e97820adf5202e5
- author
- brice · · 2026-07-14 05:44 UTC
- parent
- ae333bf
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3316 files · +1391338 -4
M Makefile +2 -2
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||
| 239 | 239 | ||
| 240 | 240 | flatpak-build: ## Build Flatpak bundle locally | |
| 241 | 241 | @echo "Building Flatpak bundle..." | |
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | |
| 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 243 | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | |
| 244 | 244 | @echo "Flatpak bundle created: dumber.flatpak" | |
| 245 | 245 | ||
| 246 | 246 | flatpak-install: ## Install Flatpak locally for testing | |
| 247 | 247 | @echo "Installing Flatpak locally..." | |
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | |
| 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 249 | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | |
| 250 | 250 | ||
| 251 | 251 | flatpak-run: ## Run the installed Flatpak | |
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||||
| 239 | 239 | ||||
| 240 | flatpak-build: ## Build Flatpak bundle locally | 240 | flatpak-build: ## Build Flatpak bundle locally | ||
| 241 | @echo "Building Flatpak bundle..." | 241 | @echo "Building Flatpak bundle..." | ||
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml |
| 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | ||
| 244 | @echo "Flatpak bundle created: dumber.flatpak" | 244 | @echo "Flatpak bundle created: dumber.flatpak" | ||
| 245 | 245 | ||||
| 246 | flatpak-install: ## Install Flatpak locally for testing | 246 | flatpak-install: ## Install Flatpak locally for testing | ||
| 247 | @echo "Installing Flatpak locally..." | 247 | @echo "Installing Flatpak locally..." | ||
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml |
| 249 | @echo "Flatpak installed! Run with: make flatpak-run" | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | ||
| 250 | 250 | ||||
| 251 | flatpak-run: ## Run the installed Flatpak | 251 | flatpak-run: ## Run the installed Flatpak | ||
M flatpak/dev.bnema.Dumber.yml +2 -2
| @@ -53,10 +53,10 @@ modules: | |||
| 53 | 53 | path: dev.bnema.Dumber.desktop | |
| 54 | 54 | # Icons | |
| 55 | 55 | - type: file | |
| 56 | - | path: assets/logo.svg | |
| 56 | + | path: ../assets/logo.svg | |
| 57 | 57 | dest-filename: logo.svg | |
| 58 | 58 | - type: file | |
| 59 | - | path: assets/logo-512.png | |
| 59 | + | path: ../assets/logo-512.png | |
| 60 | 60 | dest-filename: logo-512.png | |
| 61 | 61 | # Metainfo | |
| 62 | 62 | - type: file | |
| @@ -53,10 +53,10 @@ modules: | |||||
| 53 | path: dev.bnema.Dumber.desktop | 53 | path: dev.bnema.Dumber.desktop | ||
| 54 | # Icons | 54 | # Icons | ||
| 55 | - type: file | 55 | - type: file | ||
| 56 | - | path: assets/logo.svg | 56 | + | path: ../assets/logo.svg |
| 57 | dest-filename: logo.svg | 57 | dest-filename: logo.svg | ||
| 58 | - type: file | 58 | - type: file | ||
| 59 | - | path: assets/logo-512.png | 59 | + | path: ../assets/logo-512.png |
| 60 | dest-filename: logo-512.png | 60 | dest-filename: logo-512.png | ||
| 61 | # Metainfo | 61 | # Metainfo | ||
| 62 | - type: file | 62 | - type: file | ||
A vendor/github.com/a-h/parse/.gitignore +1 -0 generated file: collapsed
A vendor/github.com/a-h/parse/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/README.md +145 -0 generated file: collapsed
A vendor/github.com/a-h/parse/all.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/any.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/parse/convert.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/parse/digits.go +4 -0 generated file: collapsed
A vendor/github.com/a-h/parse/eof.go +15 -0 generated file: collapsed
A vendor/github.com/a-h/parse/error.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/input.go +79 -0 generated file: collapsed
A vendor/github.com/a-h/parse/optional.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/or.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/parse/regexp.go +46 -0 generated file: collapsed
A vendor/github.com/a-h/parse/rune.go +58 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof2.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof3.go +35 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof4.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof5.go +48 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof6.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof7.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof8.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof9.go +76 -0 generated file: collapsed
A vendor/github.com/a-h/parse/string.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringfrom.go +30 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringuntil.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/parse/then.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/parse/times.go +83 -0 generated file: collapsed
A vendor/github.com/a-h/parse/tuples.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/types.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/parse/until.go +68 -0 generated file: collapsed
A vendor/github.com/a-h/parse/whitespace.go +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.dockerignore +3 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.envrc +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.gitignore +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.goreleaser.yaml +72 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.ignore +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.version +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CONTRIBUTING.md +247 -0 generated file: collapsed
A vendor/github.com/a-h/templ/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/README.md +194 -0 generated file: collapsed
A vendor/github.com/a-h/templ/SECURITY.md +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +132 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +452 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +349 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +237 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +82 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +385 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +75 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +84 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +166 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +130 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +114 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +145 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +146 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +61 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +215 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +24 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +1464 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +60 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +50 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/main.go +280 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +68 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +295 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cosign.pub +4 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.lock +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.nix +99 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flush.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/fragment.go +73 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/generator.go +1829 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/rangewriter.go +122 -0 generated file: collapsed
A vendor/github.com/a-h/templ/handler.go +163 -0 generated file: collapsed
A vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/internal/format/scriptelement.go +96 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/styleelement.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/templ.go +102 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/imports/process.go +218 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +161 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/prettier.go +133 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +12 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +20 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncmap/map.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncset/set.go +42 -0 generated file: collapsed
A vendor/github.com/a-h/templ/join.go +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/js.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonscript.go +85 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonstring.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/LICENSE +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +86 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +244 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +354 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +131 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +225 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +140 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/base.go +95 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/basic.go +705 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +1068 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +523 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/client.go +412 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/context.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +264 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +149 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/doc.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/errors.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/general.go +461 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/handler.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/language.go +1401 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/progress.go +119 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/protocol.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/registration.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +179 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/server.go +1893 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/text.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/util.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/version.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/window.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/workspace.go +213 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/uri/uri.go +245 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/once.go +63 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/childrenparser.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/cssparser.go +200 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/diagnostics.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/elementparser.go +605 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/expressionparser.go +246 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +57 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fuzz.sh +5 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +343 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +180 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goparser.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +144 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/packageparser.go +32 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/parser.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/raw.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scriptparser.go +336 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +91 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/sourcemap.go +134 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/structure.go +43 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +171 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templatefile.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templateparser.go +154 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templelementparser.go +59 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/textparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/types.go +1537 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +357 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime.go +736 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/buffer.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/bufferpool.go +38 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/builder.go +8 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/runtime.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/scriptelement.go +107 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/styleattribute.go +217 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/watchmode.go +181 -0 generated file: collapsed
A vendor/github.com/a-h/templ/safehtml/style.go +199 -0 generated file: collapsed
A vendor/github.com/a-h/templ/scripttemplate.go +150 -0 generated file: collapsed
A vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/url.go +31 -0 generated file: collapsed
A vendor/github.com/a-h/templ/version.go +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/watchmode.go +105 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/.gitignore +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/LICENSE +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/README.md +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references.go +185 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references_hq.go +796 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_cost.go +436 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_reader.go +266 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bitwriter.go +56 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter.go +144 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_command.go +434 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_distance.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_literal.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +1435 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_command.go +164 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_distance.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_literal.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/command.go +254 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment.go +834 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +775 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/constants.go +77 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/context.go +2176 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/decode.go +2570 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary.go +122890 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary_hash.go +32779 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encode.go +1220 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder.go +177 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_dict.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_fast.go +197 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode.go +592 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode_static.go +4399 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/fast_log.go +290 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/find_match_length.go +45 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/README.md +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/gzip.go +65 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +517 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_code.go +346 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/token.go +80 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/writer.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h10.go +287 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h5.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h6.go +216 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash.go +342 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_composite.go +93 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +252 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_rolling.go +168 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/histogram.go +226 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/http.go +189 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/huffman.go +653 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/literal_cost.go +182 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +212 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +248 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +278 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +34 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m0.go +175 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m4.go +339 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +328 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +53 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/trio.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +258 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +206 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zm.go +301 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/memory.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock.go +574 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_command.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_distance.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_literal.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/params.go +37 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/platform.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix_dec.go +723 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/quality.go +196 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/reader.go +126 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/ringbuffer.go +134 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/state.go +313 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict.go +662 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict_lut.go +75094 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/symbol_list.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/transform.go +641 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/utf8_util.go +70 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/util.go +7 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/write_bits.go +52 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/writer.go +162 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/.travis.yml +22 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/README.md +48 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard.go +20 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_darwin.go +52 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_plan9.go +42 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_unix.go +149 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_windows.go +157 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/README.md +83 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +305 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/bridge.go +779 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +135 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +255 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +222 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +80 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +13 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +1327 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +280 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +173 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +691 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +633 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +440 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +788 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +594 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +270 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +562 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +537 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +669 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +1624 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +1678 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +1084 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/doc.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/init.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +929 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +345 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +487 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +743 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +959 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +1167 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/opaque_types.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/string_list.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +2176 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +1492 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +338 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +515 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +682 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +1091 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +478 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +265 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +212 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +444 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +482 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +1002 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +217 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/doc.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +1231 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +967 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +589 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +485 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/engine.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/helpers.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/init.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/marshal.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/refcount.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/loader/loader.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +42 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/.gitignore +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/Makefile +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/README.md +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/command_line.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/doc.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/handlers.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/input.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +47 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +922 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +1037 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +352 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/options.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/profile.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/render_stack.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/size_observation.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/view.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/window_info.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/context.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/core.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player.go +435 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/context.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/core.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/player.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/driver.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/register.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +1461 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +863 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +358 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/db.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/.gitignore +1 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/README.md +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/cgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlerror.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_android.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_freebsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_linux.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_playground.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_stubs.s +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/func.go +677 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/go_runtime.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_go123.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_nogo123.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/empty.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/doc.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/linux.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/strings/strings.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/is_ios.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/nocgo.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_386.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_abi_helpers.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_amd64.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm64.go +759 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_loong64.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_ppc64le.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_riscv64.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_s390x.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_386.s +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_amd64.s +170 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm.s +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm64.s +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_loong64.s +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_ppc64le.s +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_riscv64.s +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_s390x.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_386.s +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm.s +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm64.s +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_loong64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_ppc64le.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_riscv64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_s390x.s +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_32bit.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_cgo_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_notstackargs.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_stackargs.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_unix.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_windows.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_386.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_amd64.s +2014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_loong64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_ppc64le.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_riscv64.s +4051 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_s390x.s +4015 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/internal/core/core.go +322 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/pkg/core/core.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +2021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +2050 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +808 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +1195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +390 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +977 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +505 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +707 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +861 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +947 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +1070 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +784 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +1036 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +1283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +1199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +855 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +1895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +989 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +701 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +588 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +287 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +1142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +1112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +884 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +563 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +516 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +501 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +540 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +962 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +2291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +1183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +933 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +1874 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +479 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +554 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +603 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +451 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +925 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +676 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/cairo/main.go +990 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +412 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +280 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +733 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +613 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +876 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +1447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +476 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +4904 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +315 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +545 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +193 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +192 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +720 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +660 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +752 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +547 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +1760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gaction.go +635 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +795 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +2114 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +2189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +711 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +360 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +244 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +481 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +678 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +1898 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +541 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +581 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +729 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +387 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +726 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +1098 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +317 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +176 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +914 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +206 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfile.go +6341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +769 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +1628 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +623 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gicon.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +550 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +289 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +865 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +2321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giostream.go +727 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +1134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +328 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +995 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmount.go +1293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +1009 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +155 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +1258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +370 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +132 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +337 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +357 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +1045 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresource.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +302 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +1830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +587 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +498 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +454 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +1992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +296 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +414 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtask.go +1334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +463 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +826 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +883 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +378 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +349 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +1055 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +1190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +225 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/garray.go +794 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +431 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +187 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +950 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcache.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +460 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdate.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +1043 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdir.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/genviron.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gerror.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghash.go +714 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghook.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +1123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +1164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glist.go +57 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmain.go +2504 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmem.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +1005 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gnode.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/goption.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +314 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +86 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +45 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gquark.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grand.go +223 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gregex.go +1610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grel.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gshell.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslice.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslist.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +375 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +1120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstring.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +1439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthread.go +2438 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtree.go +503 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +1656 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guri.go +1099 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gutils.go +745 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guuid.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +3035 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversion.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/main.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +369 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/genums.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +227 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +2233 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +924 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +1324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +810 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +1648 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/main.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/more.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +3 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +399 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +231 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +464 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +240 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +396 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +97 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +91 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +569 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +236 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +2087 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +1284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +495 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +579 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +344 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +600 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +400 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +657 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +1025 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +952 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +1041 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +156 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +717 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +1021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +829 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +1864 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +432 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +1046 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +174 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +221 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +774 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +230 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +696 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +271 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +573 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +305 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +521 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +426 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +927 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +267 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +1022 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +418 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +604 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +756 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +347 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +1008 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +695 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +474 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +2253 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +666 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +2312 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +243 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +602 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +670 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +1095 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +706 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +1627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +763 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +692 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +654 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +411 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +646 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +299 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +133 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +1000 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +499 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +758 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +359 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +538 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +1772 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +879 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +1251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +238 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +703 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +1725 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +413 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +938 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +582 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +388 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +1149 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +905 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +761 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +531 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +475 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +367 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +1549 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +507 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +928 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +765 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +832 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +923 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +526 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +634 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +416 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +489 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +1910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +968 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +754 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +658 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +957 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +902 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +143 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +735 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +1157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +973 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +1343 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +662 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +617 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +510 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +823 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +1409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +1385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +875 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +606 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +1730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +2252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +1393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +259 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +1583 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +2802 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +674 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +615 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +599 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +1750 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +742 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +890 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +2663 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +994 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +512 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +5627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +2140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +524 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +1072 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +1798 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +2313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +782 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +281 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +152 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +403 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +536 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +245 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +1419 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +996 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +1383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +204 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +816 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +630 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +333 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +353 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +335 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +285 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +355 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +1260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +2513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +295 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +430 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +241 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +649 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +608 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +4693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/more.go +228 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/LICENSE +20 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/README.md +30 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/backoff.go +66 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/context.go +62 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/exponential.go +216 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/retry.go +146 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/ticker.go +97 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/timer.go +35 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/tries.go +38 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +221 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/help/help.go +240 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/key/key.go +140 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/README.md +71 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +229 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/keys.go +97 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/list.go +1330 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/style.go +99 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +214 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +102 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +224 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/table/table.go +450 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +890 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +544 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitattributes +1 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitignore +23 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.golangci.yml +44 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/README.md +400 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/commands.go +222 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/exec.go +133 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +129 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key.go +715 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_other.go +13 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_sequences.go +130 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_windows.go +441 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/logging.go +53 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/mouse.go +308 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/options.go +252 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/renderer.go +88 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/screen.go +248 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_unix.go +33 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_windows.go +10 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +790 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea.go +941 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea_init.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty.go +141 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_unix.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_windows.go +68 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.golangci.yml +47 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/README.md +109 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/doc.go +4 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env.go +294 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/profile.go +108 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/writer.go +171 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.golangci.yml +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/README.md +815 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/align.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/borders.go +490 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/color.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/get.go +556 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/join.go +175 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/position.go +154 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ranges.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/renderer.go +181 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/runes.go +43 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/set.go +799 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/size.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/style.go +588 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/unset.go +331 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/whitespace.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ansi.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ascii.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/background.go +178 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c0.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c1.go +72 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/charset.go +55 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/clipboard.go +75 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/color.go +784 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ctrl.go +156 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cursor.go +637 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cwd.go +26 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/doc.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/finalterm.go +67 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/graphics.go +62 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/hyperlink.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/inband.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/iterm2.go +18 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/keypad.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/kitty.go +90 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/method.go +196 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode.go +690 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +495 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/modes.go +65 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mouse.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/notification.go +32 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/palette.go +34 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser.go +417 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/const.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/seq.go +136 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_decode.go +525 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_handler.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_sync.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/passthrough.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/paste.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/progress.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/reset.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/screen.go +410 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/sgr.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/status.go +168 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/style.go +819 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/termcap.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/title.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/truncate.go +290 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/urxvt.go +17 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/util.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/width.go +107 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/winop.go +59 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/wrap.go +472 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/xterm.go +138 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/buffer.go +474 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/cell.go +487 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/errors.go +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/geom.go +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +301 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/link.go +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/pen.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/screen.go +1514 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/sequence.go +131 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/style.go +31 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +137 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/utils.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/wrap.go +191 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/writer.go +340 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term.go +51 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_other.go +39 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_plan9.go +118 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix.go +96 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_other.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_windows.go +87 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/terminal.go +12 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/util.go +47 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/LICENSE +23 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/README.md +20 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser.go +57 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_darwin.go +5 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_freebsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_openbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_unsupported.go +12 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_windows.go +7 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/.gitignore +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/AGENTS.md +51 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +129 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/README.md +190 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/gen.go +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/graphemes.go +73 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/options.go +30 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/trie.go +1699 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/truncate.go +149 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/width.go +239 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +120 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +138 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +79 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +144 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +25 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +205 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +1717 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +21 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +62 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +24 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +416 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/LICENSE +15 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypass.go +145 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +38 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/common.go +341 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/config.go +306 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/doc.go +211 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/dump.go +509 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/format.go +419 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/spew.go +148 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.golangci.yml +24 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/README.md +2 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/keycodes.go +205 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/mode.go +82 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/read.go +154 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/records.go +486 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/LICENSE.md +20 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/README.md +189 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color.go +733 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/doc.go +134 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.mailmap +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +651 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +147 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/README.md +214 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_fen.go +469 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_inotify.go +597 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +735 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_other.go +22 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_windows.go +702 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/fsnotify.go +526 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +32 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +56 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +16 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +45 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/internal.go +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix2.go +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/shared.go +64 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/staticcheck.conf +3 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_bsd.go +7 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_darwin.go +8 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.editorconfig +24 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.envrc +7 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +104 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/README.md +81 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +714 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.nix +14 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/errors.go +244 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +11 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +9 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +61 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +1948 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +44 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +10 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.cirrus.yml +11 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.golangci.yml +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/MAINTAINERS +3 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/README.md +47 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/SECURITY.md +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth.go +257 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_anonymous.go +16 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_other.go +7 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_windows.go +5 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_external.go +26 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +109 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/call.go +66 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn.go +1009 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_darwin.go +36 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_other.go +83 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_unix.go +40 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_windows.go +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/dbus.go +427 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/decoder.go +376 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/default_handler.go +338 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/doc.go +70 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/encoder.go +235 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/escape.go +84 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/export.go +484 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/match.go +89 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/message.go +393 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/object.go +181 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequence.go +24 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequential_handler.go +125 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/server_interfaces.go +107 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sig.go +298 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_darwin.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_generic.go +52 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unix.go +291 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +95 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +94 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_zos.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant.go +169 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_lexer.go +284 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_parser.go +815 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_others.go +16 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_windows.go +42 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/.gitignore +101 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +72 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/LICENSE +7 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/README.md +490 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +67 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colors.go +1156 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +91 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +1 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +208 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/rand.go +22 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +192 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/sort.go +191 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +290 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/README.md +48 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_others.go +38 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_windows.go +1047 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/noncolorable.go +57 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/LICENSE +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/README.md +50 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_bsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_others.go +17 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_plan9.go +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_solaris.go +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_tcgets.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_windows.go +136 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader.go +19 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_unix.go +11 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_windows.go +85 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/README.md +27 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/benchstat.txt +43 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/new.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/old.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth.go +420 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_js.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_posix.go +81 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_table.go +488 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_windows.go +34 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/LICENSE.txt +24 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/README.md +85 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/env.go +53 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/interpolate.go +213 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/parser.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.golangci.yml +27 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/README.md +31 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/ansi.go +7 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/buffer.go +40 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/compressor/writer.go +132 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/writer.go +76 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci-soft.yml +47 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci.yml +29 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/README.md +64 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader.go +93 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +146 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_default.go +12 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_linux.go +154 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_select.go +136 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_unix.go +18 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_windows.go +244 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci-soft.yml +43 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci.yml +28 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/README.md +431 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansi_compat.md +65 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansicolors.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/color.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_linux.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_solaris.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_unix.go +13 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_zos.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/copy.go +37 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/hyperlink.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/notification.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/output.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/profile.go +112 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/screen.go +590 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/style.go +126 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/templatehelper.go +88 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv.go +115 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_other.go +30 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_posix.go +17 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_solaris.go +22 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_unix.go +301 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_windows.go +140 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/.gitignore +24 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/README.md +35 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/atomic.go +73 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_unix.go +14 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_windows.go +33 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/zfile_windows.go +27 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.dockerignore +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitattributes +4 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.golangci.toml +76 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +128 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/AGENTS.md +73 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +254 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/Dockerfile +6 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/README.md +327 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/SECURITY.md +16 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +1 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/caps.sh +101 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/ci.sh +293 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode.go +538 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode_fused.go +362 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/errors.go +233 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +37 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +49 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +450 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/localtime.go +121 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/marshaler.go +1697 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/strict.go +108 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +597 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/toml.abnf +246 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/types.go +24 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +2396 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +124 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +21 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +3 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +83 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +29 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +1686 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +43 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/LICENSE +27 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/difflib/difflib.go +772 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.gitignore +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.golangci.yaml +31 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.goreleaser.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/CHANGELOG.md +350 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/Makefile +150 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/README.md +500 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/create.go +116 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier.go +25 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialects.go +214 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/doc.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/sql_extended.go +23 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store_extended.go +33 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/db.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/dialect.go +74 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/down.go +107 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/fix.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/globals.go +104 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/goose.go +141 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/helpers.go +84 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/install.sh +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/controller/store.go +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +53 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +62 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +70 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +50 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +72 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +118 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +173 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +59 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +394 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +282 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +237 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/locker.go +32 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/postgres.go +165 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +98 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +136 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/log.go +36 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migrate.go +379 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration.go +398 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration_sql.go +115 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/osfs.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider.go +669 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_collect.go +196 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_errors.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_options.go +280 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_run.go +535 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_types.go +91 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/redo.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/register.go +133 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/reset.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/status.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/up.go +221 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/version.go +52 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/LICENSE.txt +21 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/README.md +137 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/doc.go +108 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/eastasianwidth.go +2588 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/emojipresentation.go +295 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_breaktest.go +215 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_properties.go +261 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/grapheme.go +331 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemeproperties.go +1915 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemerules.go +176 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/line.go +134 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/lineproperties.go +3554 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/linerules.go +626 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/properties.go +208 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentence.go +90 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentenceproperties.go +2845 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentencerules.go +276 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/step.go +242 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/width.go +61 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/word.go +89 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordproperties.go +1883 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordrules.go +282 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/.gitignore +27 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/README.md +858 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/array.go +276 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/console.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/context.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/ctx.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder.go +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_cbor.go +45 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_json.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/event.go +919 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/example.jsonl +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/fields.go +312 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals.go +208 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals_118.go +30 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/go112.go +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/hook.go +64 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/README.md +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/cbor.go +102 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +654 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/string.go +117 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/time.go +111 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/types.go +524 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/bytes.go +85 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/string.go +149 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/types.go +466 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/log.go +528 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/not_go112.go +5 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/rs/zerolog/sampler.go +137 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/slog.go +247 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/syslog.go +89 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/writer.go +355 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.travis.yml +17 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/LICENSE.txt +29 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/README.md +335 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/block.go +1612 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/doc.go +46 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/entities.go +2236 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/esc.go +70 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/html.go +952 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/inline.go +1228 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/markdown.go +950 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/node.go +360 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/smartypants.go +457 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.gitignore +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.golangci.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/LICENSE +19 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/README.md +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.nix +17 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/file_type.go +32 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/finder.go +171 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob.go +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob_windows.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/helpers.go +41 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +53 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/justfile +14 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.editorconfig +18 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +1 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/Makefile +59 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/README.md +186 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/fuzzy.go +263 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/LICENSE +202 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/README.md +185 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff.go +134 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_constant.go +25 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_exponential.go +47 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +56 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/rand.go +54 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/retry.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/README.md +474 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/afero.go +111 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/appveyor.yml +10 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/basepath.go +222 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/cacheOnReadFs.go +315 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_bsds.go +23 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_win_unix.go +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/copyOnWriteFs.go +332 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/httpFs.go +114 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/internal/common/adapters.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/iofs.go +302 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/ioutil.go +243 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/lstater.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/match.go +110 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dir.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dirmap.go +43 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/file.go +373 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/memmap.go +463 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/os.go +113 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/path.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/readonlyfs.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/regexpfs.go +223 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/symlink.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/unionFile.go +331 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/util.go +329 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.golangci.yaml +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/Makefile +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/README.md +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/alias.go +69 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/basic.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/cast.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/indirect.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/time.go +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/timeformattype_string.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/map.go +212 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/number.go +549 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/slice.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/time.go +116 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/zz_generated.go +261 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.gitignore +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.golangci.yml +66 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.mailmap +3 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONDUCT.md +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/MAINTAINERS +13 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/Makefile +35 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/README.md +133 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/SECURITY.md +105 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/active_help.go +60 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/args.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completions.go +709 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completionsV2.go +484 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/cobra.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command.go +2072 -0
| @@ -0,0 +1,2072 @@ | |||
| 1 | + | // Copyright 2013-2023 The Cobra Authors | |
| 2 | + | // | |
| 3 | + | // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 | + | // you may not use this file except in compliance with the License. | |
| 5 | + | // You may obtain a copy of the License at | |
| 6 | + | // | |
| 7 | + | // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 | + | // | |
| 9 | + | // Unless required by applicable law or agreed to in writing, software | |
| 10 | + | // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 | + | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 | + | // See the License for the specific language governing permissions and | |
| 13 | + | // limitations under the License. | |
| 14 | + | ||
| 15 | + | // Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces. | |
| 16 | + | // In addition to providing an interface, Cobra simultaneously provides a controller to organize your application code. | |
| 17 | + | package cobra | |
| 18 | + | ||
| 19 | + | import ( | |
| 20 | + | "bytes" | |
| 21 | + | "context" | |
| 22 | + | "errors" | |
| 23 | + | "fmt" | |
| 24 | + | "io" | |
| 25 | + | "os" | |
| 26 | + | "path/filepath" | |
| 27 | + | "sort" | |
| 28 | + | "strings" | |
| 29 | + | ||
| 30 | + | flag "github.com/spf13/pflag" | |
| 31 | + | ) | |
| 32 | + | ||
| 33 | + | const ( | |
| 34 | + | FlagSetByCobraAnnotation = "cobra_annotation_flag_set_by_cobra" | |
| 35 | + | CommandDisplayNameAnnotation = "cobra_annotation_command_display_name" | |
| 36 | + | ||
| 37 | + | helpFlagName = "help" | |
| 38 | + | helpCommandName = "help" | |
| 39 | + | ) | |
| 40 | + | ||
| 41 | + | // FParseErrWhitelist configures Flag parse errors to be ignored | |
| 42 | + | type FParseErrWhitelist flag.ParseErrorsAllowlist | |
| 43 | + | ||
| 44 | + | // Group Structure to manage groups for commands | |
| 45 | + | type Group struct { | |
| 46 | + | ID string | |
| 47 | + | Title string | |
| 48 | + | } | |
| 49 | + | ||
| 50 | + | // Command is just that, a command for your application. | |
| 51 | + | // E.g. 'go run ...' - 'run' is the command. Cobra requires | |
| 52 | + | // you to define the usage and description as part of your command | |
| 53 | + | // definition to ensure usability. | |
| 54 | + | type Command struct { | |
| 55 | + | // Use is the one-line usage message. | |
| 56 | + | // Recommended syntax is as follows: | |
| 57 | + | // [ ] identifies an optional argument. Arguments that are not enclosed in brackets are required. | |
| 58 | + | // ... indicates that you can specify multiple values for the previous argument. | |
| 59 | + | // | indicates mutually exclusive information. You can use the argument to the left of the separator or the | |
| 60 | + | // argument to the right of the separator. You cannot use both arguments in a single use of the command. | |
| 61 | + | // { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are | |
| 62 | + | // optional, they are enclosed in brackets ([ ]). | |
| 63 | + | // Example: add [-F file | -D dir]... [-f format] profile | |
| 64 | + | Use string | |
| 65 | + | ||
| 66 | + | // Aliases is an array of aliases that can be used instead of the first word in Use. | |
| 67 | + | Aliases []string | |
| 68 | + | ||
| 69 | + | // SuggestFor is an array of command names for which this command will be suggested - | |
| 70 | + | // similar to aliases but only suggests. | |
| 71 | + | SuggestFor []string | |
| 72 | + | ||
| 73 | + | // Short is the short description shown in the 'help' output. | |
| 74 | + | Short string | |
| 75 | + | ||
| 76 | + | // The group id under which this subcommand is grouped in the 'help' output of its parent. | |
| 77 | + | GroupID string | |
| 78 | + | ||
| 79 | + | // Long is the long message shown in the 'help <this-command>' output. | |
| 80 | + | Long string | |
| 81 | + | ||
| 82 | + | // Example is examples of how to use the command. | |
| 83 | + | Example string | |
| 84 | + | ||
| 85 | + | // ValidArgs is list of all valid non-flag arguments that are accepted in shell completions | |
| 86 | + | ValidArgs []Completion | |
| 87 | + | // ValidArgsFunction is an optional function that provides valid non-flag arguments for shell completion. | |
| 88 | + | // It is a dynamic version of using ValidArgs. | |
| 89 | + | // Only one of ValidArgs and ValidArgsFunction can be used for a command. | |
| 90 | + | ValidArgsFunction CompletionFunc | |
| 91 | + | ||
| 92 | + | // Expected arguments | |
| 93 | + | Args PositionalArgs | |
| 94 | + | ||
| 95 | + | // ArgAliases is List of aliases for ValidArgs. | |
| 96 | + | // These are not suggested to the user in the shell completion, | |
| 97 | + | // but accepted if entered manually. | |
| 98 | + | ArgAliases []string | |
| 99 | + | ||
| 100 | + | // BashCompletionFunction is custom bash functions used by the legacy bash autocompletion generator. | |
| 101 | + | // For portability with other shells, it is recommended to instead use ValidArgsFunction | |
| 102 | + | BashCompletionFunction string | |
| 103 | + | ||
| 104 | + | // Deprecated defines, if this command is deprecated and should print this string when used. | |
| 105 | + | Deprecated string | |
| 106 | + | ||
| 107 | + | // Annotations are key/value pairs that can be used by applications to identify or | |
| 108 | + | // group commands or set special options. | |
| 109 | + | Annotations map[string]string | |
| 110 | + | ||
| 111 | + | // Version defines the version for this command. If this value is non-empty and the command does not | |
| 112 | + | // define a "version" flag, a "version" boolean flag will be added to the command and, if specified, | |
| 113 | + | // will print content of the "Version" variable. A shorthand "v" flag will also be added if the | |
| 114 | + | // command does not define one. | |
| 115 | + | Version string | |
| 116 | + | ||
| 117 | + | // The *Run functions are executed in the following order: | |
| 118 | + | // * PersistentPreRun() | |
| 119 | + | // * PreRun() | |
| 120 | + | // * Run() | |
| 121 | + | // * PostRun() | |
| 122 | + | // * PersistentPostRun() | |
| 123 | + | // All functions get the same args, the arguments after the command name. | |
| 124 | + | // The *PreRun and *PostRun functions will only be executed if the Run function of the current | |
| 125 | + | // command has been declared. | |
| 126 | + | // | |
| 127 | + | // PersistentPreRun: children of this command will inherit and execute. | |
| 128 | + | PersistentPreRun func(cmd *Command, args []string) | |
| 129 | + | // PersistentPreRunE: PersistentPreRun but returns an error. | |
| 130 | + | PersistentPreRunE func(cmd *Command, args []string) error | |
| 131 | + | // PreRun: children of this command will not inherit. | |
| 132 | + | PreRun func(cmd *Command, args []string) | |
| 133 | + | // PreRunE: PreRun but returns an error. | |
| 134 | + | PreRunE func(cmd *Command, args []string) error | |
| 135 | + | // Run: Typically the actual work function. Most commands will only implement this. | |
| 136 | + | Run func(cmd *Command, args []string) | |
| 137 | + | // RunE: Run but returns an error. | |
| 138 | + | RunE func(cmd *Command, args []string) error | |
| 139 | + | // PostRun: run after the Run command. | |
| 140 | + | PostRun func(cmd *Command, args []string) | |
| 141 | + | // PostRunE: PostRun but returns an error. | |
| 142 | + | PostRunE func(cmd *Command, args []string) error | |
| 143 | + | // PersistentPostRun: children of this command will inherit and execute after PostRun. | |
| 144 | + | PersistentPostRun func(cmd *Command, args []string) | |
| 145 | + | // PersistentPostRunE: PersistentPostRun but returns an error. | |
| 146 | + | PersistentPostRunE func(cmd *Command, args []string) error | |
| 147 | + | ||
| 148 | + | // groups for subcommands | |
| 149 | + | commandgroups []*Group | |
| 150 | + | ||
| 151 | + | // args is actual args parsed from flags. | |
| 152 | + | args []string | |
| 153 | + | // flagErrorBuf contains all error messages from pflag. | |
| 154 | + | flagErrorBuf *bytes.Buffer | |
| 155 | + | // flags is full set of flags. | |
| 156 | + | flags *flag.FlagSet | |
| 157 | + | // pflags contains persistent flags. | |
| 158 | + | pflags *flag.FlagSet | |
| 159 | + | // lflags contains local flags. | |
| 160 | + | // This field does not represent internal state, it's used as a cache to optimise LocalFlags function call | |
| 161 | + | lflags *flag.FlagSet | |
| 162 | + | // iflags contains inherited flags. | |
| 163 | + | // This field does not represent internal state, it's used as a cache to optimise InheritedFlags function call | |
| 164 | + | iflags *flag.FlagSet | |
| 165 | + | // parentsPflags is all persistent flags of cmd's parents. | |
| 166 | + | parentsPflags *flag.FlagSet | |
| 167 | + | // globNormFunc is the global normalization function | |
| 168 | + | // that we can use on every pflag set and children commands | |
| 169 | + | globNormFunc func(f *flag.FlagSet, name string) flag.NormalizedName | |
| 170 | + | ||
| 171 | + | // usageFunc is usage func defined by user. | |
| 172 | + | usageFunc func(*Command) error | |
| 173 | + | // usageTemplate is usage template defined by user. | |
| 174 | + | usageTemplate *tmplFunc | |
| 175 | + | // flagErrorFunc is func defined by user and it's called when the parsing of | |
| 176 | + | // flags returns an error. | |
| 177 | + | flagErrorFunc func(*Command, error) error | |
| 178 | + | // helpTemplate is help template defined by user. | |
| 179 | + | helpTemplate *tmplFunc | |
| 180 | + | // helpFunc is help func defined by user. | |
| 181 | + | helpFunc func(*Command, []string) | |
| 182 | + | // helpCommand is command with usage 'help'. If it's not defined by user, | |
| 183 | + | // cobra uses default help command. | |
| 184 | + | helpCommand *Command | |
| 185 | + | // helpCommandGroupID is the group id for the helpCommand | |
| 186 | + | helpCommandGroupID string | |
| 187 | + | ||
| 188 | + | // completionCommandGroupID is the group id for the completion command | |
| 189 | + | completionCommandGroupID string | |
| 190 | + | ||
| 191 | + | // versionTemplate is the version template defined by user. | |
| 192 | + | versionTemplate *tmplFunc | |
| 193 | + | ||
| 194 | + | // errPrefix is the error message prefix defined by user. | |
| 195 | + | errPrefix string | |
| 196 | + | ||
| 197 | + | // inReader is a reader defined by the user that replaces stdin | |
| 198 | + | inReader io.Reader | |
| 199 | + | // outWriter is a writer defined by the user that replaces stdout | |
| 200 | + | outWriter io.Writer | |
| 201 | + | // errWriter is a writer defined by the user that replaces stderr | |
| 202 | + | errWriter io.Writer | |
| 203 | + | ||
| 204 | + | // FParseErrWhitelist flag parse errors to be ignored | |
| 205 | + | FParseErrWhitelist FParseErrWhitelist | |
| 206 | + | ||
| 207 | + | // CompletionOptions is a set of options to control the handling of shell completion | |
| 208 | + | CompletionOptions CompletionOptions | |
| 209 | + | ||
| 210 | + | // commandsAreSorted defines, if command slice are sorted or not. | |
| 211 | + | commandsAreSorted bool | |
| 212 | + | // commandCalledAs is the name or alias value used to call this command. | |
| 213 | + | commandCalledAs struct { | |
| 214 | + | name string | |
| 215 | + | called bool | |
| 216 | + | } | |
| 217 | + | ||
| 218 | + | ctx context.Context | |
| 219 | + | ||
| 220 | + | // commands is the list of commands supported by this program. | |
| 221 | + | commands []*Command | |
| 222 | + | // parent is a parent command for this command. | |
| 223 | + | parent *Command | |
| 224 | + | // Max lengths of commands' string lengths for use in padding. | |
| 225 | + | commandsMaxUseLen int | |
| 226 | + | commandsMaxCommandPathLen int | |
| 227 | + | commandsMaxNameLen int | |
| 228 | + | ||
| 229 | + | // TraverseChildren parses flags on all parents before executing child command. | |
| 230 | + | TraverseChildren bool | |
| 231 | + | ||
| 232 | + | // Hidden defines, if this command is hidden and should NOT show up in the list of available commands. | |
| 233 | + | Hidden bool | |
| 234 | + | ||
| 235 | + | // SilenceErrors is an option to quiet errors down stream. | |
| 236 | + | SilenceErrors bool | |
| 237 | + | ||
| 238 | + | // SilenceUsage is an option to silence usage when an error occurs. | |
| 239 | + | SilenceUsage bool | |
| 240 | + | ||
| 241 | + | // DisableFlagParsing disables the flag parsing. | |
| 242 | + | // If this is true all flags will be passed to the command as arguments. | |
| 243 | + | DisableFlagParsing bool | |
| 244 | + | ||
| 245 | + | // DisableAutoGenTag defines, if gen tag ("Auto generated by spf13/cobra...") | |
| 246 | + | // will be printed by generating docs for this command. | |
| 247 | + | DisableAutoGenTag bool | |
| 248 | + | ||
| 249 | + | // DisableFlagsInUseLine will disable the addition of [flags] to the usage | |
| 250 | + | // line of a command when printing help or generating docs | |
| 251 | + | DisableFlagsInUseLine bool | |
| 252 | + | ||
| 253 | + | // DisableSuggestions disables the suggestions based on Levenshtein distance | |
| 254 | + | // that go along with 'unknown command' messages. | |
| 255 | + | DisableSuggestions bool | |
| 256 | + | ||
| 257 | + | // SuggestionsMinimumDistance defines minimum levenshtein distance to display suggestions. | |
| 258 | + | // Must be > 0. | |
| 259 | + | SuggestionsMinimumDistance int | |
| 260 | + | } | |
| 261 | + | ||
| 262 | + | // Context returns underlying command context. If command was executed | |
| 263 | + | // with ExecuteContext or the context was set with SetContext, the | |
| 264 | + | // previously set context will be returned. Otherwise, nil is returned. | |
| 265 | + | // | |
| 266 | + | // Notice that a call to Execute and ExecuteC will replace a nil context of | |
| 267 | + | // a command with a context.Background, so a background context will be | |
| 268 | + | // returned by Context after one of these functions has been called. | |
| 269 | + | func (c *Command) Context() context.Context { | |
| 270 | + | return c.ctx | |
| 271 | + | } | |
| 272 | + | ||
| 273 | + | // SetContext sets context for the command. This context will be overwritten by | |
| 274 | + | // Command.ExecuteContext or Command.ExecuteContextC. | |
| 275 | + | func (c *Command) SetContext(ctx context.Context) { | |
| 276 | + | c.ctx = ctx | |
| 277 | + | } | |
| 278 | + | ||
| 279 | + | // SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden | |
| 280 | + | // particularly useful when testing. | |
| 281 | + | func (c *Command) SetArgs(a []string) { | |
| 282 | + | c.args = a | |
| 283 | + | } | |
| 284 | + | ||
| 285 | + | // SetOutput sets the destination for usage and error messages. | |
| 286 | + | // If output is nil, os.Stderr is used. | |
| 287 | + | // | |
| 288 | + | // Deprecated: Use SetOut and/or SetErr instead | |
| 289 | + | func (c *Command) SetOutput(output io.Writer) { | |
| 290 | + | c.outWriter = output | |
| 291 | + | c.errWriter = output | |
| 292 | + | } | |
| 293 | + | ||
| 294 | + | // SetOut sets the destination for usage messages. | |
| 295 | + | // If newOut is nil, os.Stdout is used. | |
| 296 | + | func (c *Command) SetOut(newOut io.Writer) { | |
| 297 | + | c.outWriter = newOut | |
| 298 | + | } | |
| 299 | + | ||
| 300 | + | // SetErr sets the destination for error messages. | |
| 301 | + | // If newErr is nil, os.Stderr is used. | |
| 302 | + | func (c *Command) SetErr(newErr io.Writer) { | |
| 303 | + | c.errWriter = newErr | |
| 304 | + | } | |
| 305 | + | ||
| 306 | + | // SetIn sets the source for input data | |
| 307 | + | // If newIn is nil, os.Stdin is used. | |
| 308 | + | func (c *Command) SetIn(newIn io.Reader) { | |
| 309 | + | c.inReader = newIn | |
| 310 | + | } | |
| 311 | + | ||
| 312 | + | // SetUsageFunc sets usage function. Usage can be defined by application. | |
| 313 | + | func (c *Command) SetUsageFunc(f func(*Command) error) { | |
| 314 | + | c.usageFunc = f | |
| 315 | + | } | |
| 316 | + | ||
| 317 | + | // SetUsageTemplate sets usage template. Can be defined by Application. | |
| 318 | + | func (c *Command) SetUsageTemplate(s string) { | |
| 319 | + | if s == "" { | |
| 320 | + | c.usageTemplate = nil | |
| 321 | + | return | |
| 322 | + | } | |
| 323 | + | c.usageTemplate = tmpl(s) | |
| 324 | + | } | |
| 325 | + | ||
| 326 | + | // SetFlagErrorFunc sets a function to generate an error when flag parsing | |
| 327 | + | // fails. | |
| 328 | + | func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) { | |
| 329 | + | c.flagErrorFunc = f | |
| 330 | + | } | |
| 331 | + | ||
| 332 | + | // SetHelpFunc sets help function. Can be defined by Application. | |
| 333 | + | func (c *Command) SetHelpFunc(f func(*Command, []string)) { | |
| 334 | + | c.helpFunc = f | |
| 335 | + | } | |
| 336 | + | ||
| 337 | + | // SetHelpCommand sets help command. | |
| 338 | + | func (c *Command) SetHelpCommand(cmd *Command) { | |
| 339 | + | c.helpCommand = cmd | |
| 340 | + | } | |
| 341 | + | ||
| 342 | + | // SetHelpCommandGroupID sets the group id of the help command. | |
| 343 | + | func (c *Command) SetHelpCommandGroupID(groupID string) { | |
| 344 | + | if c.helpCommand != nil { | |
| 345 | + | c.helpCommand.GroupID = groupID | |
| 346 | + | } | |
| 347 | + | // helpCommandGroupID is used if no helpCommand is defined by the user | |
| 348 | + | c.helpCommandGroupID = groupID | |
| 349 | + | } | |
| 350 | + | ||
| 351 | + | // SetCompletionCommandGroupID sets the group id of the completion command. | |
| 352 | + | func (c *Command) SetCompletionCommandGroupID(groupID string) { | |
| 353 | + | // completionCommandGroupID is used if no completion command is defined by the user | |
| 354 | + | c.Root().completionCommandGroupID = groupID | |
| 355 | + | } | |
| 356 | + | ||
| 357 | + | // SetHelpTemplate sets help template to be used. Application can use it to set custom template. | |
| 358 | + | func (c *Command) SetHelpTemplate(s string) { | |
| 359 | + | if s == "" { | |
| 360 | + | c.helpTemplate = nil | |
| 361 | + | return | |
| 362 | + | } | |
| 363 | + | c.helpTemplate = tmpl(s) | |
| 364 | + | } | |
| 365 | + | ||
| 366 | + | // SetVersionTemplate sets version template to be used. Application can use it to set custom template. | |
| 367 | + | func (c *Command) SetVersionTemplate(s string) { | |
| 368 | + | if s == "" { | |
| 369 | + | c.versionTemplate = nil | |
| 370 | + | return | |
| 371 | + | } | |
| 372 | + | c.versionTemplate = tmpl(s) | |
| 373 | + | } | |
| 374 | + | ||
| 375 | + | // SetErrPrefix sets error message prefix to be used. Application can use it to set custom prefix. | |
| 376 | + | func (c *Command) SetErrPrefix(s string) { | |
| 377 | + | c.errPrefix = s | |
| 378 | + | } | |
| 379 | + | ||
| 380 | + | // SetGlobalNormalizationFunc sets a normalization function to all flag sets and also to child commands. | |
| 381 | + | // The user should not have a cyclic dependency on commands. | |
| 382 | + | func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, name string) flag.NormalizedName) { | |
| 383 | + | c.Flags().SetNormalizeFunc(n) | |
| 384 | + | c.PersistentFlags().SetNormalizeFunc(n) | |
| 385 | + | c.globNormFunc = n | |
| 386 | + | ||
| 387 | + | for _, command := range c.commands { | |
| 388 | + | command.SetGlobalNormalizationFunc(n) | |
| 389 | + | } | |
| 390 | + | } | |
| 391 | + | ||
| 392 | + | // OutOrStdout returns output to stdout. | |
| 393 | + | func (c *Command) OutOrStdout() io.Writer { | |
| 394 | + | return c.getOut(os.Stdout) | |
| 395 | + | } | |
| 396 | + | ||
| 397 | + | // OutOrStderr returns output to stderr | |
| 398 | + | func (c *Command) OutOrStderr() io.Writer { | |
| 399 | + | return c.getOut(os.Stderr) | |
| 400 | + | } | |
| 401 | + | ||
| 402 | + | // ErrOrStderr returns output to stderr | |
| 403 | + | func (c *Command) ErrOrStderr() io.Writer { | |
| 404 | + | return c.getErr(os.Stderr) | |
| 405 | + | } | |
| 406 | + | ||
| 407 | + | // InOrStdin returns input to stdin | |
| 408 | + | func (c *Command) InOrStdin() io.Reader { | |
| 409 | + | return c.getIn(os.Stdin) | |
| 410 | + | } | |
| 411 | + | ||
| 412 | + | func (c *Command) getOut(def io.Writer) io.Writer { | |
| 413 | + | if c.outWriter != nil { | |
| 414 | + | return c.outWriter | |
| 415 | + | } | |
| 416 | + | if c.HasParent() { | |
| 417 | + | return c.parent.getOut(def) | |
| 418 | + | } | |
| 419 | + | return def | |
| 420 | + | } | |
| 421 | + | ||
| 422 | + | func (c *Command) getErr(def io.Writer) io.Writer { | |
| 423 | + | if c.errWriter != nil { | |
| 424 | + | return c.errWriter | |
| 425 | + | } | |
| 426 | + | if c.HasParent() { | |
| 427 | + | return c.parent.getErr(def) | |
| 428 | + | } | |
| 429 | + | return def | |
| 430 | + | } | |
| 431 | + | ||
| 432 | + | func (c *Command) getIn(def io.Reader) io.Reader { | |
| 433 | + | if c.inReader != nil { | |
| 434 | + | return c.inReader | |
| 435 | + | } | |
| 436 | + | if c.HasParent() { | |
| 437 | + | return c.parent.getIn(def) | |
| 438 | + | } | |
| 439 | + | return def | |
| 440 | + | } | |
| 441 | + | ||
| 442 | + | // UsageFunc returns either the function set by SetUsageFunc for this command | |
| 443 | + | // or a parent, or it returns a default usage function. | |
| 444 | + | func (c *Command) UsageFunc() (f func(*Command) error) { | |
| 445 | + | if c.usageFunc != nil { | |
| 446 | + | return c.usageFunc | |
| 447 | + | } | |
| 448 | + | if c.HasParent() { | |
| 449 | + | return c.Parent().UsageFunc() | |
| 450 | + | } | |
| 451 | + | return func(c *Command) error { | |
| 452 | + | c.mergePersistentFlags() | |
| 453 | + | fn := c.getUsageTemplateFunc() | |
| 454 | + | err := fn(c.OutOrStderr(), c) | |
| 455 | + | if err != nil { | |
| 456 | + | c.PrintErrln(err) | |
| 457 | + | } | |
| 458 | + | return err | |
| 459 | + | } | |
| 460 | + | } | |
| 461 | + | ||
| 462 | + | // getUsageTemplateFunc returns the usage template function for the command | |
| 463 | + | // going up the command tree if necessary. | |
| 464 | + | func (c *Command) getUsageTemplateFunc() func(w io.Writer, data interface{}) error { | |
| 465 | + | if c.usageTemplate != nil { | |
| 466 | + | return c.usageTemplate.fn | |
| 467 | + | } | |
| 468 | + | ||
| 469 | + | if c.HasParent() { | |
| 470 | + | return c.parent.getUsageTemplateFunc() | |
| 471 | + | } | |
| 472 | + | return defaultUsageFunc | |
| 473 | + | } | |
| 474 | + | ||
| 475 | + | // Usage puts out the usage for the command. | |
| 476 | + | // Used when a user provides invalid input. | |
| 477 | + | // Can be defined by user by overriding UsageFunc. | |
| 478 | + | func (c *Command) Usage() error { | |
| 479 | + | return c.UsageFunc()(c) | |
| 480 | + | } | |
| 481 | + | ||
| 482 | + | // HelpFunc returns either the function set by SetHelpFunc for this command | |
| 483 | + | // or a parent, or it returns a function with default help behavior. | |
| 484 | + | func (c *Command) HelpFunc() func(*Command, []string) { | |
| 485 | + | if c.helpFunc != nil { | |
| 486 | + | return c.helpFunc | |
| 487 | + | } | |
| 488 | + | if c.HasParent() { | |
| 489 | + | return c.Parent().HelpFunc() | |
| 490 | + | } | |
| 491 | + | return func(c *Command, a []string) { | |
| 492 | + | c.mergePersistentFlags() | |
| 493 | + | fn := c.getHelpTemplateFunc() | |
| 494 | + | // The help should be sent to stdout | |
| 495 | + | // See https://github.com/spf13/cobra/issues/1002 | |
| 496 | + | err := fn(c.OutOrStdout(), c) | |
| 497 | + | if err != nil { | |
| 498 | + | c.PrintErrln(err) | |
| 499 | + | } | |
| 500 | + | } | |
| 501 | + | } | |
| 502 | + | ||
| 503 | + | // getHelpTemplateFunc returns the help template function for the command | |
| 504 | + | // going up the command tree if necessary. | |
| 505 | + | func (c *Command) getHelpTemplateFunc() func(w io.Writer, data interface{}) error { | |
| 506 | + | if c.helpTemplate != nil { | |
| 507 | + | return c.helpTemplate.fn | |
| 508 | + | } | |
| 509 | + | ||
| 510 | + | if c.HasParent() { | |
| 511 | + | return c.parent.getHelpTemplateFunc() | |
| 512 | + | } | |
| 513 | + | ||
| 514 | + | return defaultHelpFunc | |
| 515 | + | } | |
| 516 | + | ||
| 517 | + | // Help puts out the help for the command. | |
| 518 | + | // Used when a user calls help [command]. | |
| 519 | + | // Can be defined by user by overriding HelpFunc. | |
| 520 | + | func (c *Command) Help() error { | |
| 521 | + | c.HelpFunc()(c, []string{}) | |
| 522 | + | return nil | |
| 523 | + | } | |
| 524 | + | ||
| 525 | + | // UsageString returns usage string. | |
| 526 | + | func (c *Command) UsageString() string { | |
| 527 | + | // Storing normal writers | |
| 528 | + | tmpOutput := c.outWriter | |
| 529 | + | tmpErr := c.errWriter | |
| 530 | + | ||
| 531 | + | bb := new(bytes.Buffer) | |
| 532 | + | c.outWriter = bb | |
| 533 | + | c.errWriter = bb | |
| 534 | + | ||
| 535 | + | CheckErr(c.Usage()) | |
| 536 | + | ||
| 537 | + | // Setting things back to normal | |
| 538 | + | c.outWriter = tmpOutput | |
| 539 | + | c.errWriter = tmpErr | |
| 540 | + | ||
| 541 | + | return bb.String() | |
| 542 | + | } | |
| 543 | + | ||
| 544 | + | // FlagErrorFunc returns either the function set by SetFlagErrorFunc for this | |
| 545 | + | // command or a parent, or it returns a function which returns the original | |
| 546 | + | // error. | |
| 547 | + | func (c *Command) FlagErrorFunc() (f func(*Command, error) error) { | |
| 548 | + | if c.flagErrorFunc != nil { | |
| 549 | + | return c.flagErrorFunc | |
| 550 | + | } | |
| 551 | + | ||
| 552 | + | if c.HasParent() { | |
| 553 | + | return c.parent.FlagErrorFunc() | |
| 554 | + | } | |
| 555 | + | return func(c *Command, err error) error { | |
| 556 | + | return err | |
| 557 | + | } | |
| 558 | + | } | |
| 559 | + | ||
| 560 | + | const minUsagePadding = 25 | |
| 561 | + | ||
| 562 | + | // UsagePadding return padding for the usage. | |
| 563 | + | func (c *Command) UsagePadding() int { | |
| 564 | + | if c.parent == nil || minUsagePadding > c.parent.commandsMaxUseLen { | |
| 565 | + | return minUsagePadding | |
| 566 | + | } | |
| 567 | + | return c.parent.commandsMaxUseLen | |
| 568 | + | } | |
| 569 | + | ||
| 570 | + | const minCommandPathPadding = 11 | |
| 571 | + | ||
| 572 | + | // CommandPathPadding return padding for the command path. | |
| 573 | + | func (c *Command) CommandPathPadding() int { | |
| 574 | + | if c.parent == nil || minCommandPathPadding > c.parent.commandsMaxCommandPathLen { | |
| 575 | + | return minCommandPathPadding | |
| 576 | + | } | |
| 577 | + | return c.parent.commandsMaxCommandPathLen | |
| 578 | + | } | |
| 579 | + | ||
| 580 | + | const minNamePadding = 11 | |
| 581 | + | ||
| 582 | + | // NamePadding returns padding for the name. | |
| 583 | + | func (c *Command) NamePadding() int { | |
| 584 | + | if c.parent == nil || minNamePadding > c.parent.commandsMaxNameLen { | |
| 585 | + | return minNamePadding | |
| 586 | + | } | |
| 587 | + | return c.parent.commandsMaxNameLen | |
| 588 | + | } | |
| 589 | + | ||
| 590 | + | // UsageTemplate returns usage template for the command. | |
| 591 | + | // This function is kept for backwards-compatibility reasons. | |
| 592 | + | func (c *Command) UsageTemplate() string { | |
| 593 | + | if c.usageTemplate != nil { | |
| 594 | + | return c.usageTemplate.tmpl | |
| 595 | + | } | |
| 596 | + | ||
| 597 | + | if c.HasParent() { | |
| 598 | + | return c.parent.UsageTemplate() | |
| 599 | + | } | |
| 600 | + | return defaultUsageTemplate | |
| 601 | + | } | |
| 602 | + | ||
| 603 | + | // HelpTemplate return help template for the command. | |
| 604 | + | // This function is kept for backwards-compatibility reasons. | |
| 605 | + | func (c *Command) HelpTemplate() string { | |
| 606 | + | if c.helpTemplate != nil { | |
| 607 | + | return c.helpTemplate.tmpl | |
| 608 | + | } | |
| 609 | + | ||
| 610 | + | if c.HasParent() { | |
| 611 | + | return c.parent.HelpTemplate() | |
| 612 | + | } | |
| 613 | + | return defaultHelpTemplate | |
| 614 | + | } | |
| 615 | + | ||
| 616 | + | // VersionTemplate return version template for the command. | |
| 617 | + | // This function is kept for backwards-compatibility reasons. | |
| 618 | + | func (c *Command) VersionTemplate() string { | |
| 619 | + | if c.versionTemplate != nil { | |
| 620 | + | return c.versionTemplate.tmpl | |
| 621 | + | } | |
| 622 | + | ||
| 623 | + | if c.HasParent() { | |
| 624 | + | return c.parent.VersionTemplate() | |
| 625 | + | } | |
| 626 | + | return defaultVersionTemplate | |
| 627 | + | } | |
| 628 | + | ||
| 629 | + | // getVersionTemplateFunc returns the version template function for the command | |
| 630 | + | // going up the command tree if necessary. | |
| 631 | + | func (c *Command) getVersionTemplateFunc() func(w io.Writer, data interface{}) error { | |
| 632 | + | if c.versionTemplate != nil { | |
| 633 | + | return c.versionTemplate.fn | |
| 634 | + | } | |
| 635 | + | ||
| 636 | + | if c.HasParent() { | |
| 637 | + | return c.parent.getVersionTemplateFunc() | |
| 638 | + | } | |
| 639 | + | return defaultVersionFunc | |
| 640 | + | } | |
| 641 | + | ||
| 642 | + | // ErrPrefix return error message prefix for the command | |
| 643 | + | func (c *Command) ErrPrefix() string { | |
| 644 | + | if c.errPrefix != "" { | |
| 645 | + | return c.errPrefix | |
| 646 | + | } | |
| 647 | + | ||
| 648 | + | if c.HasParent() { | |
| 649 | + | return c.parent.ErrPrefix() | |
| 650 | + | } | |
| 651 | + | return "Error:" | |
| 652 | + | } | |
| 653 | + | ||
| 654 | + | func hasNoOptDefVal(name string, fs *flag.FlagSet) bool { | |
| 655 | + | flag := fs.Lookup(name) | |
| 656 | + | if flag == nil { | |
| 657 | + | return false | |
| 658 | + | } | |
| 659 | + | return flag.NoOptDefVal != "" | |
| 660 | + | } | |
| 661 | + | ||
| 662 | + | func shortHasNoOptDefVal(name string, fs *flag.FlagSet) bool { | |
| 663 | + | if len(name) == 0 { | |
| 664 | + | return false | |
| 665 | + | } | |
| 666 | + | ||
| 667 | + | flag := fs.ShorthandLookup(name[:1]) | |
| 668 | + | if flag == nil { | |
| 669 | + | return false | |
| 670 | + | } | |
| 671 | + | return flag.NoOptDefVal != "" | |
| 672 | + | } | |
| 673 | + | ||
| 674 | + | func stripFlags(args []string, c *Command) []string { | |
| 675 | + | if len(args) == 0 { | |
| 676 | + | return args | |
| 677 | + | } | |
| 678 | + | c.mergePersistentFlags() | |
| 679 | + | ||
| 680 | + | commands := []string{} | |
| 681 | + | flags := c.Flags() | |
| 682 | + | ||
| 683 | + | Loop: | |
| 684 | + | for len(args) > 0 { | |
| 685 | + | s := args[0] | |
| 686 | + | args = args[1:] | |
| 687 | + | switch { | |
| 688 | + | case s == "--": | |
| 689 | + | // "--" terminates the flags | |
| 690 | + | break Loop | |
| 691 | + | case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags): | |
| 692 | + | // If '--flag arg' then | |
| 693 | + | // delete arg from args. | |
| 694 | + | fallthrough // (do the same as below) | |
| 695 | + | case strings.HasPrefix(s, "-") && !strings.Contains(s, "=") && len(s) == 2 && !shortHasNoOptDefVal(s[1:], flags): | |
| 696 | + | // If '-f arg' then | |
| 697 | + | // delete 'arg' from args or break the loop if len(args) <= 1. | |
| 698 | + | if len(args) <= 1 { | |
| 699 | + | break Loop | |
| 700 | + | } else { | |
| 701 | + | args = args[1:] | |
| 702 | + | continue | |
| 703 | + | } | |
| 704 | + | case s != "" && !strings.HasPrefix(s, "-"): | |
| 705 | + | commands = append(commands, s) | |
| 706 | + | } | |
| 707 | + | } | |
| 708 | + | ||
| 709 | + | return commands | |
| 710 | + | } | |
| 711 | + | ||
| 712 | + | // argsMinusFirstX removes only the first x from args. Otherwise, commands that look like | |
| 713 | + | // openshift admin policy add-role-to-user admin my-user, lose the admin argument (arg[4]). | |
| 714 | + | // Special care needs to be taken not to remove a flag value. | |
| 715 | + | func (c *Command) argsMinusFirstX(args []string, x string) []string { | |
| 716 | + | if len(args) == 0 { | |
| 717 | + | return args | |
| 718 | + | } | |
| 719 | + | c.mergePersistentFlags() | |
| 720 | + | flags := c.Flags() | |
| 721 | + | ||
| 722 | + | Loop: | |
| 723 | + | for pos := 0; pos < len(args); pos++ { | |
| 724 | + | s := args[pos] | |
| 725 | + | switch { | |
| 726 | + | case s == "--": | |
| 727 | + | // -- means we have reached the end of the parseable args. Break out of the loop now. | |
| 728 | + | break Loop | |
| 729 | + | case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags): | |
| 730 | + | fallthrough | |
| 731 | + | case strings.HasPrefix(s, "-") && !strings.Contains(s, "=") && len(s) == 2 && !shortHasNoOptDefVal(s[1:], flags): | |
| 732 | + | // This is a flag without a default value, and an equal sign is not used. Increment pos in order to skip | |
| 733 | + | // over the next arg, because that is the value of this flag. | |
| 734 | + | pos++ | |
| 735 | + | continue | |
| 736 | + | case !strings.HasPrefix(s, "-"): | |
| 737 | + | // This is not a flag or a flag value. Check to see if it matches what we're looking for, and if so, | |
| 738 | + | // return the args, excluding the one at this position. | |
| 739 | + | if s == x { | |
| 740 | + | ret := make([]string, 0, len(args)-1) | |
| 741 | + | ret = append(ret, args[:pos]...) | |
| 742 | + | ret = append(ret, args[pos+1:]...) | |
| 743 | + | return ret | |
| 744 | + | } | |
| 745 | + | } | |
| 746 | + | } | |
| 747 | + | return args | |
| 748 | + | } | |
| 749 | + | ||
| 750 | + | func isFlagArg(arg string) bool { | |
| 751 | + | return ((len(arg) >= 3 && arg[0:2] == "--") || | |
| 752 | + | (len(arg) >= 2 && arg[0] == '-' && arg[1] != '-')) | |
| 753 | + | } | |
| 754 | + | ||
| 755 | + | // Find the target command given the args and command tree | |
| 756 | + | // Meant to be run on the highest node. Only searches down. | |
| 757 | + | func (c *Command) Find(args []string) (*Command, []string, error) { | |
| 758 | + | var innerfind func(*Command, []string) (*Command, []string) | |
| 759 | + | ||
| 760 | + | innerfind = func(c *Command, innerArgs []string) (*Command, []string) { | |
| 761 | + | argsWOflags := stripFlags(innerArgs, c) | |
| 762 | + | if len(argsWOflags) == 0 { | |
| 763 | + | return c, innerArgs | |
| 764 | + | } | |
| 765 | + | nextSubCmd := argsWOflags[0] | |
| 766 | + | ||
| 767 | + | cmd := c.findNext(nextSubCmd) | |
| 768 | + | if cmd != nil { | |
| 769 | + | return innerfind(cmd, c.argsMinusFirstX(innerArgs, nextSubCmd)) | |
| 770 | + | } | |
| 771 | + | return c, innerArgs | |
| 772 | + | } | |
| 773 | + | ||
| 774 | + | commandFound, a := innerfind(c, args) | |
| 775 | + | if commandFound.Args == nil { | |
| 776 | + | return commandFound, a, legacyArgs(commandFound, stripFlags(a, commandFound)) | |
| 777 | + | } | |
| 778 | + | return commandFound, a, nil | |
| 779 | + | } | |
| 780 | + | ||
| 781 | + | func (c *Command) findSuggestions(arg string) string { | |
| 782 | + | if c.DisableSuggestions { | |
| 783 | + | return "" | |
| 784 | + | } | |
| 785 | + | if c.SuggestionsMinimumDistance <= 0 { | |
| 786 | + | c.SuggestionsMinimumDistance = 2 | |
| 787 | + | } | |
| 788 | + | var sb strings.Builder | |
| 789 | + | if suggestions := c.SuggestionsFor(arg); len(suggestions) > 0 { | |
| 790 | + | sb.WriteString("\n\nDid you mean this?\n") | |
| 791 | + | for _, s := range suggestions { | |
| 792 | + | _, _ = fmt.Fprintf(&sb, "\t%v\n", s) | |
| 793 | + | } | |
| 794 | + | } | |
| 795 | + | return sb.String() | |
| 796 | + | } | |
| 797 | + | ||
| 798 | + | func (c *Command) findNext(next string) *Command { | |
| 799 | + | matches := make([]*Command, 0) | |
| 800 | + | for _, cmd := range c.commands { | |
| 801 | + | if commandNameMatches(cmd.Name(), next) || cmd.HasAlias(next) { | |
| 802 | + | cmd.commandCalledAs.name = next | |
| 803 | + | return cmd | |
| 804 | + | } | |
| 805 | + | if EnablePrefixMatching && cmd.hasNameOrAliasPrefix(next) { | |
| 806 | + | matches = append(matches, cmd) | |
| 807 | + | } | |
| 808 | + | } | |
| 809 | + | ||
| 810 | + | if len(matches) == 1 { | |
| 811 | + | // Temporarily disable gosec G602, which produces a false positive. | |
| 812 | + | // See https://github.com/securego/gosec/issues/1005. | |
| 813 | + | return matches[0] // #nosec G602 | |
| 814 | + | } | |
| 815 | + | ||
| 816 | + | return nil | |
| 817 | + | } | |
| 818 | + | ||
| 819 | + | // Traverse the command tree to find the command, and parse args for | |
| 820 | + | // each parent. | |
| 821 | + | func (c *Command) Traverse(args []string) (*Command, []string, error) { | |
| 822 | + | flags := []string{} | |
| 823 | + | inFlag := false | |
| 824 | + | ||
| 825 | + | for i, arg := range args { | |
| 826 | + | switch { | |
| 827 | + | // A long flag with a space separated value | |
| 828 | + | case strings.HasPrefix(arg, "--") && !strings.Contains(arg, "="): | |
| 829 | + | // TODO: this isn't quite right, we should really check ahead for 'true' or 'false' | |
| 830 | + | inFlag = !hasNoOptDefVal(arg[2:], c.Flags()) | |
| 831 | + | flags = append(flags, arg) | |
| 832 | + | continue | |
| 833 | + | // A short flag with a space separated value | |
| 834 | + | case strings.HasPrefix(arg, "-") && !strings.Contains(arg, "=") && len(arg) == 2 && !shortHasNoOptDefVal(arg[1:], c.Flags()): | |
| 835 | + | inFlag = true | |
| 836 | + | flags = append(flags, arg) | |
| 837 | + | continue | |
| 838 | + | // The value for a flag | |
| 839 | + | case inFlag: | |
| 840 | + | inFlag = false | |
| 841 | + | flags = append(flags, arg) | |
| 842 | + | continue | |
| 843 | + | // A flag without a value, or with an `=` separated value | |
| 844 | + | case isFlagArg(arg): | |
| 845 | + | flags = append(flags, arg) | |
| 846 | + | continue | |
| 847 | + | } | |
| 848 | + | ||
| 849 | + | cmd := c.findNext(arg) | |
| 850 | + | if cmd == nil { | |
| 851 | + | return c, args, nil | |
| 852 | + | } | |
| 853 | + | ||
| 854 | + | if err := c.ParseFlags(flags); err != nil { | |
| 855 | + | return nil, args, err | |
| 856 | + | } | |
| 857 | + | return cmd.Traverse(args[i+1:]) | |
| 858 | + | } | |
| 859 | + | return c, args, nil | |
| 860 | + | } | |
| 861 | + | ||
| 862 | + | // SuggestionsFor provides suggestions for the typedName. | |
| 863 | + | func (c *Command) SuggestionsFor(typedName string) []string { | |
| 864 | + | suggestions := []string{} | |
| 865 | + | for _, cmd := range c.commands { | |
| 866 | + | if cmd.IsAvailableCommand() { | |
| 867 | + | levenshteinDistance := ld(typedName, cmd.Name(), true) | |
| 868 | + | suggestByLevenshtein := levenshteinDistance <= c.SuggestionsMinimumDistance | |
| 869 | + | suggestByPrefix := strings.HasPrefix(strings.ToLower(cmd.Name()), strings.ToLower(typedName)) | |
| 870 | + | if suggestByLevenshtein || suggestByPrefix { | |
| 871 | + | suggestions = append(suggestions, cmd.Name()) | |
| 872 | + | } | |
| 873 | + | for _, explicitSuggestion := range cmd.SuggestFor { | |
| 874 | + | if strings.EqualFold(typedName, explicitSuggestion) { | |
| 875 | + | suggestions = append(suggestions, cmd.Name()) | |
| 876 | + | } | |
| 877 | + | } | |
| 878 | + | } | |
| 879 | + | } | |
| 880 | + | return suggestions | |
| 881 | + | } | |
| 882 | + | ||
| 883 | + | // VisitParents visits all parents of the command and invokes fn on each parent. | |
| 884 | + | func (c *Command) VisitParents(fn func(*Command)) { | |
| 885 | + | if c.HasParent() { | |
| 886 | + | fn(c.Parent()) | |
| 887 | + | c.Parent().VisitParents(fn) | |
| 888 | + | } | |
| 889 | + | } | |
| 890 | + | ||
| 891 | + | // Root finds root command. | |
| 892 | + | func (c *Command) Root() *Command { | |
| 893 | + | if c.HasParent() { | |
| 894 | + | return c.Parent().Root() | |
| 895 | + | } | |
| 896 | + | return c | |
| 897 | + | } | |
| 898 | + | ||
| 899 | + | // ArgsLenAtDash will return the length of c.Flags().Args at the moment | |
| 900 | + | // when a -- was found during args parsing. | |
| 901 | + | func (c *Command) ArgsLenAtDash() int { | |
| 902 | + | return c.Flags().ArgsLenAtDash() | |
| 903 | + | } | |
| 904 | + | ||
| 905 | + | func (c *Command) execute(a []string) (err error) { | |
| 906 | + | if c == nil { | |
| 907 | + | return fmt.Errorf("called Execute() on a nil Command") | |
| 908 | + | } | |
| 909 | + | ||
| 910 | + | if len(c.Deprecated) > 0 { | |
| 911 | + | c.Printf("Command %q is deprecated, %s\n", c.Name(), c.Deprecated) | |
| 912 | + | } | |
| 913 | + | ||
| 914 | + | // initialize help and version flag at the last point possible to allow for user | |
| 915 | + | // overriding | |
| 916 | + | c.InitDefaultHelpFlag() | |
| 917 | + | c.InitDefaultVersionFlag() | |
| 918 | + | ||
| 919 | + | err = c.ParseFlags(a) | |
| 920 | + | if err != nil { | |
| 921 | + | return c.FlagErrorFunc()(c, err) | |
| 922 | + | } | |
| 923 | + | ||
| 924 | + | // If help is called, regardless of other flags, return we want help. | |
| 925 | + | // Also say we need help if the command isn't runnable. | |
| 926 | + | helpVal, err := c.Flags().GetBool(helpFlagName) | |
| 927 | + | if err != nil { | |
| 928 | + | // should be impossible to get here as we always declare a help | |
| 929 | + | // flag in InitDefaultHelpFlag() | |
| 930 | + | c.Println("\"help\" flag declared as non-bool. Please correct your code") | |
| 931 | + | return err | |
| 932 | + | } | |
| 933 | + | ||
| 934 | + | if helpVal { | |
| 935 | + | return flag.ErrHelp | |
| 936 | + | } | |
| 937 | + | ||
| 938 | + | // for back-compat, only add version flag behavior if version is defined | |
| 939 | + | if c.Version != "" { | |
| 940 | + | versionVal, err := c.Flags().GetBool("version") | |
| 941 | + | if err != nil { | |
| 942 | + | c.Println("\"version\" flag declared as non-bool. Please correct your code") | |
| 943 | + | return err | |
| 944 | + | } | |
| 945 | + | if versionVal { | |
| 946 | + | fn := c.getVersionTemplateFunc() | |
| 947 | + | err := fn(c.OutOrStdout(), c) | |
| 948 | + | if err != nil { | |
| 949 | + | c.Println(err) | |
| 950 | + | } | |
| 951 | + | return err | |
| 952 | + | } | |
| 953 | + | } | |
| 954 | + | ||
| 955 | + | if !c.Runnable() { | |
| 956 | + | return flag.ErrHelp | |
| 957 | + | } | |
| 958 | + | ||
| 959 | + | c.preRun() | |
| 960 | + | ||
| 961 | + | defer c.postRun() | |
| 962 | + | ||
| 963 | + | argWoFlags := c.Flags().Args() | |
| 964 | + | if c.DisableFlagParsing { | |
| 965 | + | argWoFlags = a | |
| 966 | + | } | |
| 967 | + | ||
| 968 | + | if err := c.ValidateArgs(argWoFlags); err != nil { | |
| 969 | + | return err | |
| 970 | + | } | |
| 971 | + | ||
| 972 | + | parents := make([]*Command, 0, 5) | |
| 973 | + | for p := c; p != nil; p = p.Parent() { | |
| 974 | + | if EnableTraverseRunHooks { | |
| 975 | + | // When EnableTraverseRunHooks is set: | |
| 976 | + | // - Execute all persistent pre-runs from the root parent till this command. | |
| 977 | + | // - Execute all persistent post-runs from this command till the root parent. | |
| 978 | + | parents = append([]*Command{p}, parents...) | |
| 979 | + | } else { | |
| 980 | + | // Otherwise, execute only the first found persistent hook. | |
| 981 | + | parents = append(parents, p) | |
| 982 | + | } | |
| 983 | + | } | |
| 984 | + | for _, p := range parents { | |
| 985 | + | if p.PersistentPreRunE != nil { | |
| 986 | + | if err := p.PersistentPreRunE(c, argWoFlags); err != nil { | |
| 987 | + | return err | |
| 988 | + | } | |
| 989 | + | if !EnableTraverseRunHooks { | |
| 990 | + | break | |
| 991 | + | } | |
| 992 | + | } else if p.PersistentPreRun != nil { | |
| 993 | + | p.PersistentPreRun(c, argWoFlags) | |
| 994 | + | if !EnableTraverseRunHooks { | |
| 995 | + | break | |
| 996 | + | } | |
| 997 | + | } | |
| 998 | + | } | |
| 999 | + | if c.PreRunE != nil { | |
| 1000 | + | if err := c.PreRunE(c, argWoFlags); err != nil { | |
| 1001 | + | return err | |
| 1002 | + | } | |
| 1003 | + | } else if c.PreRun != nil { | |
| 1004 | + | c.PreRun(c, argWoFlags) | |
| 1005 | + | } | |
| 1006 | + | ||
| 1007 | + | if err := c.ValidateRequiredFlags(); err != nil { | |
| 1008 | + | return err | |
| 1009 | + | } | |
| 1010 | + | if err := c.ValidateFlagGroups(); err != nil { | |
| 1011 | + | return err | |
| 1012 | + | } | |
| 1013 | + | ||
| 1014 | + | if c.RunE != nil { | |
| 1015 | + | if err := c.RunE(c, argWoFlags); err != nil { | |
| 1016 | + | return err | |
| 1017 | + | } | |
| 1018 | + | } else { | |
| 1019 | + | c.Run(c, argWoFlags) | |
| 1020 | + | } | |
| 1021 | + | if c.PostRunE != nil { | |
| 1022 | + | if err := c.PostRunE(c, argWoFlags); err != nil { | |
| 1023 | + | return err | |
| 1024 | + | } | |
| 1025 | + | } else if c.PostRun != nil { | |
| 1026 | + | c.PostRun(c, argWoFlags) | |
| 1027 | + | } | |
| 1028 | + | for p := c; p != nil; p = p.Parent() { | |
| 1029 | + | if p.PersistentPostRunE != nil { | |
| 1030 | + | if err := p.PersistentPostRunE(c, argWoFlags); err != nil { | |
| 1031 | + | return err | |
| 1032 | + | } | |
| 1033 | + | if !EnableTraverseRunHooks { | |
| 1034 | + | break | |
| 1035 | + | } | |
| 1036 | + | } else if p.PersistentPostRun != nil { | |
| 1037 | + | p.PersistentPostRun(c, argWoFlags) | |
| 1038 | + | if !EnableTraverseRunHooks { | |
| 1039 | + | break | |
| 1040 | + | } | |
| 1041 | + | } | |
| 1042 | + | } | |
| 1043 | + | ||
| 1044 | + | return nil | |
| 1045 | + | } | |
| 1046 | + | ||
| 1047 | + | func (c *Command) preRun() { | |
| 1048 | + | for _, x := range initializers { | |
| 1049 | + | x() | |
| 1050 | + | } | |
| 1051 | + | } | |
| 1052 | + | ||
| 1053 | + | func (c *Command) postRun() { | |
| 1054 | + | for _, x := range finalizers { | |
| 1055 | + | x() | |
| 1056 | + | } | |
| 1057 | + | } | |
| 1058 | + | ||
| 1059 | + | // ExecuteContext is the same as Execute(), but sets the ctx on the command. | |
| 1060 | + | // Retrieve ctx by calling cmd.Context() inside your *Run lifecycle or ValidArgs | |
| 1061 | + | // functions. | |
| 1062 | + | func (c *Command) ExecuteContext(ctx context.Context) error { | |
| 1063 | + | c.ctx = ctx | |
| 1064 | + | return c.Execute() | |
| 1065 | + | } | |
| 1066 | + | ||
| 1067 | + | // Execute uses the args (os.Args[1:] by default) | |
| 1068 | + | // and run through the command tree finding appropriate matches | |
| 1069 | + | // for commands and then corresponding flags. | |
| 1070 | + | func (c *Command) Execute() error { | |
| 1071 | + | _, err := c.ExecuteC() | |
| 1072 | + | return err | |
| 1073 | + | } | |
| 1074 | + | ||
| 1075 | + | // ExecuteContextC is the same as ExecuteC(), but sets the ctx on the command. | |
| 1076 | + | // Retrieve ctx by calling cmd.Context() inside your *Run lifecycle or ValidArgs | |
| 1077 | + | // functions. | |
| 1078 | + | func (c *Command) ExecuteContextC(ctx context.Context) (*Command, error) { | |
| 1079 | + | c.ctx = ctx | |
| 1080 | + | return c.ExecuteC() | |
| 1081 | + | } | |
| 1082 | + | ||
| 1083 | + | // ExecuteC executes the command. | |
| 1084 | + | func (c *Command) ExecuteC() (cmd *Command, err error) { | |
| 1085 | + | if c.ctx == nil { | |
| 1086 | + | c.ctx = context.Background() | |
| 1087 | + | } | |
| 1088 | + | ||
| 1089 | + | // Regardless of what command execute is called on, run on Root only | |
| 1090 | + | if c.HasParent() { | |
| 1091 | + | return c.Root().ExecuteC() | |
| 1092 | + | } | |
| 1093 | + | ||
| 1094 | + | // windows hook | |
| 1095 | + | if preExecHookFn != nil { | |
| 1096 | + | preExecHookFn(c) | |
| 1097 | + | } | |
| 1098 | + | ||
| 1099 | + | // initialize help at the last point to allow for user overriding | |
| 1100 | + | c.InitDefaultHelpCmd() | |
| 1101 | + | ||
| 1102 | + | args := c.args | |
| 1103 | + | ||
| 1104 | + | // Workaround FAIL with "go test -v" or "cobra.test -test.v", see #155 | |
| 1105 | + | if c.args == nil && filepath.Base(os.Args[0]) != "cobra.test" { | |
| 1106 | + | args = os.Args[1:] | |
| 1107 | + | } | |
| 1108 | + | ||
| 1109 | + | // initialize the __complete command to be used for shell completion | |
| 1110 | + | c.initCompleteCmd(args) | |
| 1111 | + | ||
| 1112 | + | // initialize the default completion command | |
| 1113 | + | c.InitDefaultCompletionCmd(args...) | |
| 1114 | + | ||
| 1115 | + | // Now that all commands have been created, let's make sure all groups | |
| 1116 | + | // are properly created also | |
| 1117 | + | c.checkCommandGroups() | |
| 1118 | + | ||
| 1119 | + | var flags []string | |
| 1120 | + | if c.TraverseChildren { | |
| 1121 | + | cmd, flags, err = c.Traverse(args) | |
| 1122 | + | } else { | |
| 1123 | + | cmd, flags, err = c.Find(args) | |
| 1124 | + | } | |
| 1125 | + | if err != nil { | |
| 1126 | + | // If found parse to a subcommand and then failed, talk about the subcommand | |
| 1127 | + | if cmd != nil { | |
| 1128 | + | c = cmd | |
| 1129 | + | } | |
| 1130 | + | if !c.SilenceErrors { | |
| 1131 | + | c.PrintErrln(c.ErrPrefix(), err.Error()) | |
| 1132 | + | c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath()) | |
| 1133 | + | } | |
| 1134 | + | return c, err | |
| 1135 | + | } | |
| 1136 | + | ||
| 1137 | + | cmd.commandCalledAs.called = true | |
| 1138 | + | if cmd.commandCalledAs.name == "" { | |
| 1139 | + | cmd.commandCalledAs.name = cmd.Name() | |
| 1140 | + | } | |
| 1141 | + | ||
| 1142 | + | // We have to pass global context to children command | |
| 1143 | + | // if context is present on the parent command. | |
| 1144 | + | if cmd.ctx == nil { | |
| 1145 | + | cmd.ctx = c.ctx | |
| 1146 | + | } | |
| 1147 | + | ||
| 1148 | + | err = cmd.execute(flags) | |
| 1149 | + | if err != nil { | |
| 1150 | + | // Always show help if requested, even if SilenceErrors is in | |
| 1151 | + | // effect | |
| 1152 | + | if errors.Is(err, flag.ErrHelp) { | |
| 1153 | + | cmd.HelpFunc()(cmd, args) | |
| 1154 | + | return cmd, nil | |
| 1155 | + | } | |
| 1156 | + | ||
| 1157 | + | // If root command has SilenceErrors flagged, | |
| 1158 | + | // all subcommands should respect it | |
| 1159 | + | if !cmd.SilenceErrors && !c.SilenceErrors { | |
| 1160 | + | c.PrintErrln(cmd.ErrPrefix(), err.Error()) | |
| 1161 | + | } | |
| 1162 | + | ||
| 1163 | + | // If root command has SilenceUsage flagged, | |
| 1164 | + | // all subcommands should respect it | |
| 1165 | + | if !cmd.SilenceUsage && !c.SilenceUsage { | |
| 1166 | + | c.Println(cmd.UsageString()) | |
| 1167 | + | } | |
| 1168 | + | } | |
| 1169 | + | return cmd, err | |
| 1170 | + | } | |
| 1171 | + | ||
| 1172 | + | func (c *Command) ValidateArgs(args []string) error { | |
| 1173 | + | if c.Args == nil { | |
| 1174 | + | return ArbitraryArgs(c, args) | |
| 1175 | + | } | |
| 1176 | + | return c.Args(c, args) | |
| 1177 | + | } | |
| 1178 | + | ||
| 1179 | + | // ValidateRequiredFlags validates all required flags are present and returns an error otherwise | |
| 1180 | + | func (c *Command) ValidateRequiredFlags() error { | |
| 1181 | + | if c.DisableFlagParsing { | |
| 1182 | + | return nil | |
| 1183 | + | } | |
| 1184 | + | ||
| 1185 | + | flags := c.Flags() | |
| 1186 | + | missingFlagNames := []string{} | |
| 1187 | + | flags.VisitAll(func(pflag *flag.Flag) { | |
| 1188 | + | requiredAnnotation, found := pflag.Annotations[BashCompOneRequiredFlag] | |
| 1189 | + | if !found { | |
| 1190 | + | return | |
| 1191 | + | } | |
| 1192 | + | if (requiredAnnotation[0] == "true") && !pflag.Changed { | |
| 1193 | + | missingFlagNames = append(missingFlagNames, pflag.Name) | |
| 1194 | + | } | |
| 1195 | + | }) | |
| 1196 | + | ||
| 1197 | + | if len(missingFlagNames) > 0 { | |
| 1198 | + | return fmt.Errorf(`required flag(s) "%s" not set`, strings.Join(missingFlagNames, `", "`)) | |
| 1199 | + | } | |
| 1200 | + | return nil | |
| 1201 | + | } | |
| 1202 | + | ||
| 1203 | + | // checkCommandGroups checks if a command has been added to a group that does not exists. | |
| 1204 | + | // If so, we panic because it indicates a coding error that should be corrected. | |
| 1205 | + | func (c *Command) checkCommandGroups() { | |
| 1206 | + | for _, sub := range c.commands { | |
| 1207 | + | // if Group is not defined let the developer know right away | |
| 1208 | + | if sub.GroupID != "" && !c.ContainsGroup(sub.GroupID) { | |
| 1209 | + | panic(fmt.Sprintf("group id '%s' is not defined for subcommand '%s'", sub.GroupID, sub.CommandPath())) | |
| 1210 | + | } | |
| 1211 | + | ||
| 1212 | + | sub.checkCommandGroups() | |
| 1213 | + | } | |
| 1214 | + | } | |
| 1215 | + | ||
| 1216 | + | // InitDefaultHelpFlag adds default help flag to c. | |
| 1217 | + | // It is called automatically by executing the c or by calling help and usage. | |
| 1218 | + | // If c already has help flag, it will do nothing. | |
| 1219 | + | func (c *Command) InitDefaultHelpFlag() { | |
| 1220 | + | c.mergePersistentFlags() | |
| 1221 | + | if c.Flags().Lookup(helpFlagName) == nil { | |
| 1222 | + | usage := "help for " | |
| 1223 | + | name := c.DisplayName() | |
| 1224 | + | if name == "" { | |
| 1225 | + | usage += "this command" | |
| 1226 | + | } else { | |
| 1227 | + | usage += name | |
| 1228 | + | } | |
| 1229 | + | c.Flags().BoolP(helpFlagName, "h", false, usage) | |
| 1230 | + | _ = c.Flags().SetAnnotation(helpFlagName, FlagSetByCobraAnnotation, []string{"true"}) | |
| 1231 | + | } | |
| 1232 | + | } | |
| 1233 | + | ||
| 1234 | + | // InitDefaultVersionFlag adds default version flag to c. | |
| 1235 | + | // It is called automatically by executing the c. | |
| 1236 | + | // If c already has a version flag, it will do nothing. | |
| 1237 | + | // If c.Version is empty, it will do nothing. | |
| 1238 | + | func (c *Command) InitDefaultVersionFlag() { | |
| 1239 | + | if c.Version == "" { | |
| 1240 | + | return | |
| 1241 | + | } | |
| 1242 | + | ||
| 1243 | + | c.mergePersistentFlags() | |
| 1244 | + | if c.Flags().Lookup("version") == nil { | |
| 1245 | + | usage := "version for " | |
| 1246 | + | if c.Name() == "" { | |
| 1247 | + | usage += "this command" | |
| 1248 | + | } else { | |
| 1249 | + | usage += c.DisplayName() | |
| 1250 | + | } | |
| 1251 | + | if c.Flags().ShorthandLookup("v") == nil { | |
| 1252 | + | c.Flags().BoolP("version", "v", false, usage) | |
| 1253 | + | } else { | |
| 1254 | + | c.Flags().Bool("version", false, usage) | |
| 1255 | + | } | |
| 1256 | + | _ = c.Flags().SetAnnotation("version", FlagSetByCobraAnnotation, []string{"true"}) | |
| 1257 | + | } | |
| 1258 | + | } | |
| 1259 | + | ||
| 1260 | + | // InitDefaultHelpCmd adds default help command to c. | |
| 1261 | + | // It is called automatically by executing the c or by calling help and usage. | |
| 1262 | + | // If c already has help command or c has no subcommands, it will do nothing. | |
| 1263 | + | func (c *Command) InitDefaultHelpCmd() { | |
| 1264 | + | if !c.HasSubCommands() { | |
| 1265 | + | return | |
| 1266 | + | } | |
| 1267 | + | ||
| 1268 | + | if c.helpCommand == nil { | |
| 1269 | + | c.helpCommand = &Command{ | |
| 1270 | + | Use: "help [command]", | |
| 1271 | + | Short: "Help about any command", | |
| 1272 | + | Long: `Help provides help for any command in the application. | |
| 1273 | + | Simply type ` + c.DisplayName() + ` help [path to command] for full details.`, | |
| 1274 | + | ValidArgsFunction: func(c *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) { | |
| 1275 | + | var completions []Completion | |
| 1276 | + | cmd, _, e := c.Root().Find(args) | |
| 1277 | + | if e != nil { | |
| 1278 | + | return nil, ShellCompDirectiveNoFileComp | |
| 1279 | + | } | |
| 1280 | + | if cmd == nil { | |
| 1281 | + | // Root help command. | |
| 1282 | + | cmd = c.Root() | |
| 1283 | + | } | |
| 1284 | + | for _, subCmd := range cmd.Commands() { | |
| 1285 | + | if subCmd.IsAvailableCommand() || subCmd == cmd.helpCommand { | |
| 1286 | + | if strings.HasPrefix(subCmd.Name(), toComplete) { | |
| 1287 | + | completions = append(completions, CompletionWithDesc(subCmd.Name(), subCmd.Short)) | |
| 1288 | + | } | |
| 1289 | + | } | |
| 1290 | + | } | |
| 1291 | + | return completions, ShellCompDirectiveNoFileComp | |
| 1292 | + | }, | |
| 1293 | + | Run: func(c *Command, args []string) { | |
| 1294 | + | cmd, _, e := c.Root().Find(args) | |
| 1295 | + | if cmd == nil || e != nil { | |
| 1296 | + | c.Printf("Unknown help topic %#q\n", args) | |
| 1297 | + | CheckErr(c.Root().Usage()) | |
| 1298 | + | } else { | |
| 1299 | + | // FLow the context down to be used in help text | |
| 1300 | + | if cmd.ctx == nil { | |
| 1301 | + | cmd.ctx = c.ctx | |
| 1302 | + | } | |
| 1303 | + | ||
| 1304 | + | cmd.InitDefaultHelpFlag() // make possible 'help' flag to be shown | |
| 1305 | + | cmd.InitDefaultVersionFlag() // make possible 'version' flag to be shown | |
| 1306 | + | CheckErr(cmd.Help()) | |
| 1307 | + | } | |
| 1308 | + | }, | |
| 1309 | + | GroupID: c.helpCommandGroupID, | |
| 1310 | + | } | |
| 1311 | + | } | |
| 1312 | + | c.RemoveCommand(c.helpCommand) | |
| 1313 | + | c.AddCommand(c.helpCommand) | |
| 1314 | + | } | |
| 1315 | + | ||
| 1316 | + | // ResetCommands delete parent, subcommand and help command from c. | |
| 1317 | + | func (c *Command) ResetCommands() { | |
| 1318 | + | c.parent = nil | |
| 1319 | + | c.commands = nil | |
| 1320 | + | c.helpCommand = nil | |
| 1321 | + | c.parentsPflags = nil | |
| 1322 | + | } | |
| 1323 | + | ||
| 1324 | + | // Sorts commands by their names. | |
| 1325 | + | type commandSorterByName []*Command | |
| 1326 | + | ||
| 1327 | + | func (c commandSorterByName) Len() int { return len(c) } | |
| 1328 | + | func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] } | |
| 1329 | + | func (c commandSorterByName) Less(i, j int) bool { return c[i].Name() < c[j].Name() } | |
| 1330 | + | ||
| 1331 | + | // Commands returns a sorted slice of child commands. | |
| 1332 | + | func (c *Command) Commands() []*Command { | |
| 1333 | + | // do not sort commands if it already sorted or sorting was disabled | |
| 1334 | + | if EnableCommandSorting && !c.commandsAreSorted { | |
| 1335 | + | sort.Sort(commandSorterByName(c.commands)) | |
| 1336 | + | c.commandsAreSorted = true | |
| 1337 | + | } | |
| 1338 | + | return c.commands | |
| 1339 | + | } | |
| 1340 | + | ||
| 1341 | + | // AddCommand adds one or more commands to this parent command. | |
| 1342 | + | func (c *Command) AddCommand(cmds ...*Command) { | |
| 1343 | + | for i, x := range cmds { | |
| 1344 | + | if cmds[i] == c { | |
| 1345 | + | panic("Command can't be a child of itself") | |
| 1346 | + | } | |
| 1347 | + | cmds[i].parent = c | |
| 1348 | + | // update max lengths | |
| 1349 | + | usageLen := len(x.Use) | |
| 1350 | + | if usageLen > c.commandsMaxUseLen { | |
| 1351 | + | c.commandsMaxUseLen = usageLen | |
| 1352 | + | } | |
| 1353 | + | commandPathLen := len(x.CommandPath()) | |
| 1354 | + | if commandPathLen > c.commandsMaxCommandPathLen { | |
| 1355 | + | c.commandsMaxCommandPathLen = commandPathLen | |
| 1356 | + | } | |
| 1357 | + | nameLen := len(x.Name()) | |
| 1358 | + | if nameLen > c.commandsMaxNameLen { | |
| 1359 | + | c.commandsMaxNameLen = nameLen | |
| 1360 | + | } | |
| 1361 | + | // If global normalization function exists, update all children | |
| 1362 | + | if c.globNormFunc != nil { | |
| 1363 | + | x.SetGlobalNormalizationFunc(c.globNormFunc) | |
| 1364 | + | } | |
| 1365 | + | c.commands = append(c.commands, x) | |
| 1366 | + | c.commandsAreSorted = false | |
| 1367 | + | } | |
| 1368 | + | } | |
| 1369 | + | ||
| 1370 | + | // Groups returns a slice of child command groups. | |
| 1371 | + | func (c *Command) Groups() []*Group { | |
| 1372 | + | return c.commandgroups | |
| 1373 | + | } | |
| 1374 | + | ||
| 1375 | + | // AllChildCommandsHaveGroup returns if all subcommands are assigned to a group | |
| 1376 | + | func (c *Command) AllChildCommandsHaveGroup() bool { | |
| 1377 | + | for _, sub := range c.commands { | |
| 1378 | + | if (sub.IsAvailableCommand() || sub == c.helpCommand) && sub.GroupID == "" { | |
| 1379 | + | return false | |
| 1380 | + | } | |
| 1381 | + | } | |
| 1382 | + | return true | |
| 1383 | + | } | |
| 1384 | + | ||
| 1385 | + | // ContainsGroup return if groupID exists in the list of command groups. | |
| 1386 | + | func (c *Command) ContainsGroup(groupID string) bool { | |
| 1387 | + | for _, x := range c.commandgroups { | |
| 1388 | + | if x.ID == groupID { | |
| 1389 | + | return true | |
| 1390 | + | } | |
| 1391 | + | } | |
| 1392 | + | return false | |
| 1393 | + | } | |
| 1394 | + | ||
| 1395 | + | // AddGroup adds one or more command groups to this parent command. | |
| 1396 | + | func (c *Command) AddGroup(groups ...*Group) { | |
| 1397 | + | c.commandgroups = append(c.commandgroups, groups...) | |
| 1398 | + | } | |
| 1399 | + | ||
| 1400 | + | // RemoveCommand removes one or more commands from a parent command. | |
| 1401 | + | func (c *Command) RemoveCommand(cmds ...*Command) { | |
| 1402 | + | commands := []*Command{} | |
| 1403 | + | main: | |
| 1404 | + | for _, command := range c.commands { | |
| 1405 | + | for _, cmd := range cmds { | |
| 1406 | + | if command == cmd { | |
| 1407 | + | command.parent = nil | |
| 1408 | + | continue main | |
| 1409 | + | } | |
| 1410 | + | } | |
| 1411 | + | commands = append(commands, command) | |
| 1412 | + | } | |
| 1413 | + | c.commands = commands | |
| 1414 | + | // recompute all lengths | |
| 1415 | + | c.commandsMaxUseLen = 0 | |
| 1416 | + | c.commandsMaxCommandPathLen = 0 | |
| 1417 | + | c.commandsMaxNameLen = 0 | |
| 1418 | + | for _, command := range c.commands { | |
| 1419 | + | usageLen := len(command.Use) | |
| 1420 | + | if usageLen > c.commandsMaxUseLen { | |
| 1421 | + | c.commandsMaxUseLen = usageLen | |
| 1422 | + | } | |
| 1423 | + | commandPathLen := len(command.CommandPath()) | |
| 1424 | + | if commandPathLen > c.commandsMaxCommandPathLen { | |
| 1425 | + | c.commandsMaxCommandPathLen = commandPathLen | |
| 1426 | + | } | |
| 1427 | + | nameLen := len(command.Name()) | |
| 1428 | + | if nameLen > c.commandsMaxNameLen { | |
| 1429 | + | c.commandsMaxNameLen = nameLen | |
| 1430 | + | } | |
| 1431 | + | } | |
| 1432 | + | } | |
| 1433 | + | ||
| 1434 | + | // Print is a convenience method to Print to the defined output, fallback to Stderr if not set. | |
| 1435 | + | func (c *Command) Print(i ...interface{}) { | |
| 1436 | + | fmt.Fprint(c.OutOrStderr(), i...) | |
| 1437 | + | } | |
| 1438 | + | ||
| 1439 | + | // Println is a convenience method to Println to the defined output, fallback to Stderr if not set. | |
| 1440 | + | func (c *Command) Println(i ...interface{}) { | |
| 1441 | + | c.Print(fmt.Sprintln(i...)) | |
| 1442 | + | } | |
| 1443 | + | ||
| 1444 | + | // Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set. | |
| 1445 | + | func (c *Command) Printf(format string, i ...interface{}) { | |
| 1446 | + | c.Print(fmt.Sprintf(format, i...)) | |
| 1447 | + | } | |
| 1448 | + | ||
| 1449 | + | // PrintErr is a convenience method to Print to the defined Err output, fallback to Stderr if not set. | |
| 1450 | + | func (c *Command) PrintErr(i ...interface{}) { | |
| 1451 | + | fmt.Fprint(c.ErrOrStderr(), i...) | |
| 1452 | + | } | |
| 1453 | + | ||
| 1454 | + | // PrintErrln is a convenience method to Println to the defined Err output, fallback to Stderr if not set. | |
| 1455 | + | func (c *Command) PrintErrln(i ...interface{}) { | |
| 1456 | + | c.PrintErr(fmt.Sprintln(i...)) | |
| 1457 | + | } | |
| 1458 | + | ||
| 1459 | + | // PrintErrf is a convenience method to Printf to the defined Err output, fallback to Stderr if not set. | |
| 1460 | + | func (c *Command) PrintErrf(format string, i ...interface{}) { | |
| 1461 | + | c.PrintErr(fmt.Sprintf(format, i...)) | |
| 1462 | + | } | |
| 1463 | + | ||
| 1464 | + | // CommandPath returns the full path to this command. | |
| 1465 | + | func (c *Command) CommandPath() string { | |
| 1466 | + | if c.HasParent() { | |
| 1467 | + | return c.Parent().CommandPath() + " " + c.Name() | |
| 1468 | + | } | |
| 1469 | + | return c.DisplayName() | |
| 1470 | + | } | |
| 1471 | + | ||
| 1472 | + | // DisplayName returns the name to display in help text. Returns command Name() | |
| 1473 | + | // If CommandDisplayNameAnnoation is not set | |
| 1474 | + | func (c *Command) DisplayName() string { | |
| 1475 | + | if displayName, ok := c.Annotations[CommandDisplayNameAnnotation]; ok { | |
| 1476 | + | return displayName | |
| 1477 | + | } | |
| 1478 | + | return c.Name() | |
| 1479 | + | } | |
| 1480 | + | ||
| 1481 | + | // UseLine puts out the full usage for a given command (including parents). | |
| 1482 | + | func (c *Command) UseLine() string { | |
| 1483 | + | var useline string | |
| 1484 | + | use := strings.Replace(c.Use, c.Name(), c.DisplayName(), 1) | |
| 1485 | + | if c.HasParent() { | |
| 1486 | + | useline = c.parent.CommandPath() + " " + use | |
| 1487 | + | } else { | |
| 1488 | + | useline = use | |
| 1489 | + | } | |
| 1490 | + | if c.DisableFlagsInUseLine { | |
| 1491 | + | return useline | |
| 1492 | + | } | |
| 1493 | + | if c.HasAvailableFlags() && !strings.Contains(useline, "[flags]") { | |
| 1494 | + | useline += " [flags]" | |
| 1495 | + | } | |
| 1496 | + | return useline | |
| 1497 | + | } | |
| 1498 | + | ||
| 1499 | + | // DebugFlags used to determine which flags have been assigned to which commands | |
| 1500 | + | // and which persist. | |
| 1501 | + | func (c *Command) DebugFlags() { | |
| 1502 | + | c.Println("DebugFlags called on", c.Name()) | |
| 1503 | + | var debugflags func(*Command) | |
| 1504 | + | ||
| 1505 | + | debugflags = func(x *Command) { | |
| 1506 | + | if x.HasFlags() || x.HasPersistentFlags() { | |
| 1507 | + | c.Println(x.Name()) | |
| 1508 | + | } | |
| 1509 | + | if x.HasFlags() { | |
| 1510 | + | x.flags.VisitAll(func(f *flag.Flag) { | |
| 1511 | + | if x.HasPersistentFlags() && x.persistentFlag(f.Name) != nil { | |
| 1512 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [LP]") | |
| 1513 | + | } else { | |
| 1514 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [L]") | |
| 1515 | + | } | |
| 1516 | + | }) | |
| 1517 | + | } | |
| 1518 | + | if x.HasPersistentFlags() { | |
| 1519 | + | x.pflags.VisitAll(func(f *flag.Flag) { | |
| 1520 | + | if x.HasFlags() { | |
| 1521 | + | if x.flags.Lookup(f.Name) == nil { | |
| 1522 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [P]") | |
| 1523 | + | } | |
| 1524 | + | } else { | |
| 1525 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [P]") | |
| 1526 | + | } | |
| 1527 | + | }) | |
| 1528 | + | } | |
| 1529 | + | c.Println(x.flagErrorBuf) | |
| 1530 | + | if x.HasSubCommands() { | |
| 1531 | + | for _, y := range x.commands { | |
| 1532 | + | debugflags(y) | |
| 1533 | + | } | |
| 1534 | + | } | |
| 1535 | + | } | |
| 1536 | + | ||
| 1537 | + | debugflags(c) | |
| 1538 | + | } | |
| 1539 | + | ||
| 1540 | + | // Name returns the command's name: the first word in the use line. | |
| 1541 | + | func (c *Command) Name() string { | |
| 1542 | + | name := c.Use | |
| 1543 | + | i := strings.Index(name, " ") | |
| 1544 | + | if i >= 0 { | |
| 1545 | + | name = name[:i] | |
| 1546 | + | } | |
| 1547 | + | return name | |
| 1548 | + | } | |
| 1549 | + | ||
| 1550 | + | // HasAlias determines if a given string is an alias of the command. | |
| 1551 | + | func (c *Command) HasAlias(s string) bool { | |
| 1552 | + | for _, a := range c.Aliases { | |
| 1553 | + | if commandNameMatches(a, s) { | |
| 1554 | + | return true | |
| 1555 | + | } | |
| 1556 | + | } | |
| 1557 | + | return false | |
| 1558 | + | } | |
| 1559 | + | ||
| 1560 | + | // CalledAs returns the command name or alias that was used to invoke | |
| 1561 | + | // this command or an empty string if the command has not been called. | |
| 1562 | + | func (c *Command) CalledAs() string { | |
| 1563 | + | if c.commandCalledAs.called { | |
| 1564 | + | return c.commandCalledAs.name | |
| 1565 | + | } | |
| 1566 | + | return "" | |
| 1567 | + | } | |
| 1568 | + | ||
| 1569 | + | // hasNameOrAliasPrefix returns true if the Name or any of aliases start | |
| 1570 | + | // with prefix | |
| 1571 | + | func (c *Command) hasNameOrAliasPrefix(prefix string) bool { | |
| 1572 | + | if strings.HasPrefix(c.Name(), prefix) { | |
| 1573 | + | c.commandCalledAs.name = c.Name() | |
| 1574 | + | return true | |
| 1575 | + | } | |
| 1576 | + | for _, alias := range c.Aliases { | |
| 1577 | + | if strings.HasPrefix(alias, prefix) { | |
| 1578 | + | c.commandCalledAs.name = alias | |
| 1579 | + | return true | |
| 1580 | + | } | |
| 1581 | + | } | |
| 1582 | + | return false | |
| 1583 | + | } | |
| 1584 | + | ||
| 1585 | + | // NameAndAliases returns a list of the command name and all aliases | |
| 1586 | + | func (c *Command) NameAndAliases() string { | |
| 1587 | + | return strings.Join(append([]string{c.Name()}, c.Aliases...), ", ") | |
| 1588 | + | } | |
| 1589 | + | ||
| 1590 | + | // HasExample determines if the command has example. | |
| 1591 | + | func (c *Command) HasExample() bool { | |
| 1592 | + | return len(c.Example) > 0 | |
| 1593 | + | } | |
| 1594 | + | ||
| 1595 | + | // Runnable determines if the command is itself runnable. | |
| 1596 | + | func (c *Command) Runnable() bool { | |
| 1597 | + | return c.Run != nil || c.RunE != nil | |
| 1598 | + | } | |
| 1599 | + | ||
| 1600 | + | // HasSubCommands determines if the command has children commands. | |
| 1601 | + | func (c *Command) HasSubCommands() bool { | |
| 1602 | + | return len(c.commands) > 0 | |
| 1603 | + | } | |
| 1604 | + | ||
| 1605 | + | // IsAvailableCommand determines if a command is available as a non-help command | |
| 1606 | + | // (this includes all non deprecated/hidden commands). | |
| 1607 | + | func (c *Command) IsAvailableCommand() bool { | |
| 1608 | + | if len(c.Deprecated) != 0 || c.Hidden { | |
| 1609 | + | return false | |
| 1610 | + | } | |
| 1611 | + | ||
| 1612 | + | if c.HasParent() && c.Parent().helpCommand == c { | |
| 1613 | + | return false | |
| 1614 | + | } | |
| 1615 | + | ||
| 1616 | + | if c.Runnable() || c.HasAvailableSubCommands() { | |
| 1617 | + | return true | |
| 1618 | + | } | |
| 1619 | + | ||
| 1620 | + | return false | |
| 1621 | + | } | |
| 1622 | + | ||
| 1623 | + | // IsAdditionalHelpTopicCommand determines if a command is an additional | |
| 1624 | + | // help topic command; additional help topic command is determined by the | |
| 1625 | + | // fact that it is NOT runnable/hidden/deprecated, and has no sub commands that | |
| 1626 | + | // are runnable/hidden/deprecated. | |
| 1627 | + | // Concrete example: https://github.com/spf13/cobra/issues/393#issuecomment-282741924. | |
| 1628 | + | func (c *Command) IsAdditionalHelpTopicCommand() bool { | |
| 1629 | + | // if a command is runnable, deprecated, or hidden it is not a 'help' command | |
| 1630 | + | if c.Runnable() || len(c.Deprecated) != 0 || c.Hidden { | |
| 1631 | + | return false | |
| 1632 | + | } | |
| 1633 | + | ||
| 1634 | + | // if any non-help sub commands are found, the command is not a 'help' command | |
| 1635 | + | for _, sub := range c.commands { | |
| 1636 | + | if !sub.IsAdditionalHelpTopicCommand() { | |
| 1637 | + | return false | |
| 1638 | + | } | |
| 1639 | + | } | |
| 1640 | + | ||
| 1641 | + | // the command either has no sub commands, or no non-help sub commands | |
| 1642 | + | return true | |
| 1643 | + | } | |
| 1644 | + | ||
| 1645 | + | // HasHelpSubCommands determines if a command has any available 'help' sub commands | |
| 1646 | + | // that need to be shown in the usage/help default template under 'additional help | |
| 1647 | + | // topics'. | |
| 1648 | + | func (c *Command) HasHelpSubCommands() bool { | |
| 1649 | + | // return true on the first found available 'help' sub command | |
| 1650 | + | for _, sub := range c.commands { | |
| 1651 | + | if sub.IsAdditionalHelpTopicCommand() { | |
| 1652 | + | return true | |
| 1653 | + | } | |
| 1654 | + | } | |
| 1655 | + | ||
| 1656 | + | // the command either has no sub commands, or no available 'help' sub commands | |
| 1657 | + | return false | |
| 1658 | + | } | |
| 1659 | + | ||
| 1660 | + | // HasAvailableSubCommands determines if a command has available sub commands that | |
| 1661 | + | // need to be shown in the usage/help default template under 'available commands'. | |
| 1662 | + | func (c *Command) HasAvailableSubCommands() bool { | |
| 1663 | + | // return true on the first found available (non deprecated/help/hidden) | |
| 1664 | + | // sub command | |
| 1665 | + | for _, sub := range c.commands { | |
| 1666 | + | if sub.IsAvailableCommand() { | |
| 1667 | + | return true | |
| 1668 | + | } | |
| 1669 | + | } | |
| 1670 | + | ||
| 1671 | + | // the command either has no sub commands, or no available (non deprecated/help/hidden) | |
| 1672 | + | // sub commands | |
| 1673 | + | return false | |
| 1674 | + | } | |
| 1675 | + | ||
| 1676 | + | // HasParent determines if the command is a child command. | |
| 1677 | + | func (c *Command) HasParent() bool { | |
| 1678 | + | return c.parent != nil | |
| 1679 | + | } | |
| 1680 | + | ||
| 1681 | + | // GlobalNormalizationFunc returns the global normalization function or nil if it doesn't exist. | |
| 1682 | + | func (c *Command) GlobalNormalizationFunc() func(f *flag.FlagSet, name string) flag.NormalizedName { | |
| 1683 | + | return c.globNormFunc | |
| 1684 | + | } | |
| 1685 | + | ||
| 1686 | + | // Flags returns the complete FlagSet that applies | |
| 1687 | + | // to this command (local and persistent declared here and by all parents). | |
| 1688 | + | func (c *Command) Flags() *flag.FlagSet { | |
| 1689 | + | if c.flags == nil { | |
| 1690 | + | c.flags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1691 | + | if c.flagErrorBuf == nil { | |
| 1692 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1693 | + | } | |
| 1694 | + | c.flags.SetOutput(c.flagErrorBuf) | |
| 1695 | + | } | |
| 1696 | + | ||
| 1697 | + | return c.flags | |
| 1698 | + | } | |
| 1699 | + | ||
| 1700 | + | // LocalNonPersistentFlags are flags specific to this command which will NOT persist to subcommands. | |
| 1701 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |
| 1702 | + | func (c *Command) LocalNonPersistentFlags() *flag.FlagSet { | |
| 1703 | + | persistentFlags := c.PersistentFlags() | |
| 1704 | + | ||
| 1705 | + | out := flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1706 | + | c.LocalFlags().VisitAll(func(f *flag.Flag) { | |
| 1707 | + | if persistentFlags.Lookup(f.Name) == nil { | |
| 1708 | + | out.AddFlag(f) | |
| 1709 | + | } | |
| 1710 | + | }) | |
| 1711 | + | return out | |
| 1712 | + | } | |
| 1713 | + | ||
| 1714 | + | // LocalFlags returns the local FlagSet specifically set in the current command. | |
| 1715 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |
| 1716 | + | func (c *Command) LocalFlags() *flag.FlagSet { | |
| 1717 | + | c.mergePersistentFlags() | |
| 1718 | + | ||
| 1719 | + | if c.lflags == nil { | |
| 1720 | + | c.lflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1721 | + | if c.flagErrorBuf == nil { | |
| 1722 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1723 | + | } | |
| 1724 | + | c.lflags.SetOutput(c.flagErrorBuf) | |
| 1725 | + | } | |
| 1726 | + | c.lflags.SortFlags = c.Flags().SortFlags | |
| 1727 | + | if c.globNormFunc != nil { | |
| 1728 | + | c.lflags.SetNormalizeFunc(c.globNormFunc) | |
| 1729 | + | } | |
| 1730 | + | ||
| 1731 | + | addToLocal := func(f *flag.Flag) { | |
| 1732 | + | // Add the flag if it is not a parent PFlag, or it shadows a parent PFlag | |
| 1733 | + | if c.lflags.Lookup(f.Name) == nil && f != c.parentsPflags.Lookup(f.Name) { | |
| 1734 | + | c.lflags.AddFlag(f) | |
| 1735 | + | } | |
| 1736 | + | } | |
| 1737 | + | c.Flags().VisitAll(addToLocal) | |
| 1738 | + | c.PersistentFlags().VisitAll(addToLocal) | |
| 1739 | + | return c.lflags | |
| 1740 | + | } | |
| 1741 | + | ||
| 1742 | + | // InheritedFlags returns all flags which were inherited from parent commands. | |
| 1743 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |
| 1744 | + | func (c *Command) InheritedFlags() *flag.FlagSet { | |
| 1745 | + | c.mergePersistentFlags() | |
| 1746 | + | ||
| 1747 | + | if c.iflags == nil { | |
| 1748 | + | c.iflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1749 | + | if c.flagErrorBuf == nil { | |
| 1750 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1751 | + | } | |
| 1752 | + | c.iflags.SetOutput(c.flagErrorBuf) | |
| 1753 | + | } | |
| 1754 | + | ||
| 1755 | + | local := c.LocalFlags() | |
| 1756 | + | if c.globNormFunc != nil { | |
| 1757 | + | c.iflags.SetNormalizeFunc(c.globNormFunc) | |
| 1758 | + | } | |
| 1759 | + | ||
| 1760 | + | c.parentsPflags.VisitAll(func(f *flag.Flag) { | |
| 1761 | + | if c.iflags.Lookup(f.Name) == nil && local.Lookup(f.Name) == nil { | |
| 1762 | + | c.iflags.AddFlag(f) | |
| 1763 | + | } | |
| 1764 | + | }) | |
| 1765 | + | return c.iflags | |
| 1766 | + | } | |
| 1767 | + | ||
| 1768 | + | // NonInheritedFlags returns all flags which were not inherited from parent commands. | |
| 1769 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |
| 1770 | + | func (c *Command) NonInheritedFlags() *flag.FlagSet { | |
| 1771 | + | return c.LocalFlags() | |
| 1772 | + | } | |
| 1773 | + | ||
| 1774 | + | // PersistentFlags returns the persistent FlagSet specifically set in the current command. | |
| 1775 | + | func (c *Command) PersistentFlags() *flag.FlagSet { | |
| 1776 | + | if c.pflags == nil { | |
| 1777 | + | c.pflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1778 | + | if c.flagErrorBuf == nil { | |
| 1779 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1780 | + | } | |
| 1781 | + | c.pflags.SetOutput(c.flagErrorBuf) | |
| 1782 | + | } | |
| 1783 | + | return c.pflags | |
| 1784 | + | } | |
| 1785 | + | ||
| 1786 | + | // ResetFlags deletes all flags from command. | |
| 1787 | + | func (c *Command) ResetFlags() { | |
| 1788 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1789 | + | c.flagErrorBuf.Reset() | |
| 1790 | + | c.flags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1791 | + | c.flags.SetOutput(c.flagErrorBuf) | |
| 1792 | + | c.pflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1793 | + | c.pflags.SetOutput(c.flagErrorBuf) | |
| 1794 | + | ||
| 1795 | + | c.lflags = nil | |
| 1796 | + | c.iflags = nil | |
| 1797 | + | c.parentsPflags = nil | |
| 1798 | + | } | |
| 1799 | + | ||
| 1800 | + | // HasFlags checks if the command contains any flags (local plus persistent from the entire structure). | |
| 1801 | + | func (c *Command) HasFlags() bool { | |
| 1802 | + | return c.Flags().HasFlags() | |
| 1803 | + | } | |
| 1804 | + | ||
| 1805 | + | // HasPersistentFlags checks if the command contains persistent flags. | |
| 1806 | + | func (c *Command) HasPersistentFlags() bool { | |
| 1807 | + | return c.PersistentFlags().HasFlags() | |
| 1808 | + | } | |
| 1809 | + | ||
| 1810 | + | // HasLocalFlags checks if the command has flags specifically declared locally. | |
| 1811 | + | func (c *Command) HasLocalFlags() bool { | |
| 1812 | + | return c.LocalFlags().HasFlags() | |
| 1813 | + | } | |
| 1814 | + | ||
| 1815 | + | // HasInheritedFlags checks if the command has flags inherited from its parent command. | |
| 1816 | + | func (c *Command) HasInheritedFlags() bool { | |
| 1817 | + | return c.InheritedFlags().HasFlags() | |
| 1818 | + | } | |
| 1819 | + | ||
| 1820 | + | // HasAvailableFlags checks if the command contains any flags (local plus persistent from the entire | |
| 1821 | + | // structure) which are not hidden or deprecated. | |
| 1822 | + | func (c *Command) HasAvailableFlags() bool { | |
| 1823 | + | return c.Flags().HasAvailableFlags() | |
| 1824 | + | } | |
| 1825 | + | ||
| 1826 | + | // HasAvailablePersistentFlags checks if the command contains persistent flags which are not hidden or deprecated. | |
| 1827 | + | func (c *Command) HasAvailablePersistentFlags() bool { | |
| 1828 | + | return c.PersistentFlags().HasAvailableFlags() | |
| 1829 | + | } | |
| 1830 | + | ||
| 1831 | + | // HasAvailableLocalFlags checks if the command has flags specifically declared locally which are not hidden | |
| 1832 | + | // or deprecated. | |
| 1833 | + | func (c *Command) HasAvailableLocalFlags() bool { | |
| 1834 | + | return c.LocalFlags().HasAvailableFlags() | |
| 1835 | + | } | |
| 1836 | + | ||
| 1837 | + | // HasAvailableInheritedFlags checks if the command has flags inherited from its parent command which are | |
| 1838 | + | // not hidden or deprecated. | |
| 1839 | + | func (c *Command) HasAvailableInheritedFlags() bool { | |
| 1840 | + | return c.InheritedFlags().HasAvailableFlags() | |
| 1841 | + | } | |
| 1842 | + | ||
| 1843 | + | // Flag climbs up the command tree looking for matching flag. | |
| 1844 | + | func (c *Command) Flag(name string) (flag *flag.Flag) { | |
| 1845 | + | flag = c.Flags().Lookup(name) | |
| 1846 | + | ||
| 1847 | + | if flag == nil { | |
| 1848 | + | flag = c.persistentFlag(name) | |
| 1849 | + | } | |
| 1850 | + | ||
| 1851 | + | return | |
| 1852 | + | } | |
| 1853 | + | ||
| 1854 | + | // Recursively find matching persistent flag. | |
| 1855 | + | func (c *Command) persistentFlag(name string) (flag *flag.Flag) { | |
| 1856 | + | if c.HasPersistentFlags() { | |
| 1857 | + | flag = c.PersistentFlags().Lookup(name) | |
| 1858 | + | } | |
| 1859 | + | ||
| 1860 | + | if flag == nil { | |
| 1861 | + | c.updateParentsPflags() | |
| 1862 | + | flag = c.parentsPflags.Lookup(name) | |
| 1863 | + | } | |
| 1864 | + | return | |
| 1865 | + | } | |
| 1866 | + | ||
| 1867 | + | // ParseFlags parses persistent flag tree and local flags. | |
| 1868 | + | func (c *Command) ParseFlags(args []string) error { | |
| 1869 | + | if c.DisableFlagParsing { | |
| 1870 | + | return nil | |
| 1871 | + | } | |
| 1872 | + | ||
| 1873 | + | if c.flagErrorBuf == nil { | |
| 1874 | + | c.flagErrorBuf = new(bytes.Buffer) | |
| 1875 | + | } | |
| 1876 | + | beforeErrorBufLen := c.flagErrorBuf.Len() | |
| 1877 | + | c.mergePersistentFlags() | |
| 1878 | + | ||
| 1879 | + | // do it here after merging all flags and just before parse | |
| 1880 | + | c.Flags().ParseErrorsAllowlist = flag.ParseErrorsAllowlist(c.FParseErrWhitelist) | |
| 1881 | + | ||
| 1882 | + | err := c.Flags().Parse(args) | |
| 1883 | + | // Print warnings if they occurred (e.g. deprecated flag messages). | |
| 1884 | + | if c.flagErrorBuf.Len()-beforeErrorBufLen > 0 && err == nil { | |
| 1885 | + | c.Print(c.flagErrorBuf.String()) | |
| 1886 | + | } | |
| 1887 | + | ||
| 1888 | + | return err | |
| 1889 | + | } | |
| 1890 | + | ||
| 1891 | + | // Parent returns a commands parent command. | |
| 1892 | + | func (c *Command) Parent() *Command { | |
| 1893 | + | return c.parent | |
| 1894 | + | } | |
| 1895 | + | ||
| 1896 | + | // mergePersistentFlags merges c.PersistentFlags() to c.Flags() | |
| 1897 | + | // and adds missing persistent flags of all parents. | |
| 1898 | + | func (c *Command) mergePersistentFlags() { | |
| 1899 | + | c.updateParentsPflags() | |
| 1900 | + | c.Flags().AddFlagSet(c.PersistentFlags()) | |
| 1901 | + | c.Flags().AddFlagSet(c.parentsPflags) | |
| 1902 | + | } | |
| 1903 | + | ||
| 1904 | + | // updateParentsPflags updates c.parentsPflags by adding | |
| 1905 | + | // new persistent flags of all parents. | |
| 1906 | + | // If c.parentsPflags == nil, it makes new. | |
| 1907 | + | func (c *Command) updateParentsPflags() { | |
| 1908 | + | if c.parentsPflags == nil { | |
| 1909 | + | c.parentsPflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |
| 1910 | + | c.parentsPflags.SetOutput(c.flagErrorBuf) | |
| 1911 | + | c.parentsPflags.SortFlags = false | |
| 1912 | + | } | |
| 1913 | + | ||
| 1914 | + | if c.globNormFunc != nil { | |
| 1915 | + | c.parentsPflags.SetNormalizeFunc(c.globNormFunc) | |
| 1916 | + | } | |
| 1917 | + | ||
| 1918 | + | c.Root().PersistentFlags().AddFlagSet(flag.CommandLine) | |
| 1919 | + | ||
| 1920 | + | c.VisitParents(func(parent *Command) { | |
| 1921 | + | c.parentsPflags.AddFlagSet(parent.PersistentFlags()) | |
| 1922 | + | }) | |
| 1923 | + | } | |
| 1924 | + | ||
| 1925 | + | // commandNameMatches checks if two command names are equal | |
| 1926 | + | // taking into account case sensitivity according to | |
| 1927 | + | // EnableCaseInsensitive global configuration. | |
| 1928 | + | func commandNameMatches(s string, t string) bool { | |
| 1929 | + | if EnableCaseInsensitive { | |
| 1930 | + | return strings.EqualFold(s, t) | |
| 1931 | + | } | |
| 1932 | + | ||
| 1933 | + | return s == t | |
| 1934 | + | } | |
| 1935 | + | ||
| 1936 | + | // tmplFunc holds a template and a function that will execute said template. | |
| 1937 | + | type tmplFunc struct { | |
| 1938 | + | tmpl string | |
| 1939 | + | fn func(io.Writer, interface{}) error | |
| 1940 | + | } | |
| 1941 | + | ||
| 1942 | + | const defaultUsageTemplate = `Usage:{{if .Runnable}} | |
| 1943 | + | {{.UseLine}}{{end}}{{if .HasAvailableSubCommands}} | |
| 1944 | + | {{.CommandPath}} [command]{{end}}{{if gt (len .Aliases) 0}} | |
| 1945 | + | ||
| 1946 | + | Aliases: | |
| 1947 | + | {{.NameAndAliases}}{{end}}{{if .HasExample}} | |
| 1948 | + | ||
| 1949 | + | Examples: | |
| 1950 | + | {{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{$cmds := .Commands}}{{if eq (len .Groups) 0}} | |
| 1951 | + | ||
| 1952 | + | Available Commands:{{range $cmds}}{{if (or .IsAvailableCommand (eq .Name "help"))}} | |
| 1953 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{else}}{{range $group := .Groups}} | |
| 1954 | + | ||
| 1955 | + | {{.Title}}{{range $cmds}}{{if (and (eq .GroupID $group.ID) (or .IsAvailableCommand (eq .Name "help")))}} | |
| 1956 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if not .AllChildCommandsHaveGroup}} | |
| 1957 | + | ||
| 1958 | + | Additional Commands:{{range $cmds}}{{if (and (eq .GroupID "") (or .IsAvailableCommand (eq .Name "help")))}} | |
| 1959 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}} | |
| 1960 | + | ||
| 1961 | + | Flags: | |
| 1962 | + | {{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}} | |
| 1963 | + | ||
| 1964 | + | Global Flags: | |
| 1965 | + | {{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}} | |
| 1966 | + | ||
| 1967 | + | Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} | |
| 1968 | + | {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}} | |
| 1969 | + | ||
| 1970 | + | Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} | |
| 1971 | + | ` | |
| 1972 | + | ||
| 1973 | + | // defaultUsageFunc is equivalent to executing defaultUsageTemplate. The two should be changed in sync. | |
| 1974 | + | func defaultUsageFunc(w io.Writer, in interface{}) error { | |
| 1975 | + | c := in.(*Command) | |
| 1976 | + | fmt.Fprint(w, "Usage:") | |
| 1977 | + | if c.Runnable() { | |
| 1978 | + | fmt.Fprintf(w, "\n %s", c.UseLine()) | |
| 1979 | + | } | |
| 1980 | + | if c.HasAvailableSubCommands() { | |
| 1981 | + | fmt.Fprintf(w, "\n %s [command]", c.CommandPath()) | |
| 1982 | + | } | |
| 1983 | + | if len(c.Aliases) > 0 { | |
| 1984 | + | fmt.Fprintf(w, "\n\nAliases:\n") | |
| 1985 | + | fmt.Fprintf(w, " %s", c.NameAndAliases()) | |
| 1986 | + | } | |
| 1987 | + | if c.HasExample() { | |
| 1988 | + | fmt.Fprintf(w, "\n\nExamples:\n") | |
| 1989 | + | fmt.Fprintf(w, "%s", c.Example) | |
| 1990 | + | } | |
| 1991 | + | if c.HasAvailableSubCommands() { | |
| 1992 | + | cmds := c.Commands() | |
| 1993 | + | if len(c.Groups()) == 0 { | |
| 1994 | + | fmt.Fprintf(w, "\n\nAvailable Commands:") | |
| 1995 | + | for _, subcmd := range cmds { | |
| 1996 | + | if subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName { | |
| 1997 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |
| 1998 | + | } | |
| 1999 | + | } | |
| 2000 | + | } else { | |
| 2001 | + | for _, group := range c.Groups() { | |
| 2002 | + | fmt.Fprintf(w, "\n\n%s", group.Title) | |
| 2003 | + | for _, subcmd := range cmds { | |
| 2004 | + | if subcmd.GroupID == group.ID && (subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName) { | |
| 2005 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |
| 2006 | + | } | |
| 2007 | + | } | |
| 2008 | + | } | |
| 2009 | + | if !c.AllChildCommandsHaveGroup() { | |
| 2010 | + | fmt.Fprintf(w, "\n\nAdditional Commands:") | |
| 2011 | + | for _, subcmd := range cmds { | |
| 2012 | + | if subcmd.GroupID == "" && (subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName) { | |
| 2013 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |
| 2014 | + | } | |
| 2015 | + | } | |
| 2016 | + | } | |
| 2017 | + | } | |
| 2018 | + | } | |
| 2019 | + | if c.HasAvailableLocalFlags() { | |
| 2020 | + | fmt.Fprintf(w, "\n\nFlags:\n") | |
| 2021 | + | fmt.Fprint(w, trimRightSpace(c.LocalFlags().FlagUsages())) | |
| 2022 | + | } | |
| 2023 | + | if c.HasAvailableInheritedFlags() { | |
| 2024 | + | fmt.Fprintf(w, "\n\nGlobal Flags:\n") | |
| 2025 | + | fmt.Fprint(w, trimRightSpace(c.InheritedFlags().FlagUsages())) | |
| 2026 | + | } | |
| 2027 | + | if c.HasHelpSubCommands() { | |
| 2028 | + | fmt.Fprintf(w, "\n\nAdditional help topics:") | |
| 2029 | + | for _, subcmd := range c.Commands() { | |
| 2030 | + | if subcmd.IsAdditionalHelpTopicCommand() { | |
| 2031 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.CommandPath(), subcmd.CommandPathPadding()), subcmd.Short) | |
| 2032 | + | } | |
| 2033 | + | } | |
| 2034 | + | } | |
| 2035 | + | if c.HasAvailableSubCommands() { | |
| 2036 | + | fmt.Fprintf(w, "\n\nUse \"%s [command] --help\" for more information about a command.", c.CommandPath()) | |
| 2037 | + | } | |
| 2038 | + | fmt.Fprintln(w) | |
| 2039 | + | return nil | |
| 2040 | + | } | |
| 2041 | + | ||
| 2042 | + | const defaultHelpTemplate = `{{with (or .Long .Short)}}{{. | trimTrailingWhitespaces}} | |
| 2043 | + | ||
| 2044 | + | {{end}}{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}` | |
| 2045 | + | ||
| 2046 | + | // defaultHelpFunc is equivalent to executing defaultHelpTemplate. The two should be changed in sync. | |
| 2047 | + | func defaultHelpFunc(w io.Writer, in interface{}) error { | |
| 2048 | + | c := in.(*Command) | |
| 2049 | + | usage := c.Long | |
| 2050 | + | if usage == "" { | |
| 2051 | + | usage = c.Short | |
| 2052 | + | } | |
| 2053 | + | usage = trimRightSpace(usage) | |
| 2054 | + | if usage != "" { | |
| 2055 | + | fmt.Fprintln(w, usage) | |
| 2056 | + | fmt.Fprintln(w) | |
| 2057 | + | } | |
| 2058 | + | if c.Runnable() || c.HasSubCommands() { | |
| 2059 | + | fmt.Fprint(w, c.UsageString()) | |
| 2060 | + | } | |
| 2061 | + | return nil | |
| 2062 | + | } | |
| 2063 | + | ||
| 2064 | + | const defaultVersionTemplate = `{{with .DisplayName}}{{printf "%s " .}}{{end}}{{printf "version %s" .Version}} | |
| 2065 | + | ` | |
| 2066 | + | ||
| 2067 | + | // defaultVersionFunc is equivalent to executing defaultVersionTemplate. The two should be changed in sync. | |
| 2068 | + | func defaultVersionFunc(w io.Writer, in interface{}) error { | |
| 2069 | + | c := in.(*Command) | |
| 2070 | + | _, err := fmt.Fprintf(w, "%s version %s\n", c.DisplayName(), c.Version) | |
| 2071 | + | return err | |
| 2072 | + | } | |
| @@ -0,0 +1,2072 @@ | |||||
| 1 | + | // Copyright 2013-2023 The Cobra Authors | |||
| 2 | + | // | |||
| 3 | + | // Licensed under the Apache License, Version 2.0 (the "License"); | |||
| 4 | + | // you may not use this file except in compliance with the License. | |||
| 5 | + | // You may obtain a copy of the License at | |||
| 6 | + | // | |||
| 7 | + | // http://www.apache.org/licenses/LICENSE-2.0 | |||
| 8 | + | // | |||
| 9 | + | // Unless required by applicable law or agreed to in writing, software | |||
| 10 | + | // distributed under the License is distributed on an "AS IS" BASIS, | |||
| 11 | + | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| 12 | + | // See the License for the specific language governing permissions and | |||
| 13 | + | // limitations under the License. | |||
| 14 | + | ||||
| 15 | + | // Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces. | |||
| 16 | + | // In addition to providing an interface, Cobra simultaneously provides a controller to organize your application code. | |||
| 17 | + | package cobra | |||
| 18 | + | ||||
| 19 | + | import ( | |||
| 20 | + | "bytes" | |||
| 21 | + | "context" | |||
| 22 | + | "errors" | |||
| 23 | + | "fmt" | |||
| 24 | + | "io" | |||
| 25 | + | "os" | |||
| 26 | + | "path/filepath" | |||
| 27 | + | "sort" | |||
| 28 | + | "strings" | |||
| 29 | + | ||||
| 30 | + | flag "github.com/spf13/pflag" | |||
| 31 | + | ) | |||
| 32 | + | ||||
| 33 | + | const ( | |||
| 34 | + | FlagSetByCobraAnnotation = "cobra_annotation_flag_set_by_cobra" | |||
| 35 | + | CommandDisplayNameAnnotation = "cobra_annotation_command_display_name" | |||
| 36 | + | ||||
| 37 | + | helpFlagName = "help" | |||
| 38 | + | helpCommandName = "help" | |||
| 39 | + | ) | |||
| 40 | + | ||||
| 41 | + | // FParseErrWhitelist configures Flag parse errors to be ignored | |||
| 42 | + | type FParseErrWhitelist flag.ParseErrorsAllowlist | |||
| 43 | + | ||||
| 44 | + | // Group Structure to manage groups for commands | |||
| 45 | + | type Group struct { | |||
| 46 | + | ID string | |||
| 47 | + | Title string | |||
| 48 | + | } | |||
| 49 | + | ||||
| 50 | + | // Command is just that, a command for your application. | |||
| 51 | + | // E.g. 'go run ...' - 'run' is the command. Cobra requires | |||
| 52 | + | // you to define the usage and description as part of your command | |||
| 53 | + | // definition to ensure usability. | |||
| 54 | + | type Command struct { | |||
| 55 | + | // Use is the one-line usage message. | |||
| 56 | + | // Recommended syntax is as follows: | |||
| 57 | + | // [ ] identifies an optional argument. Arguments that are not enclosed in brackets are required. | |||
| 58 | + | // ... indicates that you can specify multiple values for the previous argument. | |||
| 59 | + | // | indicates mutually exclusive information. You can use the argument to the left of the separator or the | |||
| 60 | + | // argument to the right of the separator. You cannot use both arguments in a single use of the command. | |||
| 61 | + | // { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are | |||
| 62 | + | // optional, they are enclosed in brackets ([ ]). | |||
| 63 | + | // Example: add [-F file | -D dir]... [-f format] profile | |||
| 64 | + | Use string | |||
| 65 | + | ||||
| 66 | + | // Aliases is an array of aliases that can be used instead of the first word in Use. | |||
| 67 | + | Aliases []string | |||
| 68 | + | ||||
| 69 | + | // SuggestFor is an array of command names for which this command will be suggested - | |||
| 70 | + | // similar to aliases but only suggests. | |||
| 71 | + | SuggestFor []string | |||
| 72 | + | ||||
| 73 | + | // Short is the short description shown in the 'help' output. | |||
| 74 | + | Short string | |||
| 75 | + | ||||
| 76 | + | // The group id under which this subcommand is grouped in the 'help' output of its parent. | |||
| 77 | + | GroupID string | |||
| 78 | + | ||||
| 79 | + | // Long is the long message shown in the 'help <this-command>' output. | |||
| 80 | + | Long string | |||
| 81 | + | ||||
| 82 | + | // Example is examples of how to use the command. | |||
| 83 | + | Example string | |||
| 84 | + | ||||
| 85 | + | // ValidArgs is list of all valid non-flag arguments that are accepted in shell completions | |||
| 86 | + | ValidArgs []Completion | |||
| 87 | + | // ValidArgsFunction is an optional function that provides valid non-flag arguments for shell completion. | |||
| 88 | + | // It is a dynamic version of using ValidArgs. | |||
| 89 | + | // Only one of ValidArgs and ValidArgsFunction can be used for a command. | |||
| 90 | + | ValidArgsFunction CompletionFunc | |||
| 91 | + | ||||
| 92 | + | // Expected arguments | |||
| 93 | + | Args PositionalArgs | |||
| 94 | + | ||||
| 95 | + | // ArgAliases is List of aliases for ValidArgs. | |||
| 96 | + | // These are not suggested to the user in the shell completion, | |||
| 97 | + | // but accepted if entered manually. | |||
| 98 | + | ArgAliases []string | |||
| 99 | + | ||||
| 100 | + | // BashCompletionFunction is custom bash functions used by the legacy bash autocompletion generator. | |||
| 101 | + | // For portability with other shells, it is recommended to instead use ValidArgsFunction | |||
| 102 | + | BashCompletionFunction string | |||
| 103 | + | ||||
| 104 | + | // Deprecated defines, if this command is deprecated and should print this string when used. | |||
| 105 | + | Deprecated string | |||
| 106 | + | ||||
| 107 | + | // Annotations are key/value pairs that can be used by applications to identify or | |||
| 108 | + | // group commands or set special options. | |||
| 109 | + | Annotations map[string]string | |||
| 110 | + | ||||
| 111 | + | // Version defines the version for this command. If this value is non-empty and the command does not | |||
| 112 | + | // define a "version" flag, a "version" boolean flag will be added to the command and, if specified, | |||
| 113 | + | // will print content of the "Version" variable. A shorthand "v" flag will also be added if the | |||
| 114 | + | // command does not define one. | |||
| 115 | + | Version string | |||
| 116 | + | ||||
| 117 | + | // The *Run functions are executed in the following order: | |||
| 118 | + | // * PersistentPreRun() | |||
| 119 | + | // * PreRun() | |||
| 120 | + | // * Run() | |||
| 121 | + | // * PostRun() | |||
| 122 | + | // * PersistentPostRun() | |||
| 123 | + | // All functions get the same args, the arguments after the command name. | |||
| 124 | + | // The *PreRun and *PostRun functions will only be executed if the Run function of the current | |||
| 125 | + | // command has been declared. | |||
| 126 | + | // | |||
| 127 | + | // PersistentPreRun: children of this command will inherit and execute. | |||
| 128 | + | PersistentPreRun func(cmd *Command, args []string) | |||
| 129 | + | // PersistentPreRunE: PersistentPreRun but returns an error. | |||
| 130 | + | PersistentPreRunE func(cmd *Command, args []string) error | |||
| 131 | + | // PreRun: children of this command will not inherit. | |||
| 132 | + | PreRun func(cmd *Command, args []string) | |||
| 133 | + | // PreRunE: PreRun but returns an error. | |||
| 134 | + | PreRunE func(cmd *Command, args []string) error | |||
| 135 | + | // Run: Typically the actual work function. Most commands will only implement this. | |||
| 136 | + | Run func(cmd *Command, args []string) | |||
| 137 | + | // RunE: Run but returns an error. | |||
| 138 | + | RunE func(cmd *Command, args []string) error | |||
| 139 | + | // PostRun: run after the Run command. | |||
| 140 | + | PostRun func(cmd *Command, args []string) | |||
| 141 | + | // PostRunE: PostRun but returns an error. | |||
| 142 | + | PostRunE func(cmd *Command, args []string) error | |||
| 143 | + | // PersistentPostRun: children of this command will inherit and execute after PostRun. | |||
| 144 | + | PersistentPostRun func(cmd *Command, args []string) | |||
| 145 | + | // PersistentPostRunE: PersistentPostRun but returns an error. | |||
| 146 | + | PersistentPostRunE func(cmd *Command, args []string) error | |||
| 147 | + | ||||
| 148 | + | // groups for subcommands | |||
| 149 | + | commandgroups []*Group | |||
| 150 | + | ||||
| 151 | + | // args is actual args parsed from flags. | |||
| 152 | + | args []string | |||
| 153 | + | // flagErrorBuf contains all error messages from pflag. | |||
| 154 | + | flagErrorBuf *bytes.Buffer | |||
| 155 | + | // flags is full set of flags. | |||
| 156 | + | flags *flag.FlagSet | |||
| 157 | + | // pflags contains persistent flags. | |||
| 158 | + | pflags *flag.FlagSet | |||
| 159 | + | // lflags contains local flags. | |||
| 160 | + | // This field does not represent internal state, it's used as a cache to optimise LocalFlags function call | |||
| 161 | + | lflags *flag.FlagSet | |||
| 162 | + | // iflags contains inherited flags. | |||
| 163 | + | // This field does not represent internal state, it's used as a cache to optimise InheritedFlags function call | |||
| 164 | + | iflags *flag.FlagSet | |||
| 165 | + | // parentsPflags is all persistent flags of cmd's parents. | |||
| 166 | + | parentsPflags *flag.FlagSet | |||
| 167 | + | // globNormFunc is the global normalization function | |||
| 168 | + | // that we can use on every pflag set and children commands | |||
| 169 | + | globNormFunc func(f *flag.FlagSet, name string) flag.NormalizedName | |||
| 170 | + | ||||
| 171 | + | // usageFunc is usage func defined by user. | |||
| 172 | + | usageFunc func(*Command) error | |||
| 173 | + | // usageTemplate is usage template defined by user. | |||
| 174 | + | usageTemplate *tmplFunc | |||
| 175 | + | // flagErrorFunc is func defined by user and it's called when the parsing of | |||
| 176 | + | // flags returns an error. | |||
| 177 | + | flagErrorFunc func(*Command, error) error | |||
| 178 | + | // helpTemplate is help template defined by user. | |||
| 179 | + | helpTemplate *tmplFunc | |||
| 180 | + | // helpFunc is help func defined by user. | |||
| 181 | + | helpFunc func(*Command, []string) | |||
| 182 | + | // helpCommand is command with usage 'help'. If it's not defined by user, | |||
| 183 | + | // cobra uses default help command. | |||
| 184 | + | helpCommand *Command | |||
| 185 | + | // helpCommandGroupID is the group id for the helpCommand | |||
| 186 | + | helpCommandGroupID string | |||
| 187 | + | ||||
| 188 | + | // completionCommandGroupID is the group id for the completion command | |||
| 189 | + | completionCommandGroupID string | |||
| 190 | + | ||||
| 191 | + | // versionTemplate is the version template defined by user. | |||
| 192 | + | versionTemplate *tmplFunc | |||
| 193 | + | ||||
| 194 | + | // errPrefix is the error message prefix defined by user. | |||
| 195 | + | errPrefix string | |||
| 196 | + | ||||
| 197 | + | // inReader is a reader defined by the user that replaces stdin | |||
| 198 | + | inReader io.Reader | |||
| 199 | + | // outWriter is a writer defined by the user that replaces stdout | |||
| 200 | + | outWriter io.Writer | |||
| 201 | + | // errWriter is a writer defined by the user that replaces stderr | |||
| 202 | + | errWriter io.Writer | |||
| 203 | + | ||||
| 204 | + | // FParseErrWhitelist flag parse errors to be ignored | |||
| 205 | + | FParseErrWhitelist FParseErrWhitelist | |||
| 206 | + | ||||
| 207 | + | // CompletionOptions is a set of options to control the handling of shell completion | |||
| 208 | + | CompletionOptions CompletionOptions | |||
| 209 | + | ||||
| 210 | + | // commandsAreSorted defines, if command slice are sorted or not. | |||
| 211 | + | commandsAreSorted bool | |||
| 212 | + | // commandCalledAs is the name or alias value used to call this command. | |||
| 213 | + | commandCalledAs struct { | |||
| 214 | + | name string | |||
| 215 | + | called bool | |||
| 216 | + | } | |||
| 217 | + | ||||
| 218 | + | ctx context.Context | |||
| 219 | + | ||||
| 220 | + | // commands is the list of commands supported by this program. | |||
| 221 | + | commands []*Command | |||
| 222 | + | // parent is a parent command for this command. | |||
| 223 | + | parent *Command | |||
| 224 | + | // Max lengths of commands' string lengths for use in padding. | |||
| 225 | + | commandsMaxUseLen int | |||
| 226 | + | commandsMaxCommandPathLen int | |||
| 227 | + | commandsMaxNameLen int | |||
| 228 | + | ||||
| 229 | + | // TraverseChildren parses flags on all parents before executing child command. | |||
| 230 | + | TraverseChildren bool | |||
| 231 | + | ||||
| 232 | + | // Hidden defines, if this command is hidden and should NOT show up in the list of available commands. | |||
| 233 | + | Hidden bool | |||
| 234 | + | ||||
| 235 | + | // SilenceErrors is an option to quiet errors down stream. | |||
| 236 | + | SilenceErrors bool | |||
| 237 | + | ||||
| 238 | + | // SilenceUsage is an option to silence usage when an error occurs. | |||
| 239 | + | SilenceUsage bool | |||
| 240 | + | ||||
| 241 | + | // DisableFlagParsing disables the flag parsing. | |||
| 242 | + | // If this is true all flags will be passed to the command as arguments. | |||
| 243 | + | DisableFlagParsing bool | |||
| 244 | + | ||||
| 245 | + | // DisableAutoGenTag defines, if gen tag ("Auto generated by spf13/cobra...") | |||
| 246 | + | // will be printed by generating docs for this command. | |||
| 247 | + | DisableAutoGenTag bool | |||
| 248 | + | ||||
| 249 | + | // DisableFlagsInUseLine will disable the addition of [flags] to the usage | |||
| 250 | + | // line of a command when printing help or generating docs | |||
| 251 | + | DisableFlagsInUseLine bool | |||
| 252 | + | ||||
| 253 | + | // DisableSuggestions disables the suggestions based on Levenshtein distance | |||
| 254 | + | // that go along with 'unknown command' messages. | |||
| 255 | + | DisableSuggestions bool | |||
| 256 | + | ||||
| 257 | + | // SuggestionsMinimumDistance defines minimum levenshtein distance to display suggestions. | |||
| 258 | + | // Must be > 0. | |||
| 259 | + | SuggestionsMinimumDistance int | |||
| 260 | + | } | |||
| 261 | + | ||||
| 262 | + | // Context returns underlying command context. If command was executed | |||
| 263 | + | // with ExecuteContext or the context was set with SetContext, the | |||
| 264 | + | // previously set context will be returned. Otherwise, nil is returned. | |||
| 265 | + | // | |||
| 266 | + | // Notice that a call to Execute and ExecuteC will replace a nil context of | |||
| 267 | + | // a command with a context.Background, so a background context will be | |||
| 268 | + | // returned by Context after one of these functions has been called. | |||
| 269 | + | func (c *Command) Context() context.Context { | |||
| 270 | + | return c.ctx | |||
| 271 | + | } | |||
| 272 | + | ||||
| 273 | + | // SetContext sets context for the command. This context will be overwritten by | |||
| 274 | + | // Command.ExecuteContext or Command.ExecuteContextC. | |||
| 275 | + | func (c *Command) SetContext(ctx context.Context) { | |||
| 276 | + | c.ctx = ctx | |||
| 277 | + | } | |||
| 278 | + | ||||
| 279 | + | // SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden | |||
| 280 | + | // particularly useful when testing. | |||
| 281 | + | func (c *Command) SetArgs(a []string) { | |||
| 282 | + | c.args = a | |||
| 283 | + | } | |||
| 284 | + | ||||
| 285 | + | // SetOutput sets the destination for usage and error messages. | |||
| 286 | + | // If output is nil, os.Stderr is used. | |||
| 287 | + | // | |||
| 288 | + | // Deprecated: Use SetOut and/or SetErr instead | |||
| 289 | + | func (c *Command) SetOutput(output io.Writer) { | |||
| 290 | + | c.outWriter = output | |||
| 291 | + | c.errWriter = output | |||
| 292 | + | } | |||
| 293 | + | ||||
| 294 | + | // SetOut sets the destination for usage messages. | |||
| 295 | + | // If newOut is nil, os.Stdout is used. | |||
| 296 | + | func (c *Command) SetOut(newOut io.Writer) { | |||
| 297 | + | c.outWriter = newOut | |||
| 298 | + | } | |||
| 299 | + | ||||
| 300 | + | // SetErr sets the destination for error messages. | |||
| 301 | + | // If newErr is nil, os.Stderr is used. | |||
| 302 | + | func (c *Command) SetErr(newErr io.Writer) { | |||
| 303 | + | c.errWriter = newErr | |||
| 304 | + | } | |||
| 305 | + | ||||
| 306 | + | // SetIn sets the source for input data | |||
| 307 | + | // If newIn is nil, os.Stdin is used. | |||
| 308 | + | func (c *Command) SetIn(newIn io.Reader) { | |||
| 309 | + | c.inReader = newIn | |||
| 310 | + | } | |||
| 311 | + | ||||
| 312 | + | // SetUsageFunc sets usage function. Usage can be defined by application. | |||
| 313 | + | func (c *Command) SetUsageFunc(f func(*Command) error) { | |||
| 314 | + | c.usageFunc = f | |||
| 315 | + | } | |||
| 316 | + | ||||
| 317 | + | // SetUsageTemplate sets usage template. Can be defined by Application. | |||
| 318 | + | func (c *Command) SetUsageTemplate(s string) { | |||
| 319 | + | if s == "" { | |||
| 320 | + | c.usageTemplate = nil | |||
| 321 | + | return | |||
| 322 | + | } | |||
| 323 | + | c.usageTemplate = tmpl(s) | |||
| 324 | + | } | |||
| 325 | + | ||||
| 326 | + | // SetFlagErrorFunc sets a function to generate an error when flag parsing | |||
| 327 | + | // fails. | |||
| 328 | + | func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) { | |||
| 329 | + | c.flagErrorFunc = f | |||
| 330 | + | } | |||
| 331 | + | ||||
| 332 | + | // SetHelpFunc sets help function. Can be defined by Application. | |||
| 333 | + | func (c *Command) SetHelpFunc(f func(*Command, []string)) { | |||
| 334 | + | c.helpFunc = f | |||
| 335 | + | } | |||
| 336 | + | ||||
| 337 | + | // SetHelpCommand sets help command. | |||
| 338 | + | func (c *Command) SetHelpCommand(cmd *Command) { | |||
| 339 | + | c.helpCommand = cmd | |||
| 340 | + | } | |||
| 341 | + | ||||
| 342 | + | // SetHelpCommandGroupID sets the group id of the help command. | |||
| 343 | + | func (c *Command) SetHelpCommandGroupID(groupID string) { | |||
| 344 | + | if c.helpCommand != nil { | |||
| 345 | + | c.helpCommand.GroupID = groupID | |||
| 346 | + | } | |||
| 347 | + | // helpCommandGroupID is used if no helpCommand is defined by the user | |||
| 348 | + | c.helpCommandGroupID = groupID | |||
| 349 | + | } | |||
| 350 | + | ||||
| 351 | + | // SetCompletionCommandGroupID sets the group id of the completion command. | |||
| 352 | + | func (c *Command) SetCompletionCommandGroupID(groupID string) { | |||
| 353 | + | // completionCommandGroupID is used if no completion command is defined by the user | |||
| 354 | + | c.Root().completionCommandGroupID = groupID | |||
| 355 | + | } | |||
| 356 | + | ||||
| 357 | + | // SetHelpTemplate sets help template to be used. Application can use it to set custom template. | |||
| 358 | + | func (c *Command) SetHelpTemplate(s string) { | |||
| 359 | + | if s == "" { | |||
| 360 | + | c.helpTemplate = nil | |||
| 361 | + | return | |||
| 362 | + | } | |||
| 363 | + | c.helpTemplate = tmpl(s) | |||
| 364 | + | } | |||
| 365 | + | ||||
| 366 | + | // SetVersionTemplate sets version template to be used. Application can use it to set custom template. | |||
| 367 | + | func (c *Command) SetVersionTemplate(s string) { | |||
| 368 | + | if s == "" { | |||
| 369 | + | c.versionTemplate = nil | |||
| 370 | + | return | |||
| 371 | + | } | |||
| 372 | + | c.versionTemplate = tmpl(s) | |||
| 373 | + | } | |||
| 374 | + | ||||
| 375 | + | // SetErrPrefix sets error message prefix to be used. Application can use it to set custom prefix. | |||
| 376 | + | func (c *Command) SetErrPrefix(s string) { | |||
| 377 | + | c.errPrefix = s | |||
| 378 | + | } | |||
| 379 | + | ||||
| 380 | + | // SetGlobalNormalizationFunc sets a normalization function to all flag sets and also to child commands. | |||
| 381 | + | // The user should not have a cyclic dependency on commands. | |||
| 382 | + | func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, name string) flag.NormalizedName) { | |||
| 383 | + | c.Flags().SetNormalizeFunc(n) | |||
| 384 | + | c.PersistentFlags().SetNormalizeFunc(n) | |||
| 385 | + | c.globNormFunc = n | |||
| 386 | + | ||||
| 387 | + | for _, command := range c.commands { | |||
| 388 | + | command.SetGlobalNormalizationFunc(n) | |||
| 389 | + | } | |||
| 390 | + | } | |||
| 391 | + | ||||
| 392 | + | // OutOrStdout returns output to stdout. | |||
| 393 | + | func (c *Command) OutOrStdout() io.Writer { | |||
| 394 | + | return c.getOut(os.Stdout) | |||
| 395 | + | } | |||
| 396 | + | ||||
| 397 | + | // OutOrStderr returns output to stderr | |||
| 398 | + | func (c *Command) OutOrStderr() io.Writer { | |||
| 399 | + | return c.getOut(os.Stderr) | |||
| 400 | + | } | |||
| 401 | + | ||||
| 402 | + | // ErrOrStderr returns output to stderr | |||
| 403 | + | func (c *Command) ErrOrStderr() io.Writer { | |||
| 404 | + | return c.getErr(os.Stderr) | |||
| 405 | + | } | |||
| 406 | + | ||||
| 407 | + | // InOrStdin returns input to stdin | |||
| 408 | + | func (c *Command) InOrStdin() io.Reader { | |||
| 409 | + | return c.getIn(os.Stdin) | |||
| 410 | + | } | |||
| 411 | + | ||||
| 412 | + | func (c *Command) getOut(def io.Writer) io.Writer { | |||
| 413 | + | if c.outWriter != nil { | |||
| 414 | + | return c.outWriter | |||
| 415 | + | } | |||
| 416 | + | if c.HasParent() { | |||
| 417 | + | return c.parent.getOut(def) | |||
| 418 | + | } | |||
| 419 | + | return def | |||
| 420 | + | } | |||
| 421 | + | ||||
| 422 | + | func (c *Command) getErr(def io.Writer) io.Writer { | |||
| 423 | + | if c.errWriter != nil { | |||
| 424 | + | return c.errWriter | |||
| 425 | + | } | |||
| 426 | + | if c.HasParent() { | |||
| 427 | + | return c.parent.getErr(def) | |||
| 428 | + | } | |||
| 429 | + | return def | |||
| 430 | + | } | |||
| 431 | + | ||||
| 432 | + | func (c *Command) getIn(def io.Reader) io.Reader { | |||
| 433 | + | if c.inReader != nil { | |||
| 434 | + | return c.inReader | |||
| 435 | + | } | |||
| 436 | + | if c.HasParent() { | |||
| 437 | + | return c.parent.getIn(def) | |||
| 438 | + | } | |||
| 439 | + | return def | |||
| 440 | + | } | |||
| 441 | + | ||||
| 442 | + | // UsageFunc returns either the function set by SetUsageFunc for this command | |||
| 443 | + | // or a parent, or it returns a default usage function. | |||
| 444 | + | func (c *Command) UsageFunc() (f func(*Command) error) { | |||
| 445 | + | if c.usageFunc != nil { | |||
| 446 | + | return c.usageFunc | |||
| 447 | + | } | |||
| 448 | + | if c.HasParent() { | |||
| 449 | + | return c.Parent().UsageFunc() | |||
| 450 | + | } | |||
| 451 | + | return func(c *Command) error { | |||
| 452 | + | c.mergePersistentFlags() | |||
| 453 | + | fn := c.getUsageTemplateFunc() | |||
| 454 | + | err := fn(c.OutOrStderr(), c) | |||
| 455 | + | if err != nil { | |||
| 456 | + | c.PrintErrln(err) | |||
| 457 | + | } | |||
| 458 | + | return err | |||
| 459 | + | } | |||
| 460 | + | } | |||
| 461 | + | ||||
| 462 | + | // getUsageTemplateFunc returns the usage template function for the command | |||
| 463 | + | // going up the command tree if necessary. | |||
| 464 | + | func (c *Command) getUsageTemplateFunc() func(w io.Writer, data interface{}) error { | |||
| 465 | + | if c.usageTemplate != nil { | |||
| 466 | + | return c.usageTemplate.fn | |||
| 467 | + | } | |||
| 468 | + | ||||
| 469 | + | if c.HasParent() { | |||
| 470 | + | return c.parent.getUsageTemplateFunc() | |||
| 471 | + | } | |||
| 472 | + | return defaultUsageFunc | |||
| 473 | + | } | |||
| 474 | + | ||||
| 475 | + | // Usage puts out the usage for the command. | |||
| 476 | + | // Used when a user provides invalid input. | |||
| 477 | + | // Can be defined by user by overriding UsageFunc. | |||
| 478 | + | func (c *Command) Usage() error { | |||
| 479 | + | return c.UsageFunc()(c) | |||
| 480 | + | } | |||
| 481 | + | ||||
| 482 | + | // HelpFunc returns either the function set by SetHelpFunc for this command | |||
| 483 | + | // or a parent, or it returns a function with default help behavior. | |||
| 484 | + | func (c *Command) HelpFunc() func(*Command, []string) { | |||
| 485 | + | if c.helpFunc != nil { | |||
| 486 | + | return c.helpFunc | |||
| 487 | + | } | |||
| 488 | + | if c.HasParent() { | |||
| 489 | + | return c.Parent().HelpFunc() | |||
| 490 | + | } | |||
| 491 | + | return func(c *Command, a []string) { | |||
| 492 | + | c.mergePersistentFlags() | |||
| 493 | + | fn := c.getHelpTemplateFunc() | |||
| 494 | + | // The help should be sent to stdout | |||
| 495 | + | // See https://github.com/spf13/cobra/issues/1002 | |||
| 496 | + | err := fn(c.OutOrStdout(), c) | |||
| 497 | + | if err != nil { | |||
| 498 | + | c.PrintErrln(err) | |||
| 499 | + | } | |||
| 500 | + | } | |||
| 501 | + | } | |||
| 502 | + | ||||
| 503 | + | // getHelpTemplateFunc returns the help template function for the command | |||
| 504 | + | // going up the command tree if necessary. | |||
| 505 | + | func (c *Command) getHelpTemplateFunc() func(w io.Writer, data interface{}) error { | |||
| 506 | + | if c.helpTemplate != nil { | |||
| 507 | + | return c.helpTemplate.fn | |||
| 508 | + | } | |||
| 509 | + | ||||
| 510 | + | if c.HasParent() { | |||
| 511 | + | return c.parent.getHelpTemplateFunc() | |||
| 512 | + | } | |||
| 513 | + | ||||
| 514 | + | return defaultHelpFunc | |||
| 515 | + | } | |||
| 516 | + | ||||
| 517 | + | // Help puts out the help for the command. | |||
| 518 | + | // Used when a user calls help [command]. | |||
| 519 | + | // Can be defined by user by overriding HelpFunc. | |||
| 520 | + | func (c *Command) Help() error { | |||
| 521 | + | c.HelpFunc()(c, []string{}) | |||
| 522 | + | return nil | |||
| 523 | + | } | |||
| 524 | + | ||||
| 525 | + | // UsageString returns usage string. | |||
| 526 | + | func (c *Command) UsageString() string { | |||
| 527 | + | // Storing normal writers | |||
| 528 | + | tmpOutput := c.outWriter | |||
| 529 | + | tmpErr := c.errWriter | |||
| 530 | + | ||||
| 531 | + | bb := new(bytes.Buffer) | |||
| 532 | + | c.outWriter = bb | |||
| 533 | + | c.errWriter = bb | |||
| 534 | + | ||||
| 535 | + | CheckErr(c.Usage()) | |||
| 536 | + | ||||
| 537 | + | // Setting things back to normal | |||
| 538 | + | c.outWriter = tmpOutput | |||
| 539 | + | c.errWriter = tmpErr | |||
| 540 | + | ||||
| 541 | + | return bb.String() | |||
| 542 | + | } | |||
| 543 | + | ||||
| 544 | + | // FlagErrorFunc returns either the function set by SetFlagErrorFunc for this | |||
| 545 | + | // command or a parent, or it returns a function which returns the original | |||
| 546 | + | // error. | |||
| 547 | + | func (c *Command) FlagErrorFunc() (f func(*Command, error) error) { | |||
| 548 | + | if c.flagErrorFunc != nil { | |||
| 549 | + | return c.flagErrorFunc | |||
| 550 | + | } | |||
| 551 | + | ||||
| 552 | + | if c.HasParent() { | |||
| 553 | + | return c.parent.FlagErrorFunc() | |||
| 554 | + | } | |||
| 555 | + | return func(c *Command, err error) error { | |||
| 556 | + | return err | |||
| 557 | + | } | |||
| 558 | + | } | |||
| 559 | + | ||||
| 560 | + | const minUsagePadding = 25 | |||
| 561 | + | ||||
| 562 | + | // UsagePadding return padding for the usage. | |||
| 563 | + | func (c *Command) UsagePadding() int { | |||
| 564 | + | if c.parent == nil || minUsagePadding > c.parent.commandsMaxUseLen { | |||
| 565 | + | return minUsagePadding | |||
| 566 | + | } | |||
| 567 | + | return c.parent.commandsMaxUseLen | |||
| 568 | + | } | |||
| 569 | + | ||||
| 570 | + | const minCommandPathPadding = 11 | |||
| 571 | + | ||||
| 572 | + | // CommandPathPadding return padding for the command path. | |||
| 573 | + | func (c *Command) CommandPathPadding() int { | |||
| 574 | + | if c.parent == nil || minCommandPathPadding > c.parent.commandsMaxCommandPathLen { | |||
| 575 | + | return minCommandPathPadding | |||
| 576 | + | } | |||
| 577 | + | return c.parent.commandsMaxCommandPathLen | |||
| 578 | + | } | |||
| 579 | + | ||||
| 580 | + | const minNamePadding = 11 | |||
| 581 | + | ||||
| 582 | + | // NamePadding returns padding for the name. | |||
| 583 | + | func (c *Command) NamePadding() int { | |||
| 584 | + | if c.parent == nil || minNamePadding > c.parent.commandsMaxNameLen { | |||
| 585 | + | return minNamePadding | |||
| 586 | + | } | |||
| 587 | + | return c.parent.commandsMaxNameLen | |||
| 588 | + | } | |||
| 589 | + | ||||
| 590 | + | // UsageTemplate returns usage template for the command. | |||
| 591 | + | // This function is kept for backwards-compatibility reasons. | |||
| 592 | + | func (c *Command) UsageTemplate() string { | |||
| 593 | + | if c.usageTemplate != nil { | |||
| 594 | + | return c.usageTemplate.tmpl | |||
| 595 | + | } | |||
| 596 | + | ||||
| 597 | + | if c.HasParent() { | |||
| 598 | + | return c.parent.UsageTemplate() | |||
| 599 | + | } | |||
| 600 | + | return defaultUsageTemplate | |||
| 601 | + | } | |||
| 602 | + | ||||
| 603 | + | // HelpTemplate return help template for the command. | |||
| 604 | + | // This function is kept for backwards-compatibility reasons. | |||
| 605 | + | func (c *Command) HelpTemplate() string { | |||
| 606 | + | if c.helpTemplate != nil { | |||
| 607 | + | return c.helpTemplate.tmpl | |||
| 608 | + | } | |||
| 609 | + | ||||
| 610 | + | if c.HasParent() { | |||
| 611 | + | return c.parent.HelpTemplate() | |||
| 612 | + | } | |||
| 613 | + | return defaultHelpTemplate | |||
| 614 | + | } | |||
| 615 | + | ||||
| 616 | + | // VersionTemplate return version template for the command. | |||
| 617 | + | // This function is kept for backwards-compatibility reasons. | |||
| 618 | + | func (c *Command) VersionTemplate() string { | |||
| 619 | + | if c.versionTemplate != nil { | |||
| 620 | + | return c.versionTemplate.tmpl | |||
| 621 | + | } | |||
| 622 | + | ||||
| 623 | + | if c.HasParent() { | |||
| 624 | + | return c.parent.VersionTemplate() | |||
| 625 | + | } | |||
| 626 | + | return defaultVersionTemplate | |||
| 627 | + | } | |||
| 628 | + | ||||
| 629 | + | // getVersionTemplateFunc returns the version template function for the command | |||
| 630 | + | // going up the command tree if necessary. | |||
| 631 | + | func (c *Command) getVersionTemplateFunc() func(w io.Writer, data interface{}) error { | |||
| 632 | + | if c.versionTemplate != nil { | |||
| 633 | + | return c.versionTemplate.fn | |||
| 634 | + | } | |||
| 635 | + | ||||
| 636 | + | if c.HasParent() { | |||
| 637 | + | return c.parent.getVersionTemplateFunc() | |||
| 638 | + | } | |||
| 639 | + | return defaultVersionFunc | |||
| 640 | + | } | |||
| 641 | + | ||||
| 642 | + | // ErrPrefix return error message prefix for the command | |||
| 643 | + | func (c *Command) ErrPrefix() string { | |||
| 644 | + | if c.errPrefix != "" { | |||
| 645 | + | return c.errPrefix | |||
| 646 | + | } | |||
| 647 | + | ||||
| 648 | + | if c.HasParent() { | |||
| 649 | + | return c.parent.ErrPrefix() | |||
| 650 | + | } | |||
| 651 | + | return "Error:" | |||
| 652 | + | } | |||
| 653 | + | ||||
| 654 | + | func hasNoOptDefVal(name string, fs *flag.FlagSet) bool { | |||
| 655 | + | flag := fs.Lookup(name) | |||
| 656 | + | if flag == nil { | |||
| 657 | + | return false | |||
| 658 | + | } | |||
| 659 | + | return flag.NoOptDefVal != "" | |||
| 660 | + | } | |||
| 661 | + | ||||
| 662 | + | func shortHasNoOptDefVal(name string, fs *flag.FlagSet) bool { | |||
| 663 | + | if len(name) == 0 { | |||
| 664 | + | return false | |||
| 665 | + | } | |||
| 666 | + | ||||
| 667 | + | flag := fs.ShorthandLookup(name[:1]) | |||
| 668 | + | if flag == nil { | |||
| 669 | + | return false | |||
| 670 | + | } | |||
| 671 | + | return flag.NoOptDefVal != "" | |||
| 672 | + | } | |||
| 673 | + | ||||
| 674 | + | func stripFlags(args []string, c *Command) []string { | |||
| 675 | + | if len(args) == 0 { | |||
| 676 | + | return args | |||
| 677 | + | } | |||
| 678 | + | c.mergePersistentFlags() | |||
| 679 | + | ||||
| 680 | + | commands := []string{} | |||
| 681 | + | flags := c.Flags() | |||
| 682 | + | ||||
| 683 | + | Loop: | |||
| 684 | + | for len(args) > 0 { | |||
| 685 | + | s := args[0] | |||
| 686 | + | args = args[1:] | |||
| 687 | + | switch { | |||
| 688 | + | case s == "--": | |||
| 689 | + | // "--" terminates the flags | |||
| 690 | + | break Loop | |||
| 691 | + | case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags): | |||
| 692 | + | // If '--flag arg' then | |||
| 693 | + | // delete arg from args. | |||
| 694 | + | fallthrough // (do the same as below) | |||
| 695 | + | case strings.HasPrefix(s, "-") && !strings.Contains(s, "=") && len(s) == 2 && !shortHasNoOptDefVal(s[1:], flags): | |||
| 696 | + | // If '-f arg' then | |||
| 697 | + | // delete 'arg' from args or break the loop if len(args) <= 1. | |||
| 698 | + | if len(args) <= 1 { | |||
| 699 | + | break Loop | |||
| 700 | + | } else { | |||
| 701 | + | args = args[1:] | |||
| 702 | + | continue | |||
| 703 | + | } | |||
| 704 | + | case s != "" && !strings.HasPrefix(s, "-"): | |||
| 705 | + | commands = append(commands, s) | |||
| 706 | + | } | |||
| 707 | + | } | |||
| 708 | + | ||||
| 709 | + | return commands | |||
| 710 | + | } | |||
| 711 | + | ||||
| 712 | + | // argsMinusFirstX removes only the first x from args. Otherwise, commands that look like | |||
| 713 | + | // openshift admin policy add-role-to-user admin my-user, lose the admin argument (arg[4]). | |||
| 714 | + | // Special care needs to be taken not to remove a flag value. | |||
| 715 | + | func (c *Command) argsMinusFirstX(args []string, x string) []string { | |||
| 716 | + | if len(args) == 0 { | |||
| 717 | + | return args | |||
| 718 | + | } | |||
| 719 | + | c.mergePersistentFlags() | |||
| 720 | + | flags := c.Flags() | |||
| 721 | + | ||||
| 722 | + | Loop: | |||
| 723 | + | for pos := 0; pos < len(args); pos++ { | |||
| 724 | + | s := args[pos] | |||
| 725 | + | switch { | |||
| 726 | + | case s == "--": | |||
| 727 | + | // -- means we have reached the end of the parseable args. Break out of the loop now. | |||
| 728 | + | break Loop | |||
| 729 | + | case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags): | |||
| 730 | + | fallthrough | |||
| 731 | + | case strings.HasPrefix(s, "-") && !strings.Contains(s, "=") && len(s) == 2 && !shortHasNoOptDefVal(s[1:], flags): | |||
| 732 | + | // This is a flag without a default value, and an equal sign is not used. Increment pos in order to skip | |||
| 733 | + | // over the next arg, because that is the value of this flag. | |||
| 734 | + | pos++ | |||
| 735 | + | continue | |||
| 736 | + | case !strings.HasPrefix(s, "-"): | |||
| 737 | + | // This is not a flag or a flag value. Check to see if it matches what we're looking for, and if so, | |||
| 738 | + | // return the args, excluding the one at this position. | |||
| 739 | + | if s == x { | |||
| 740 | + | ret := make([]string, 0, len(args)-1) | |||
| 741 | + | ret = append(ret, args[:pos]...) | |||
| 742 | + | ret = append(ret, args[pos+1:]...) | |||
| 743 | + | return ret | |||
| 744 | + | } | |||
| 745 | + | } | |||
| 746 | + | } | |||
| 747 | + | return args | |||
| 748 | + | } | |||
| 749 | + | ||||
| 750 | + | func isFlagArg(arg string) bool { | |||
| 751 | + | return ((len(arg) >= 3 && arg[0:2] == "--") || | |||
| 752 | + | (len(arg) >= 2 && arg[0] == '-' && arg[1] != '-')) | |||
| 753 | + | } | |||
| 754 | + | ||||
| 755 | + | // Find the target command given the args and command tree | |||
| 756 | + | // Meant to be run on the highest node. Only searches down. | |||
| 757 | + | func (c *Command) Find(args []string) (*Command, []string, error) { | |||
| 758 | + | var innerfind func(*Command, []string) (*Command, []string) | |||
| 759 | + | ||||
| 760 | + | innerfind = func(c *Command, innerArgs []string) (*Command, []string) { | |||
| 761 | + | argsWOflags := stripFlags(innerArgs, c) | |||
| 762 | + | if len(argsWOflags) == 0 { | |||
| 763 | + | return c, innerArgs | |||
| 764 | + | } | |||
| 765 | + | nextSubCmd := argsWOflags[0] | |||
| 766 | + | ||||
| 767 | + | cmd := c.findNext(nextSubCmd) | |||
| 768 | + | if cmd != nil { | |||
| 769 | + | return innerfind(cmd, c.argsMinusFirstX(innerArgs, nextSubCmd)) | |||
| 770 | + | } | |||
| 771 | + | return c, innerArgs | |||
| 772 | + | } | |||
| 773 | + | ||||
| 774 | + | commandFound, a := innerfind(c, args) | |||
| 775 | + | if commandFound.Args == nil { | |||
| 776 | + | return commandFound, a, legacyArgs(commandFound, stripFlags(a, commandFound)) | |||
| 777 | + | } | |||
| 778 | + | return commandFound, a, nil | |||
| 779 | + | } | |||
| 780 | + | ||||
| 781 | + | func (c *Command) findSuggestions(arg string) string { | |||
| 782 | + | if c.DisableSuggestions { | |||
| 783 | + | return "" | |||
| 784 | + | } | |||
| 785 | + | if c.SuggestionsMinimumDistance <= 0 { | |||
| 786 | + | c.SuggestionsMinimumDistance = 2 | |||
| 787 | + | } | |||
| 788 | + | var sb strings.Builder | |||
| 789 | + | if suggestions := c.SuggestionsFor(arg); len(suggestions) > 0 { | |||
| 790 | + | sb.WriteString("\n\nDid you mean this?\n") | |||
| 791 | + | for _, s := range suggestions { | |||
| 792 | + | _, _ = fmt.Fprintf(&sb, "\t%v\n", s) | |||
| 793 | + | } | |||
| 794 | + | } | |||
| 795 | + | return sb.String() | |||
| 796 | + | } | |||
| 797 | + | ||||
| 798 | + | func (c *Command) findNext(next string) *Command { | |||
| 799 | + | matches := make([]*Command, 0) | |||
| 800 | + | for _, cmd := range c.commands { | |||
| 801 | + | if commandNameMatches(cmd.Name(), next) || cmd.HasAlias(next) { | |||
| 802 | + | cmd.commandCalledAs.name = next | |||
| 803 | + | return cmd | |||
| 804 | + | } | |||
| 805 | + | if EnablePrefixMatching && cmd.hasNameOrAliasPrefix(next) { | |||
| 806 | + | matches = append(matches, cmd) | |||
| 807 | + | } | |||
| 808 | + | } | |||
| 809 | + | ||||
| 810 | + | if len(matches) == 1 { | |||
| 811 | + | // Temporarily disable gosec G602, which produces a false positive. | |||
| 812 | + | // See https://github.com/securego/gosec/issues/1005. | |||
| 813 | + | return matches[0] // #nosec G602 | |||
| 814 | + | } | |||
| 815 | + | ||||
| 816 | + | return nil | |||
| 817 | + | } | |||
| 818 | + | ||||
| 819 | + | // Traverse the command tree to find the command, and parse args for | |||
| 820 | + | // each parent. | |||
| 821 | + | func (c *Command) Traverse(args []string) (*Command, []string, error) { | |||
| 822 | + | flags := []string{} | |||
| 823 | + | inFlag := false | |||
| 824 | + | ||||
| 825 | + | for i, arg := range args { | |||
| 826 | + | switch { | |||
| 827 | + | // A long flag with a space separated value | |||
| 828 | + | case strings.HasPrefix(arg, "--") && !strings.Contains(arg, "="): | |||
| 829 | + | // TODO: this isn't quite right, we should really check ahead for 'true' or 'false' | |||
| 830 | + | inFlag = !hasNoOptDefVal(arg[2:], c.Flags()) | |||
| 831 | + | flags = append(flags, arg) | |||
| 832 | + | continue | |||
| 833 | + | // A short flag with a space separated value | |||
| 834 | + | case strings.HasPrefix(arg, "-") && !strings.Contains(arg, "=") && len(arg) == 2 && !shortHasNoOptDefVal(arg[1:], c.Flags()): | |||
| 835 | + | inFlag = true | |||
| 836 | + | flags = append(flags, arg) | |||
| 837 | + | continue | |||
| 838 | + | // The value for a flag | |||
| 839 | + | case inFlag: | |||
| 840 | + | inFlag = false | |||
| 841 | + | flags = append(flags, arg) | |||
| 842 | + | continue | |||
| 843 | + | // A flag without a value, or with an `=` separated value | |||
| 844 | + | case isFlagArg(arg): | |||
| 845 | + | flags = append(flags, arg) | |||
| 846 | + | continue | |||
| 847 | + | } | |||
| 848 | + | ||||
| 849 | + | cmd := c.findNext(arg) | |||
| 850 | + | if cmd == nil { | |||
| 851 | + | return c, args, nil | |||
| 852 | + | } | |||
| 853 | + | ||||
| 854 | + | if err := c.ParseFlags(flags); err != nil { | |||
| 855 | + | return nil, args, err | |||
| 856 | + | } | |||
| 857 | + | return cmd.Traverse(args[i+1:]) | |||
| 858 | + | } | |||
| 859 | + | return c, args, nil | |||
| 860 | + | } | |||
| 861 | + | ||||
| 862 | + | // SuggestionsFor provides suggestions for the typedName. | |||
| 863 | + | func (c *Command) SuggestionsFor(typedName string) []string { | |||
| 864 | + | suggestions := []string{} | |||
| 865 | + | for _, cmd := range c.commands { | |||
| 866 | + | if cmd.IsAvailableCommand() { | |||
| 867 | + | levenshteinDistance := ld(typedName, cmd.Name(), true) | |||
| 868 | + | suggestByLevenshtein := levenshteinDistance <= c.SuggestionsMinimumDistance | |||
| 869 | + | suggestByPrefix := strings.HasPrefix(strings.ToLower(cmd.Name()), strings.ToLower(typedName)) | |||
| 870 | + | if suggestByLevenshtein || suggestByPrefix { | |||
| 871 | + | suggestions = append(suggestions, cmd.Name()) | |||
| 872 | + | } | |||
| 873 | + | for _, explicitSuggestion := range cmd.SuggestFor { | |||
| 874 | + | if strings.EqualFold(typedName, explicitSuggestion) { | |||
| 875 | + | suggestions = append(suggestions, cmd.Name()) | |||
| 876 | + | } | |||
| 877 | + | } | |||
| 878 | + | } | |||
| 879 | + | } | |||
| 880 | + | return suggestions | |||
| 881 | + | } | |||
| 882 | + | ||||
| 883 | + | // VisitParents visits all parents of the command and invokes fn on each parent. | |||
| 884 | + | func (c *Command) VisitParents(fn func(*Command)) { | |||
| 885 | + | if c.HasParent() { | |||
| 886 | + | fn(c.Parent()) | |||
| 887 | + | c.Parent().VisitParents(fn) | |||
| 888 | + | } | |||
| 889 | + | } | |||
| 890 | + | ||||
| 891 | + | // Root finds root command. | |||
| 892 | + | func (c *Command) Root() *Command { | |||
| 893 | + | if c.HasParent() { | |||
| 894 | + | return c.Parent().Root() | |||
| 895 | + | } | |||
| 896 | + | return c | |||
| 897 | + | } | |||
| 898 | + | ||||
| 899 | + | // ArgsLenAtDash will return the length of c.Flags().Args at the moment | |||
| 900 | + | // when a -- was found during args parsing. | |||
| 901 | + | func (c *Command) ArgsLenAtDash() int { | |||
| 902 | + | return c.Flags().ArgsLenAtDash() | |||
| 903 | + | } | |||
| 904 | + | ||||
| 905 | + | func (c *Command) execute(a []string) (err error) { | |||
| 906 | + | if c == nil { | |||
| 907 | + | return fmt.Errorf("called Execute() on a nil Command") | |||
| 908 | + | } | |||
| 909 | + | ||||
| 910 | + | if len(c.Deprecated) > 0 { | |||
| 911 | + | c.Printf("Command %q is deprecated, %s\n", c.Name(), c.Deprecated) | |||
| 912 | + | } | |||
| 913 | + | ||||
| 914 | + | // initialize help and version flag at the last point possible to allow for user | |||
| 915 | + | // overriding | |||
| 916 | + | c.InitDefaultHelpFlag() | |||
| 917 | + | c.InitDefaultVersionFlag() | |||
| 918 | + | ||||
| 919 | + | err = c.ParseFlags(a) | |||
| 920 | + | if err != nil { | |||
| 921 | + | return c.FlagErrorFunc()(c, err) | |||
| 922 | + | } | |||
| 923 | + | ||||
| 924 | + | // If help is called, regardless of other flags, return we want help. | |||
| 925 | + | // Also say we need help if the command isn't runnable. | |||
| 926 | + | helpVal, err := c.Flags().GetBool(helpFlagName) | |||
| 927 | + | if err != nil { | |||
| 928 | + | // should be impossible to get here as we always declare a help | |||
| 929 | + | // flag in InitDefaultHelpFlag() | |||
| 930 | + | c.Println("\"help\" flag declared as non-bool. Please correct your code") | |||
| 931 | + | return err | |||
| 932 | + | } | |||
| 933 | + | ||||
| 934 | + | if helpVal { | |||
| 935 | + | return flag.ErrHelp | |||
| 936 | + | } | |||
| 937 | + | ||||
| 938 | + | // for back-compat, only add version flag behavior if version is defined | |||
| 939 | + | if c.Version != "" { | |||
| 940 | + | versionVal, err := c.Flags().GetBool("version") | |||
| 941 | + | if err != nil { | |||
| 942 | + | c.Println("\"version\" flag declared as non-bool. Please correct your code") | |||
| 943 | + | return err | |||
| 944 | + | } | |||
| 945 | + | if versionVal { | |||
| 946 | + | fn := c.getVersionTemplateFunc() | |||
| 947 | + | err := fn(c.OutOrStdout(), c) | |||
| 948 | + | if err != nil { | |||
| 949 | + | c.Println(err) | |||
| 950 | + | } | |||
| 951 | + | return err | |||
| 952 | + | } | |||
| 953 | + | } | |||
| 954 | + | ||||
| 955 | + | if !c.Runnable() { | |||
| 956 | + | return flag.ErrHelp | |||
| 957 | + | } | |||
| 958 | + | ||||
| 959 | + | c.preRun() | |||
| 960 | + | ||||
| 961 | + | defer c.postRun() | |||
| 962 | + | ||||
| 963 | + | argWoFlags := c.Flags().Args() | |||
| 964 | + | if c.DisableFlagParsing { | |||
| 965 | + | argWoFlags = a | |||
| 966 | + | } | |||
| 967 | + | ||||
| 968 | + | if err := c.ValidateArgs(argWoFlags); err != nil { | |||
| 969 | + | return err | |||
| 970 | + | } | |||
| 971 | + | ||||
| 972 | + | parents := make([]*Command, 0, 5) | |||
| 973 | + | for p := c; p != nil; p = p.Parent() { | |||
| 974 | + | if EnableTraverseRunHooks { | |||
| 975 | + | // When EnableTraverseRunHooks is set: | |||
| 976 | + | // - Execute all persistent pre-runs from the root parent till this command. | |||
| 977 | + | // - Execute all persistent post-runs from this command till the root parent. | |||
| 978 | + | parents = append([]*Command{p}, parents...) | |||
| 979 | + | } else { | |||
| 980 | + | // Otherwise, execute only the first found persistent hook. | |||
| 981 | + | parents = append(parents, p) | |||
| 982 | + | } | |||
| 983 | + | } | |||
| 984 | + | for _, p := range parents { | |||
| 985 | + | if p.PersistentPreRunE != nil { | |||
| 986 | + | if err := p.PersistentPreRunE(c, argWoFlags); err != nil { | |||
| 987 | + | return err | |||
| 988 | + | } | |||
| 989 | + | if !EnableTraverseRunHooks { | |||
| 990 | + | break | |||
| 991 | + | } | |||
| 992 | + | } else if p.PersistentPreRun != nil { | |||
| 993 | + | p.PersistentPreRun(c, argWoFlags) | |||
| 994 | + | if !EnableTraverseRunHooks { | |||
| 995 | + | break | |||
| 996 | + | } | |||
| 997 | + | } | |||
| 998 | + | } | |||
| 999 | + | if c.PreRunE != nil { | |||
| 1000 | + | if err := c.PreRunE(c, argWoFlags); err != nil { | |||
| 1001 | + | return err | |||
| 1002 | + | } | |||
| 1003 | + | } else if c.PreRun != nil { | |||
| 1004 | + | c.PreRun(c, argWoFlags) | |||
| 1005 | + | } | |||
| 1006 | + | ||||
| 1007 | + | if err := c.ValidateRequiredFlags(); err != nil { | |||
| 1008 | + | return err | |||
| 1009 | + | } | |||
| 1010 | + | if err := c.ValidateFlagGroups(); err != nil { | |||
| 1011 | + | return err | |||
| 1012 | + | } | |||
| 1013 | + | ||||
| 1014 | + | if c.RunE != nil { | |||
| 1015 | + | if err := c.RunE(c, argWoFlags); err != nil { | |||
| 1016 | + | return err | |||
| 1017 | + | } | |||
| 1018 | + | } else { | |||
| 1019 | + | c.Run(c, argWoFlags) | |||
| 1020 | + | } | |||
| 1021 | + | if c.PostRunE != nil { | |||
| 1022 | + | if err := c.PostRunE(c, argWoFlags); err != nil { | |||
| 1023 | + | return err | |||
| 1024 | + | } | |||
| 1025 | + | } else if c.PostRun != nil { | |||
| 1026 | + | c.PostRun(c, argWoFlags) | |||
| 1027 | + | } | |||
| 1028 | + | for p := c; p != nil; p = p.Parent() { | |||
| 1029 | + | if p.PersistentPostRunE != nil { | |||
| 1030 | + | if err := p.PersistentPostRunE(c, argWoFlags); err != nil { | |||
| 1031 | + | return err | |||
| 1032 | + | } | |||
| 1033 | + | if !EnableTraverseRunHooks { | |||
| 1034 | + | break | |||
| 1035 | + | } | |||
| 1036 | + | } else if p.PersistentPostRun != nil { | |||
| 1037 | + | p.PersistentPostRun(c, argWoFlags) | |||
| 1038 | + | if !EnableTraverseRunHooks { | |||
| 1039 | + | break | |||
| 1040 | + | } | |||
| 1041 | + | } | |||
| 1042 | + | } | |||
| 1043 | + | ||||
| 1044 | + | return nil | |||
| 1045 | + | } | |||
| 1046 | + | ||||
| 1047 | + | func (c *Command) preRun() { | |||
| 1048 | + | for _, x := range initializers { | |||
| 1049 | + | x() | |||
| 1050 | + | } | |||
| 1051 | + | } | |||
| 1052 | + | ||||
| 1053 | + | func (c *Command) postRun() { | |||
| 1054 | + | for _, x := range finalizers { | |||
| 1055 | + | x() | |||
| 1056 | + | } | |||
| 1057 | + | } | |||
| 1058 | + | ||||
| 1059 | + | // ExecuteContext is the same as Execute(), but sets the ctx on the command. | |||
| 1060 | + | // Retrieve ctx by calling cmd.Context() inside your *Run lifecycle or ValidArgs | |||
| 1061 | + | // functions. | |||
| 1062 | + | func (c *Command) ExecuteContext(ctx context.Context) error { | |||
| 1063 | + | c.ctx = ctx | |||
| 1064 | + | return c.Execute() | |||
| 1065 | + | } | |||
| 1066 | + | ||||
| 1067 | + | // Execute uses the args (os.Args[1:] by default) | |||
| 1068 | + | // and run through the command tree finding appropriate matches | |||
| 1069 | + | // for commands and then corresponding flags. | |||
| 1070 | + | func (c *Command) Execute() error { | |||
| 1071 | + | _, err := c.ExecuteC() | |||
| 1072 | + | return err | |||
| 1073 | + | } | |||
| 1074 | + | ||||
| 1075 | + | // ExecuteContextC is the same as ExecuteC(), but sets the ctx on the command. | |||
| 1076 | + | // Retrieve ctx by calling cmd.Context() inside your *Run lifecycle or ValidArgs | |||
| 1077 | + | // functions. | |||
| 1078 | + | func (c *Command) ExecuteContextC(ctx context.Context) (*Command, error) { | |||
| 1079 | + | c.ctx = ctx | |||
| 1080 | + | return c.ExecuteC() | |||
| 1081 | + | } | |||
| 1082 | + | ||||
| 1083 | + | // ExecuteC executes the command. | |||
| 1084 | + | func (c *Command) ExecuteC() (cmd *Command, err error) { | |||
| 1085 | + | if c.ctx == nil { | |||
| 1086 | + | c.ctx = context.Background() | |||
| 1087 | + | } | |||
| 1088 | + | ||||
| 1089 | + | // Regardless of what command execute is called on, run on Root only | |||
| 1090 | + | if c.HasParent() { | |||
| 1091 | + | return c.Root().ExecuteC() | |||
| 1092 | + | } | |||
| 1093 | + | ||||
| 1094 | + | // windows hook | |||
| 1095 | + | if preExecHookFn != nil { | |||
| 1096 | + | preExecHookFn(c) | |||
| 1097 | + | } | |||
| 1098 | + | ||||
| 1099 | + | // initialize help at the last point to allow for user overriding | |||
| 1100 | + | c.InitDefaultHelpCmd() | |||
| 1101 | + | ||||
| 1102 | + | args := c.args | |||
| 1103 | + | ||||
| 1104 | + | // Workaround FAIL with "go test -v" or "cobra.test -test.v", see #155 | |||
| 1105 | + | if c.args == nil && filepath.Base(os.Args[0]) != "cobra.test" { | |||
| 1106 | + | args = os.Args[1:] | |||
| 1107 | + | } | |||
| 1108 | + | ||||
| 1109 | + | // initialize the __complete command to be used for shell completion | |||
| 1110 | + | c.initCompleteCmd(args) | |||
| 1111 | + | ||||
| 1112 | + | // initialize the default completion command | |||
| 1113 | + | c.InitDefaultCompletionCmd(args...) | |||
| 1114 | + | ||||
| 1115 | + | // Now that all commands have been created, let's make sure all groups | |||
| 1116 | + | // are properly created also | |||
| 1117 | + | c.checkCommandGroups() | |||
| 1118 | + | ||||
| 1119 | + | var flags []string | |||
| 1120 | + | if c.TraverseChildren { | |||
| 1121 | + | cmd, flags, err = c.Traverse(args) | |||
| 1122 | + | } else { | |||
| 1123 | + | cmd, flags, err = c.Find(args) | |||
| 1124 | + | } | |||
| 1125 | + | if err != nil { | |||
| 1126 | + | // If found parse to a subcommand and then failed, talk about the subcommand | |||
| 1127 | + | if cmd != nil { | |||
| 1128 | + | c = cmd | |||
| 1129 | + | } | |||
| 1130 | + | if !c.SilenceErrors { | |||
| 1131 | + | c.PrintErrln(c.ErrPrefix(), err.Error()) | |||
| 1132 | + | c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath()) | |||
| 1133 | + | } | |||
| 1134 | + | return c, err | |||
| 1135 | + | } | |||
| 1136 | + | ||||
| 1137 | + | cmd.commandCalledAs.called = true | |||
| 1138 | + | if cmd.commandCalledAs.name == "" { | |||
| 1139 | + | cmd.commandCalledAs.name = cmd.Name() | |||
| 1140 | + | } | |||
| 1141 | + | ||||
| 1142 | + | // We have to pass global context to children command | |||
| 1143 | + | // if context is present on the parent command. | |||
| 1144 | + | if cmd.ctx == nil { | |||
| 1145 | + | cmd.ctx = c.ctx | |||
| 1146 | + | } | |||
| 1147 | + | ||||
| 1148 | + | err = cmd.execute(flags) | |||
| 1149 | + | if err != nil { | |||
| 1150 | + | // Always show help if requested, even if SilenceErrors is in | |||
| 1151 | + | // effect | |||
| 1152 | + | if errors.Is(err, flag.ErrHelp) { | |||
| 1153 | + | cmd.HelpFunc()(cmd, args) | |||
| 1154 | + | return cmd, nil | |||
| 1155 | + | } | |||
| 1156 | + | ||||
| 1157 | + | // If root command has SilenceErrors flagged, | |||
| 1158 | + | // all subcommands should respect it | |||
| 1159 | + | if !cmd.SilenceErrors && !c.SilenceErrors { | |||
| 1160 | + | c.PrintErrln(cmd.ErrPrefix(), err.Error()) | |||
| 1161 | + | } | |||
| 1162 | + | ||||
| 1163 | + | // If root command has SilenceUsage flagged, | |||
| 1164 | + | // all subcommands should respect it | |||
| 1165 | + | if !cmd.SilenceUsage && !c.SilenceUsage { | |||
| 1166 | + | c.Println(cmd.UsageString()) | |||
| 1167 | + | } | |||
| 1168 | + | } | |||
| 1169 | + | return cmd, err | |||
| 1170 | + | } | |||
| 1171 | + | ||||
| 1172 | + | func (c *Command) ValidateArgs(args []string) error { | |||
| 1173 | + | if c.Args == nil { | |||
| 1174 | + | return ArbitraryArgs(c, args) | |||
| 1175 | + | } | |||
| 1176 | + | return c.Args(c, args) | |||
| 1177 | + | } | |||
| 1178 | + | ||||
| 1179 | + | // ValidateRequiredFlags validates all required flags are present and returns an error otherwise | |||
| 1180 | + | func (c *Command) ValidateRequiredFlags() error { | |||
| 1181 | + | if c.DisableFlagParsing { | |||
| 1182 | + | return nil | |||
| 1183 | + | } | |||
| 1184 | + | ||||
| 1185 | + | flags := c.Flags() | |||
| 1186 | + | missingFlagNames := []string{} | |||
| 1187 | + | flags.VisitAll(func(pflag *flag.Flag) { | |||
| 1188 | + | requiredAnnotation, found := pflag.Annotations[BashCompOneRequiredFlag] | |||
| 1189 | + | if !found { | |||
| 1190 | + | return | |||
| 1191 | + | } | |||
| 1192 | + | if (requiredAnnotation[0] == "true") && !pflag.Changed { | |||
| 1193 | + | missingFlagNames = append(missingFlagNames, pflag.Name) | |||
| 1194 | + | } | |||
| 1195 | + | }) | |||
| 1196 | + | ||||
| 1197 | + | if len(missingFlagNames) > 0 { | |||
| 1198 | + | return fmt.Errorf(`required flag(s) "%s" not set`, strings.Join(missingFlagNames, `", "`)) | |||
| 1199 | + | } | |||
| 1200 | + | return nil | |||
| 1201 | + | } | |||
| 1202 | + | ||||
| 1203 | + | // checkCommandGroups checks if a command has been added to a group that does not exists. | |||
| 1204 | + | // If so, we panic because it indicates a coding error that should be corrected. | |||
| 1205 | + | func (c *Command) checkCommandGroups() { | |||
| 1206 | + | for _, sub := range c.commands { | |||
| 1207 | + | // if Group is not defined let the developer know right away | |||
| 1208 | + | if sub.GroupID != "" && !c.ContainsGroup(sub.GroupID) { | |||
| 1209 | + | panic(fmt.Sprintf("group id '%s' is not defined for subcommand '%s'", sub.GroupID, sub.CommandPath())) | |||
| 1210 | + | } | |||
| 1211 | + | ||||
| 1212 | + | sub.checkCommandGroups() | |||
| 1213 | + | } | |||
| 1214 | + | } | |||
| 1215 | + | ||||
| 1216 | + | // InitDefaultHelpFlag adds default help flag to c. | |||
| 1217 | + | // It is called automatically by executing the c or by calling help and usage. | |||
| 1218 | + | // If c already has help flag, it will do nothing. | |||
| 1219 | + | func (c *Command) InitDefaultHelpFlag() { | |||
| 1220 | + | c.mergePersistentFlags() | |||
| 1221 | + | if c.Flags().Lookup(helpFlagName) == nil { | |||
| 1222 | + | usage := "help for " | |||
| 1223 | + | name := c.DisplayName() | |||
| 1224 | + | if name == "" { | |||
| 1225 | + | usage += "this command" | |||
| 1226 | + | } else { | |||
| 1227 | + | usage += name | |||
| 1228 | + | } | |||
| 1229 | + | c.Flags().BoolP(helpFlagName, "h", false, usage) | |||
| 1230 | + | _ = c.Flags().SetAnnotation(helpFlagName, FlagSetByCobraAnnotation, []string{"true"}) | |||
| 1231 | + | } | |||
| 1232 | + | } | |||
| 1233 | + | ||||
| 1234 | + | // InitDefaultVersionFlag adds default version flag to c. | |||
| 1235 | + | // It is called automatically by executing the c. | |||
| 1236 | + | // If c already has a version flag, it will do nothing. | |||
| 1237 | + | // If c.Version is empty, it will do nothing. | |||
| 1238 | + | func (c *Command) InitDefaultVersionFlag() { | |||
| 1239 | + | if c.Version == "" { | |||
| 1240 | + | return | |||
| 1241 | + | } | |||
| 1242 | + | ||||
| 1243 | + | c.mergePersistentFlags() | |||
| 1244 | + | if c.Flags().Lookup("version") == nil { | |||
| 1245 | + | usage := "version for " | |||
| 1246 | + | if c.Name() == "" { | |||
| 1247 | + | usage += "this command" | |||
| 1248 | + | } else { | |||
| 1249 | + | usage += c.DisplayName() | |||
| 1250 | + | } | |||
| 1251 | + | if c.Flags().ShorthandLookup("v") == nil { | |||
| 1252 | + | c.Flags().BoolP("version", "v", false, usage) | |||
| 1253 | + | } else { | |||
| 1254 | + | c.Flags().Bool("version", false, usage) | |||
| 1255 | + | } | |||
| 1256 | + | _ = c.Flags().SetAnnotation("version", FlagSetByCobraAnnotation, []string{"true"}) | |||
| 1257 | + | } | |||
| 1258 | + | } | |||
| 1259 | + | ||||
| 1260 | + | // InitDefaultHelpCmd adds default help command to c. | |||
| 1261 | + | // It is called automatically by executing the c or by calling help and usage. | |||
| 1262 | + | // If c already has help command or c has no subcommands, it will do nothing. | |||
| 1263 | + | func (c *Command) InitDefaultHelpCmd() { | |||
| 1264 | + | if !c.HasSubCommands() { | |||
| 1265 | + | return | |||
| 1266 | + | } | |||
| 1267 | + | ||||
| 1268 | + | if c.helpCommand == nil { | |||
| 1269 | + | c.helpCommand = &Command{ | |||
| 1270 | + | Use: "help [command]", | |||
| 1271 | + | Short: "Help about any command", | |||
| 1272 | + | Long: `Help provides help for any command in the application. | |||
| 1273 | + | Simply type ` + c.DisplayName() + ` help [path to command] for full details.`, | |||
| 1274 | + | ValidArgsFunction: func(c *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) { | |||
| 1275 | + | var completions []Completion | |||
| 1276 | + | cmd, _, e := c.Root().Find(args) | |||
| 1277 | + | if e != nil { | |||
| 1278 | + | return nil, ShellCompDirectiveNoFileComp | |||
| 1279 | + | } | |||
| 1280 | + | if cmd == nil { | |||
| 1281 | + | // Root help command. | |||
| 1282 | + | cmd = c.Root() | |||
| 1283 | + | } | |||
| 1284 | + | for _, subCmd := range cmd.Commands() { | |||
| 1285 | + | if subCmd.IsAvailableCommand() || subCmd == cmd.helpCommand { | |||
| 1286 | + | if strings.HasPrefix(subCmd.Name(), toComplete) { | |||
| 1287 | + | completions = append(completions, CompletionWithDesc(subCmd.Name(), subCmd.Short)) | |||
| 1288 | + | } | |||
| 1289 | + | } | |||
| 1290 | + | } | |||
| 1291 | + | return completions, ShellCompDirectiveNoFileComp | |||
| 1292 | + | }, | |||
| 1293 | + | Run: func(c *Command, args []string) { | |||
| 1294 | + | cmd, _, e := c.Root().Find(args) | |||
| 1295 | + | if cmd == nil || e != nil { | |||
| 1296 | + | c.Printf("Unknown help topic %#q\n", args) | |||
| 1297 | + | CheckErr(c.Root().Usage()) | |||
| 1298 | + | } else { | |||
| 1299 | + | // FLow the context down to be used in help text | |||
| 1300 | + | if cmd.ctx == nil { | |||
| 1301 | + | cmd.ctx = c.ctx | |||
| 1302 | + | } | |||
| 1303 | + | ||||
| 1304 | + | cmd.InitDefaultHelpFlag() // make possible 'help' flag to be shown | |||
| 1305 | + | cmd.InitDefaultVersionFlag() // make possible 'version' flag to be shown | |||
| 1306 | + | CheckErr(cmd.Help()) | |||
| 1307 | + | } | |||
| 1308 | + | }, | |||
| 1309 | + | GroupID: c.helpCommandGroupID, | |||
| 1310 | + | } | |||
| 1311 | + | } | |||
| 1312 | + | c.RemoveCommand(c.helpCommand) | |||
| 1313 | + | c.AddCommand(c.helpCommand) | |||
| 1314 | + | } | |||
| 1315 | + | ||||
| 1316 | + | // ResetCommands delete parent, subcommand and help command from c. | |||
| 1317 | + | func (c *Command) ResetCommands() { | |||
| 1318 | + | c.parent = nil | |||
| 1319 | + | c.commands = nil | |||
| 1320 | + | c.helpCommand = nil | |||
| 1321 | + | c.parentsPflags = nil | |||
| 1322 | + | } | |||
| 1323 | + | ||||
| 1324 | + | // Sorts commands by their names. | |||
| 1325 | + | type commandSorterByName []*Command | |||
| 1326 | + | ||||
| 1327 | + | func (c commandSorterByName) Len() int { return len(c) } | |||
| 1328 | + | func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] } | |||
| 1329 | + | func (c commandSorterByName) Less(i, j int) bool { return c[i].Name() < c[j].Name() } | |||
| 1330 | + | ||||
| 1331 | + | // Commands returns a sorted slice of child commands. | |||
| 1332 | + | func (c *Command) Commands() []*Command { | |||
| 1333 | + | // do not sort commands if it already sorted or sorting was disabled | |||
| 1334 | + | if EnableCommandSorting && !c.commandsAreSorted { | |||
| 1335 | + | sort.Sort(commandSorterByName(c.commands)) | |||
| 1336 | + | c.commandsAreSorted = true | |||
| 1337 | + | } | |||
| 1338 | + | return c.commands | |||
| 1339 | + | } | |||
| 1340 | + | ||||
| 1341 | + | // AddCommand adds one or more commands to this parent command. | |||
| 1342 | + | func (c *Command) AddCommand(cmds ...*Command) { | |||
| 1343 | + | for i, x := range cmds { | |||
| 1344 | + | if cmds[i] == c { | |||
| 1345 | + | panic("Command can't be a child of itself") | |||
| 1346 | + | } | |||
| 1347 | + | cmds[i].parent = c | |||
| 1348 | + | // update max lengths | |||
| 1349 | + | usageLen := len(x.Use) | |||
| 1350 | + | if usageLen > c.commandsMaxUseLen { | |||
| 1351 | + | c.commandsMaxUseLen = usageLen | |||
| 1352 | + | } | |||
| 1353 | + | commandPathLen := len(x.CommandPath()) | |||
| 1354 | + | if commandPathLen > c.commandsMaxCommandPathLen { | |||
| 1355 | + | c.commandsMaxCommandPathLen = commandPathLen | |||
| 1356 | + | } | |||
| 1357 | + | nameLen := len(x.Name()) | |||
| 1358 | + | if nameLen > c.commandsMaxNameLen { | |||
| 1359 | + | c.commandsMaxNameLen = nameLen | |||
| 1360 | + | } | |||
| 1361 | + | // If global normalization function exists, update all children | |||
| 1362 | + | if c.globNormFunc != nil { | |||
| 1363 | + | x.SetGlobalNormalizationFunc(c.globNormFunc) | |||
| 1364 | + | } | |||
| 1365 | + | c.commands = append(c.commands, x) | |||
| 1366 | + | c.commandsAreSorted = false | |||
| 1367 | + | } | |||
| 1368 | + | } | |||
| 1369 | + | ||||
| 1370 | + | // Groups returns a slice of child command groups. | |||
| 1371 | + | func (c *Command) Groups() []*Group { | |||
| 1372 | + | return c.commandgroups | |||
| 1373 | + | } | |||
| 1374 | + | ||||
| 1375 | + | // AllChildCommandsHaveGroup returns if all subcommands are assigned to a group | |||
| 1376 | + | func (c *Command) AllChildCommandsHaveGroup() bool { | |||
| 1377 | + | for _, sub := range c.commands { | |||
| 1378 | + | if (sub.IsAvailableCommand() || sub == c.helpCommand) && sub.GroupID == "" { | |||
| 1379 | + | return false | |||
| 1380 | + | } | |||
| 1381 | + | } | |||
| 1382 | + | return true | |||
| 1383 | + | } | |||
| 1384 | + | ||||
| 1385 | + | // ContainsGroup return if groupID exists in the list of command groups. | |||
| 1386 | + | func (c *Command) ContainsGroup(groupID string) bool { | |||
| 1387 | + | for _, x := range c.commandgroups { | |||
| 1388 | + | if x.ID == groupID { | |||
| 1389 | + | return true | |||
| 1390 | + | } | |||
| 1391 | + | } | |||
| 1392 | + | return false | |||
| 1393 | + | } | |||
| 1394 | + | ||||
| 1395 | + | // AddGroup adds one or more command groups to this parent command. | |||
| 1396 | + | func (c *Command) AddGroup(groups ...*Group) { | |||
| 1397 | + | c.commandgroups = append(c.commandgroups, groups...) | |||
| 1398 | + | } | |||
| 1399 | + | ||||
| 1400 | + | // RemoveCommand removes one or more commands from a parent command. | |||
| 1401 | + | func (c *Command) RemoveCommand(cmds ...*Command) { | |||
| 1402 | + | commands := []*Command{} | |||
| 1403 | + | main: | |||
| 1404 | + | for _, command := range c.commands { | |||
| 1405 | + | for _, cmd := range cmds { | |||
| 1406 | + | if command == cmd { | |||
| 1407 | + | command.parent = nil | |||
| 1408 | + | continue main | |||
| 1409 | + | } | |||
| 1410 | + | } | |||
| 1411 | + | commands = append(commands, command) | |||
| 1412 | + | } | |||
| 1413 | + | c.commands = commands | |||
| 1414 | + | // recompute all lengths | |||
| 1415 | + | c.commandsMaxUseLen = 0 | |||
| 1416 | + | c.commandsMaxCommandPathLen = 0 | |||
| 1417 | + | c.commandsMaxNameLen = 0 | |||
| 1418 | + | for _, command := range c.commands { | |||
| 1419 | + | usageLen := len(command.Use) | |||
| 1420 | + | if usageLen > c.commandsMaxUseLen { | |||
| 1421 | + | c.commandsMaxUseLen = usageLen | |||
| 1422 | + | } | |||
| 1423 | + | commandPathLen := len(command.CommandPath()) | |||
| 1424 | + | if commandPathLen > c.commandsMaxCommandPathLen { | |||
| 1425 | + | c.commandsMaxCommandPathLen = commandPathLen | |||
| 1426 | + | } | |||
| 1427 | + | nameLen := len(command.Name()) | |||
| 1428 | + | if nameLen > c.commandsMaxNameLen { | |||
| 1429 | + | c.commandsMaxNameLen = nameLen | |||
| 1430 | + | } | |||
| 1431 | + | } | |||
| 1432 | + | } | |||
| 1433 | + | ||||
| 1434 | + | // Print is a convenience method to Print to the defined output, fallback to Stderr if not set. | |||
| 1435 | + | func (c *Command) Print(i ...interface{}) { | |||
| 1436 | + | fmt.Fprint(c.OutOrStderr(), i...) | |||
| 1437 | + | } | |||
| 1438 | + | ||||
| 1439 | + | // Println is a convenience method to Println to the defined output, fallback to Stderr if not set. | |||
| 1440 | + | func (c *Command) Println(i ...interface{}) { | |||
| 1441 | + | c.Print(fmt.Sprintln(i...)) | |||
| 1442 | + | } | |||
| 1443 | + | ||||
| 1444 | + | // Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set. | |||
| 1445 | + | func (c *Command) Printf(format string, i ...interface{}) { | |||
| 1446 | + | c.Print(fmt.Sprintf(format, i...)) | |||
| 1447 | + | } | |||
| 1448 | + | ||||
| 1449 | + | // PrintErr is a convenience method to Print to the defined Err output, fallback to Stderr if not set. | |||
| 1450 | + | func (c *Command) PrintErr(i ...interface{}) { | |||
| 1451 | + | fmt.Fprint(c.ErrOrStderr(), i...) | |||
| 1452 | + | } | |||
| 1453 | + | ||||
| 1454 | + | // PrintErrln is a convenience method to Println to the defined Err output, fallback to Stderr if not set. | |||
| 1455 | + | func (c *Command) PrintErrln(i ...interface{}) { | |||
| 1456 | + | c.PrintErr(fmt.Sprintln(i...)) | |||
| 1457 | + | } | |||
| 1458 | + | ||||
| 1459 | + | // PrintErrf is a convenience method to Printf to the defined Err output, fallback to Stderr if not set. | |||
| 1460 | + | func (c *Command) PrintErrf(format string, i ...interface{}) { | |||
| 1461 | + | c.PrintErr(fmt.Sprintf(format, i...)) | |||
| 1462 | + | } | |||
| 1463 | + | ||||
| 1464 | + | // CommandPath returns the full path to this command. | |||
| 1465 | + | func (c *Command) CommandPath() string { | |||
| 1466 | + | if c.HasParent() { | |||
| 1467 | + | return c.Parent().CommandPath() + " " + c.Name() | |||
| 1468 | + | } | |||
| 1469 | + | return c.DisplayName() | |||
| 1470 | + | } | |||
| 1471 | + | ||||
| 1472 | + | // DisplayName returns the name to display in help text. Returns command Name() | |||
| 1473 | + | // If CommandDisplayNameAnnoation is not set | |||
| 1474 | + | func (c *Command) DisplayName() string { | |||
| 1475 | + | if displayName, ok := c.Annotations[CommandDisplayNameAnnotation]; ok { | |||
| 1476 | + | return displayName | |||
| 1477 | + | } | |||
| 1478 | + | return c.Name() | |||
| 1479 | + | } | |||
| 1480 | + | ||||
| 1481 | + | // UseLine puts out the full usage for a given command (including parents). | |||
| 1482 | + | func (c *Command) UseLine() string { | |||
| 1483 | + | var useline string | |||
| 1484 | + | use := strings.Replace(c.Use, c.Name(), c.DisplayName(), 1) | |||
| 1485 | + | if c.HasParent() { | |||
| 1486 | + | useline = c.parent.CommandPath() + " " + use | |||
| 1487 | + | } else { | |||
| 1488 | + | useline = use | |||
| 1489 | + | } | |||
| 1490 | + | if c.DisableFlagsInUseLine { | |||
| 1491 | + | return useline | |||
| 1492 | + | } | |||
| 1493 | + | if c.HasAvailableFlags() && !strings.Contains(useline, "[flags]") { | |||
| 1494 | + | useline += " [flags]" | |||
| 1495 | + | } | |||
| 1496 | + | return useline | |||
| 1497 | + | } | |||
| 1498 | + | ||||
| 1499 | + | // DebugFlags used to determine which flags have been assigned to which commands | |||
| 1500 | + | // and which persist. | |||
| 1501 | + | func (c *Command) DebugFlags() { | |||
| 1502 | + | c.Println("DebugFlags called on", c.Name()) | |||
| 1503 | + | var debugflags func(*Command) | |||
| 1504 | + | ||||
| 1505 | + | debugflags = func(x *Command) { | |||
| 1506 | + | if x.HasFlags() || x.HasPersistentFlags() { | |||
| 1507 | + | c.Println(x.Name()) | |||
| 1508 | + | } | |||
| 1509 | + | if x.HasFlags() { | |||
| 1510 | + | x.flags.VisitAll(func(f *flag.Flag) { | |||
| 1511 | + | if x.HasPersistentFlags() && x.persistentFlag(f.Name) != nil { | |||
| 1512 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [LP]") | |||
| 1513 | + | } else { | |||
| 1514 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [L]") | |||
| 1515 | + | } | |||
| 1516 | + | }) | |||
| 1517 | + | } | |||
| 1518 | + | if x.HasPersistentFlags() { | |||
| 1519 | + | x.pflags.VisitAll(func(f *flag.Flag) { | |||
| 1520 | + | if x.HasFlags() { | |||
| 1521 | + | if x.flags.Lookup(f.Name) == nil { | |||
| 1522 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [P]") | |||
| 1523 | + | } | |||
| 1524 | + | } else { | |||
| 1525 | + | c.Println(" -"+f.Shorthand+",", "--"+f.Name, "["+f.DefValue+"]", "", f.Value, " [P]") | |||
| 1526 | + | } | |||
| 1527 | + | }) | |||
| 1528 | + | } | |||
| 1529 | + | c.Println(x.flagErrorBuf) | |||
| 1530 | + | if x.HasSubCommands() { | |||
| 1531 | + | for _, y := range x.commands { | |||
| 1532 | + | debugflags(y) | |||
| 1533 | + | } | |||
| 1534 | + | } | |||
| 1535 | + | } | |||
| 1536 | + | ||||
| 1537 | + | debugflags(c) | |||
| 1538 | + | } | |||
| 1539 | + | ||||
| 1540 | + | // Name returns the command's name: the first word in the use line. | |||
| 1541 | + | func (c *Command) Name() string { | |||
| 1542 | + | name := c.Use | |||
| 1543 | + | i := strings.Index(name, " ") | |||
| 1544 | + | if i >= 0 { | |||
| 1545 | + | name = name[:i] | |||
| 1546 | + | } | |||
| 1547 | + | return name | |||
| 1548 | + | } | |||
| 1549 | + | ||||
| 1550 | + | // HasAlias determines if a given string is an alias of the command. | |||
| 1551 | + | func (c *Command) HasAlias(s string) bool { | |||
| 1552 | + | for _, a := range c.Aliases { | |||
| 1553 | + | if commandNameMatches(a, s) { | |||
| 1554 | + | return true | |||
| 1555 | + | } | |||
| 1556 | + | } | |||
| 1557 | + | return false | |||
| 1558 | + | } | |||
| 1559 | + | ||||
| 1560 | + | // CalledAs returns the command name or alias that was used to invoke | |||
| 1561 | + | // this command or an empty string if the command has not been called. | |||
| 1562 | + | func (c *Command) CalledAs() string { | |||
| 1563 | + | if c.commandCalledAs.called { | |||
| 1564 | + | return c.commandCalledAs.name | |||
| 1565 | + | } | |||
| 1566 | + | return "" | |||
| 1567 | + | } | |||
| 1568 | + | ||||
| 1569 | + | // hasNameOrAliasPrefix returns true if the Name or any of aliases start | |||
| 1570 | + | // with prefix | |||
| 1571 | + | func (c *Command) hasNameOrAliasPrefix(prefix string) bool { | |||
| 1572 | + | if strings.HasPrefix(c.Name(), prefix) { | |||
| 1573 | + | c.commandCalledAs.name = c.Name() | |||
| 1574 | + | return true | |||
| 1575 | + | } | |||
| 1576 | + | for _, alias := range c.Aliases { | |||
| 1577 | + | if strings.HasPrefix(alias, prefix) { | |||
| 1578 | + | c.commandCalledAs.name = alias | |||
| 1579 | + | return true | |||
| 1580 | + | } | |||
| 1581 | + | } | |||
| 1582 | + | return false | |||
| 1583 | + | } | |||
| 1584 | + | ||||
| 1585 | + | // NameAndAliases returns a list of the command name and all aliases | |||
| 1586 | + | func (c *Command) NameAndAliases() string { | |||
| 1587 | + | return strings.Join(append([]string{c.Name()}, c.Aliases...), ", ") | |||
| 1588 | + | } | |||
| 1589 | + | ||||
| 1590 | + | // HasExample determines if the command has example. | |||
| 1591 | + | func (c *Command) HasExample() bool { | |||
| 1592 | + | return len(c.Example) > 0 | |||
| 1593 | + | } | |||
| 1594 | + | ||||
| 1595 | + | // Runnable determines if the command is itself runnable. | |||
| 1596 | + | func (c *Command) Runnable() bool { | |||
| 1597 | + | return c.Run != nil || c.RunE != nil | |||
| 1598 | + | } | |||
| 1599 | + | ||||
| 1600 | + | // HasSubCommands determines if the command has children commands. | |||
| 1601 | + | func (c *Command) HasSubCommands() bool { | |||
| 1602 | + | return len(c.commands) > 0 | |||
| 1603 | + | } | |||
| 1604 | + | ||||
| 1605 | + | // IsAvailableCommand determines if a command is available as a non-help command | |||
| 1606 | + | // (this includes all non deprecated/hidden commands). | |||
| 1607 | + | func (c *Command) IsAvailableCommand() bool { | |||
| 1608 | + | if len(c.Deprecated) != 0 || c.Hidden { | |||
| 1609 | + | return false | |||
| 1610 | + | } | |||
| 1611 | + | ||||
| 1612 | + | if c.HasParent() && c.Parent().helpCommand == c { | |||
| 1613 | + | return false | |||
| 1614 | + | } | |||
| 1615 | + | ||||
| 1616 | + | if c.Runnable() || c.HasAvailableSubCommands() { | |||
| 1617 | + | return true | |||
| 1618 | + | } | |||
| 1619 | + | ||||
| 1620 | + | return false | |||
| 1621 | + | } | |||
| 1622 | + | ||||
| 1623 | + | // IsAdditionalHelpTopicCommand determines if a command is an additional | |||
| 1624 | + | // help topic command; additional help topic command is determined by the | |||
| 1625 | + | // fact that it is NOT runnable/hidden/deprecated, and has no sub commands that | |||
| 1626 | + | // are runnable/hidden/deprecated. | |||
| 1627 | + | // Concrete example: https://github.com/spf13/cobra/issues/393#issuecomment-282741924. | |||
| 1628 | + | func (c *Command) IsAdditionalHelpTopicCommand() bool { | |||
| 1629 | + | // if a command is runnable, deprecated, or hidden it is not a 'help' command | |||
| 1630 | + | if c.Runnable() || len(c.Deprecated) != 0 || c.Hidden { | |||
| 1631 | + | return false | |||
| 1632 | + | } | |||
| 1633 | + | ||||
| 1634 | + | // if any non-help sub commands are found, the command is not a 'help' command | |||
| 1635 | + | for _, sub := range c.commands { | |||
| 1636 | + | if !sub.IsAdditionalHelpTopicCommand() { | |||
| 1637 | + | return false | |||
| 1638 | + | } | |||
| 1639 | + | } | |||
| 1640 | + | ||||
| 1641 | + | // the command either has no sub commands, or no non-help sub commands | |||
| 1642 | + | return true | |||
| 1643 | + | } | |||
| 1644 | + | ||||
| 1645 | + | // HasHelpSubCommands determines if a command has any available 'help' sub commands | |||
| 1646 | + | // that need to be shown in the usage/help default template under 'additional help | |||
| 1647 | + | // topics'. | |||
| 1648 | + | func (c *Command) HasHelpSubCommands() bool { | |||
| 1649 | + | // return true on the first found available 'help' sub command | |||
| 1650 | + | for _, sub := range c.commands { | |||
| 1651 | + | if sub.IsAdditionalHelpTopicCommand() { | |||
| 1652 | + | return true | |||
| 1653 | + | } | |||
| 1654 | + | } | |||
| 1655 | + | ||||
| 1656 | + | // the command either has no sub commands, or no available 'help' sub commands | |||
| 1657 | + | return false | |||
| 1658 | + | } | |||
| 1659 | + | ||||
| 1660 | + | // HasAvailableSubCommands determines if a command has available sub commands that | |||
| 1661 | + | // need to be shown in the usage/help default template under 'available commands'. | |||
| 1662 | + | func (c *Command) HasAvailableSubCommands() bool { | |||
| 1663 | + | // return true on the first found available (non deprecated/help/hidden) | |||
| 1664 | + | // sub command | |||
| 1665 | + | for _, sub := range c.commands { | |||
| 1666 | + | if sub.IsAvailableCommand() { | |||
| 1667 | + | return true | |||
| 1668 | + | } | |||
| 1669 | + | } | |||
| 1670 | + | ||||
| 1671 | + | // the command either has no sub commands, or no available (non deprecated/help/hidden) | |||
| 1672 | + | // sub commands | |||
| 1673 | + | return false | |||
| 1674 | + | } | |||
| 1675 | + | ||||
| 1676 | + | // HasParent determines if the command is a child command. | |||
| 1677 | + | func (c *Command) HasParent() bool { | |||
| 1678 | + | return c.parent != nil | |||
| 1679 | + | } | |||
| 1680 | + | ||||
| 1681 | + | // GlobalNormalizationFunc returns the global normalization function or nil if it doesn't exist. | |||
| 1682 | + | func (c *Command) GlobalNormalizationFunc() func(f *flag.FlagSet, name string) flag.NormalizedName { | |||
| 1683 | + | return c.globNormFunc | |||
| 1684 | + | } | |||
| 1685 | + | ||||
| 1686 | + | // Flags returns the complete FlagSet that applies | |||
| 1687 | + | // to this command (local and persistent declared here and by all parents). | |||
| 1688 | + | func (c *Command) Flags() *flag.FlagSet { | |||
| 1689 | + | if c.flags == nil { | |||
| 1690 | + | c.flags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1691 | + | if c.flagErrorBuf == nil { | |||
| 1692 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1693 | + | } | |||
| 1694 | + | c.flags.SetOutput(c.flagErrorBuf) | |||
| 1695 | + | } | |||
| 1696 | + | ||||
| 1697 | + | return c.flags | |||
| 1698 | + | } | |||
| 1699 | + | ||||
| 1700 | + | // LocalNonPersistentFlags are flags specific to this command which will NOT persist to subcommands. | |||
| 1701 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |||
| 1702 | + | func (c *Command) LocalNonPersistentFlags() *flag.FlagSet { | |||
| 1703 | + | persistentFlags := c.PersistentFlags() | |||
| 1704 | + | ||||
| 1705 | + | out := flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1706 | + | c.LocalFlags().VisitAll(func(f *flag.Flag) { | |||
| 1707 | + | if persistentFlags.Lookup(f.Name) == nil { | |||
| 1708 | + | out.AddFlag(f) | |||
| 1709 | + | } | |||
| 1710 | + | }) | |||
| 1711 | + | return out | |||
| 1712 | + | } | |||
| 1713 | + | ||||
| 1714 | + | // LocalFlags returns the local FlagSet specifically set in the current command. | |||
| 1715 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |||
| 1716 | + | func (c *Command) LocalFlags() *flag.FlagSet { | |||
| 1717 | + | c.mergePersistentFlags() | |||
| 1718 | + | ||||
| 1719 | + | if c.lflags == nil { | |||
| 1720 | + | c.lflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1721 | + | if c.flagErrorBuf == nil { | |||
| 1722 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1723 | + | } | |||
| 1724 | + | c.lflags.SetOutput(c.flagErrorBuf) | |||
| 1725 | + | } | |||
| 1726 | + | c.lflags.SortFlags = c.Flags().SortFlags | |||
| 1727 | + | if c.globNormFunc != nil { | |||
| 1728 | + | c.lflags.SetNormalizeFunc(c.globNormFunc) | |||
| 1729 | + | } | |||
| 1730 | + | ||||
| 1731 | + | addToLocal := func(f *flag.Flag) { | |||
| 1732 | + | // Add the flag if it is not a parent PFlag, or it shadows a parent PFlag | |||
| 1733 | + | if c.lflags.Lookup(f.Name) == nil && f != c.parentsPflags.Lookup(f.Name) { | |||
| 1734 | + | c.lflags.AddFlag(f) | |||
| 1735 | + | } | |||
| 1736 | + | } | |||
| 1737 | + | c.Flags().VisitAll(addToLocal) | |||
| 1738 | + | c.PersistentFlags().VisitAll(addToLocal) | |||
| 1739 | + | return c.lflags | |||
| 1740 | + | } | |||
| 1741 | + | ||||
| 1742 | + | // InheritedFlags returns all flags which were inherited from parent commands. | |||
| 1743 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |||
| 1744 | + | func (c *Command) InheritedFlags() *flag.FlagSet { | |||
| 1745 | + | c.mergePersistentFlags() | |||
| 1746 | + | ||||
| 1747 | + | if c.iflags == nil { | |||
| 1748 | + | c.iflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1749 | + | if c.flagErrorBuf == nil { | |||
| 1750 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1751 | + | } | |||
| 1752 | + | c.iflags.SetOutput(c.flagErrorBuf) | |||
| 1753 | + | } | |||
| 1754 | + | ||||
| 1755 | + | local := c.LocalFlags() | |||
| 1756 | + | if c.globNormFunc != nil { | |||
| 1757 | + | c.iflags.SetNormalizeFunc(c.globNormFunc) | |||
| 1758 | + | } | |||
| 1759 | + | ||||
| 1760 | + | c.parentsPflags.VisitAll(func(f *flag.Flag) { | |||
| 1761 | + | if c.iflags.Lookup(f.Name) == nil && local.Lookup(f.Name) == nil { | |||
| 1762 | + | c.iflags.AddFlag(f) | |||
| 1763 | + | } | |||
| 1764 | + | }) | |||
| 1765 | + | return c.iflags | |||
| 1766 | + | } | |||
| 1767 | + | ||||
| 1768 | + | // NonInheritedFlags returns all flags which were not inherited from parent commands. | |||
| 1769 | + | // This function does not modify the flags of the current command, it's purpose is to return the current state. | |||
| 1770 | + | func (c *Command) NonInheritedFlags() *flag.FlagSet { | |||
| 1771 | + | return c.LocalFlags() | |||
| 1772 | + | } | |||
| 1773 | + | ||||
| 1774 | + | // PersistentFlags returns the persistent FlagSet specifically set in the current command. | |||
| 1775 | + | func (c *Command) PersistentFlags() *flag.FlagSet { | |||
| 1776 | + | if c.pflags == nil { | |||
| 1777 | + | c.pflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1778 | + | if c.flagErrorBuf == nil { | |||
| 1779 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1780 | + | } | |||
| 1781 | + | c.pflags.SetOutput(c.flagErrorBuf) | |||
| 1782 | + | } | |||
| 1783 | + | return c.pflags | |||
| 1784 | + | } | |||
| 1785 | + | ||||
| 1786 | + | // ResetFlags deletes all flags from command. | |||
| 1787 | + | func (c *Command) ResetFlags() { | |||
| 1788 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1789 | + | c.flagErrorBuf.Reset() | |||
| 1790 | + | c.flags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1791 | + | c.flags.SetOutput(c.flagErrorBuf) | |||
| 1792 | + | c.pflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1793 | + | c.pflags.SetOutput(c.flagErrorBuf) | |||
| 1794 | + | ||||
| 1795 | + | c.lflags = nil | |||
| 1796 | + | c.iflags = nil | |||
| 1797 | + | c.parentsPflags = nil | |||
| 1798 | + | } | |||
| 1799 | + | ||||
| 1800 | + | // HasFlags checks if the command contains any flags (local plus persistent from the entire structure). | |||
| 1801 | + | func (c *Command) HasFlags() bool { | |||
| 1802 | + | return c.Flags().HasFlags() | |||
| 1803 | + | } | |||
| 1804 | + | ||||
| 1805 | + | // HasPersistentFlags checks if the command contains persistent flags. | |||
| 1806 | + | func (c *Command) HasPersistentFlags() bool { | |||
| 1807 | + | return c.PersistentFlags().HasFlags() | |||
| 1808 | + | } | |||
| 1809 | + | ||||
| 1810 | + | // HasLocalFlags checks if the command has flags specifically declared locally. | |||
| 1811 | + | func (c *Command) HasLocalFlags() bool { | |||
| 1812 | + | return c.LocalFlags().HasFlags() | |||
| 1813 | + | } | |||
| 1814 | + | ||||
| 1815 | + | // HasInheritedFlags checks if the command has flags inherited from its parent command. | |||
| 1816 | + | func (c *Command) HasInheritedFlags() bool { | |||
| 1817 | + | return c.InheritedFlags().HasFlags() | |||
| 1818 | + | } | |||
| 1819 | + | ||||
| 1820 | + | // HasAvailableFlags checks if the command contains any flags (local plus persistent from the entire | |||
| 1821 | + | // structure) which are not hidden or deprecated. | |||
| 1822 | + | func (c *Command) HasAvailableFlags() bool { | |||
| 1823 | + | return c.Flags().HasAvailableFlags() | |||
| 1824 | + | } | |||
| 1825 | + | ||||
| 1826 | + | // HasAvailablePersistentFlags checks if the command contains persistent flags which are not hidden or deprecated. | |||
| 1827 | + | func (c *Command) HasAvailablePersistentFlags() bool { | |||
| 1828 | + | return c.PersistentFlags().HasAvailableFlags() | |||
| 1829 | + | } | |||
| 1830 | + | ||||
| 1831 | + | // HasAvailableLocalFlags checks if the command has flags specifically declared locally which are not hidden | |||
| 1832 | + | // or deprecated. | |||
| 1833 | + | func (c *Command) HasAvailableLocalFlags() bool { | |||
| 1834 | + | return c.LocalFlags().HasAvailableFlags() | |||
| 1835 | + | } | |||
| 1836 | + | ||||
| 1837 | + | // HasAvailableInheritedFlags checks if the command has flags inherited from its parent command which are | |||
| 1838 | + | // not hidden or deprecated. | |||
| 1839 | + | func (c *Command) HasAvailableInheritedFlags() bool { | |||
| 1840 | + | return c.InheritedFlags().HasAvailableFlags() | |||
| 1841 | + | } | |||
| 1842 | + | ||||
| 1843 | + | // Flag climbs up the command tree looking for matching flag. | |||
| 1844 | + | func (c *Command) Flag(name string) (flag *flag.Flag) { | |||
| 1845 | + | flag = c.Flags().Lookup(name) | |||
| 1846 | + | ||||
| 1847 | + | if flag == nil { | |||
| 1848 | + | flag = c.persistentFlag(name) | |||
| 1849 | + | } | |||
| 1850 | + | ||||
| 1851 | + | return | |||
| 1852 | + | } | |||
| 1853 | + | ||||
| 1854 | + | // Recursively find matching persistent flag. | |||
| 1855 | + | func (c *Command) persistentFlag(name string) (flag *flag.Flag) { | |||
| 1856 | + | if c.HasPersistentFlags() { | |||
| 1857 | + | flag = c.PersistentFlags().Lookup(name) | |||
| 1858 | + | } | |||
| 1859 | + | ||||
| 1860 | + | if flag == nil { | |||
| 1861 | + | c.updateParentsPflags() | |||
| 1862 | + | flag = c.parentsPflags.Lookup(name) | |||
| 1863 | + | } | |||
| 1864 | + | return | |||
| 1865 | + | } | |||
| 1866 | + | ||||
| 1867 | + | // ParseFlags parses persistent flag tree and local flags. | |||
| 1868 | + | func (c *Command) ParseFlags(args []string) error { | |||
| 1869 | + | if c.DisableFlagParsing { | |||
| 1870 | + | return nil | |||
| 1871 | + | } | |||
| 1872 | + | ||||
| 1873 | + | if c.flagErrorBuf == nil { | |||
| 1874 | + | c.flagErrorBuf = new(bytes.Buffer) | |||
| 1875 | + | } | |||
| 1876 | + | beforeErrorBufLen := c.flagErrorBuf.Len() | |||
| 1877 | + | c.mergePersistentFlags() | |||
| 1878 | + | ||||
| 1879 | + | // do it here after merging all flags and just before parse | |||
| 1880 | + | c.Flags().ParseErrorsAllowlist = flag.ParseErrorsAllowlist(c.FParseErrWhitelist) | |||
| 1881 | + | ||||
| 1882 | + | err := c.Flags().Parse(args) | |||
| 1883 | + | // Print warnings if they occurred (e.g. deprecated flag messages). | |||
| 1884 | + | if c.flagErrorBuf.Len()-beforeErrorBufLen > 0 && err == nil { | |||
| 1885 | + | c.Print(c.flagErrorBuf.String()) | |||
| 1886 | + | } | |||
| 1887 | + | ||||
| 1888 | + | return err | |||
| 1889 | + | } | |||
| 1890 | + | ||||
| 1891 | + | // Parent returns a commands parent command. | |||
| 1892 | + | func (c *Command) Parent() *Command { | |||
| 1893 | + | return c.parent | |||
| 1894 | + | } | |||
| 1895 | + | ||||
| 1896 | + | // mergePersistentFlags merges c.PersistentFlags() to c.Flags() | |||
| 1897 | + | // and adds missing persistent flags of all parents. | |||
| 1898 | + | func (c *Command) mergePersistentFlags() { | |||
| 1899 | + | c.updateParentsPflags() | |||
| 1900 | + | c.Flags().AddFlagSet(c.PersistentFlags()) | |||
| 1901 | + | c.Flags().AddFlagSet(c.parentsPflags) | |||
| 1902 | + | } | |||
| 1903 | + | ||||
| 1904 | + | // updateParentsPflags updates c.parentsPflags by adding | |||
| 1905 | + | // new persistent flags of all parents. | |||
| 1906 | + | // If c.parentsPflags == nil, it makes new. | |||
| 1907 | + | func (c *Command) updateParentsPflags() { | |||
| 1908 | + | if c.parentsPflags == nil { | |||
| 1909 | + | c.parentsPflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError) | |||
| 1910 | + | c.parentsPflags.SetOutput(c.flagErrorBuf) | |||
| 1911 | + | c.parentsPflags.SortFlags = false | |||
| 1912 | + | } | |||
| 1913 | + | ||||
| 1914 | + | if c.globNormFunc != nil { | |||
| 1915 | + | c.parentsPflags.SetNormalizeFunc(c.globNormFunc) | |||
| 1916 | + | } | |||
| 1917 | + | ||||
| 1918 | + | c.Root().PersistentFlags().AddFlagSet(flag.CommandLine) | |||
| 1919 | + | ||||
| 1920 | + | c.VisitParents(func(parent *Command) { | |||
| 1921 | + | c.parentsPflags.AddFlagSet(parent.PersistentFlags()) | |||
| 1922 | + | }) | |||
| 1923 | + | } | |||
| 1924 | + | ||||
| 1925 | + | // commandNameMatches checks if two command names are equal | |||
| 1926 | + | // taking into account case sensitivity according to | |||
| 1927 | + | // EnableCaseInsensitive global configuration. | |||
| 1928 | + | func commandNameMatches(s string, t string) bool { | |||
| 1929 | + | if EnableCaseInsensitive { | |||
| 1930 | + | return strings.EqualFold(s, t) | |||
| 1931 | + | } | |||
| 1932 | + | ||||
| 1933 | + | return s == t | |||
| 1934 | + | } | |||
| 1935 | + | ||||
| 1936 | + | // tmplFunc holds a template and a function that will execute said template. | |||
| 1937 | + | type tmplFunc struct { | |||
| 1938 | + | tmpl string | |||
| 1939 | + | fn func(io.Writer, interface{}) error | |||
| 1940 | + | } | |||
| 1941 | + | ||||
| 1942 | + | const defaultUsageTemplate = `Usage:{{if .Runnable}} | |||
| 1943 | + | {{.UseLine}}{{end}}{{if .HasAvailableSubCommands}} | |||
| 1944 | + | {{.CommandPath}} [command]{{end}}{{if gt (len .Aliases) 0}} | |||
| 1945 | + | ||||
| 1946 | + | Aliases: | |||
| 1947 | + | {{.NameAndAliases}}{{end}}{{if .HasExample}} | |||
| 1948 | + | ||||
| 1949 | + | Examples: | |||
| 1950 | + | {{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{$cmds := .Commands}}{{if eq (len .Groups) 0}} | |||
| 1951 | + | ||||
| 1952 | + | Available Commands:{{range $cmds}}{{if (or .IsAvailableCommand (eq .Name "help"))}} | |||
| 1953 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{else}}{{range $group := .Groups}} | |||
| 1954 | + | ||||
| 1955 | + | {{.Title}}{{range $cmds}}{{if (and (eq .GroupID $group.ID) (or .IsAvailableCommand (eq .Name "help")))}} | |||
| 1956 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if not .AllChildCommandsHaveGroup}} | |||
| 1957 | + | ||||
| 1958 | + | Additional Commands:{{range $cmds}}{{if (and (eq .GroupID "") (or .IsAvailableCommand (eq .Name "help")))}} | |||
| 1959 | + | {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}} | |||
| 1960 | + | ||||
| 1961 | + | Flags: | |||
| 1962 | + | {{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}} | |||
| 1963 | + | ||||
| 1964 | + | Global Flags: | |||
| 1965 | + | {{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}} | |||
| 1966 | + | ||||
| 1967 | + | Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} | |||
| 1968 | + | {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}} | |||
| 1969 | + | ||||
| 1970 | + | Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} | |||
| 1971 | + | ` | |||
| 1972 | + | ||||
| 1973 | + | // defaultUsageFunc is equivalent to executing defaultUsageTemplate. The two should be changed in sync. | |||
| 1974 | + | func defaultUsageFunc(w io.Writer, in interface{}) error { | |||
| 1975 | + | c := in.(*Command) | |||
| 1976 | + | fmt.Fprint(w, "Usage:") | |||
| 1977 | + | if c.Runnable() { | |||
| 1978 | + | fmt.Fprintf(w, "\n %s", c.UseLine()) | |||
| 1979 | + | } | |||
| 1980 | + | if c.HasAvailableSubCommands() { | |||
| 1981 | + | fmt.Fprintf(w, "\n %s [command]", c.CommandPath()) | |||
| 1982 | + | } | |||
| 1983 | + | if len(c.Aliases) > 0 { | |||
| 1984 | + | fmt.Fprintf(w, "\n\nAliases:\n") | |||
| 1985 | + | fmt.Fprintf(w, " %s", c.NameAndAliases()) | |||
| 1986 | + | } | |||
| 1987 | + | if c.HasExample() { | |||
| 1988 | + | fmt.Fprintf(w, "\n\nExamples:\n") | |||
| 1989 | + | fmt.Fprintf(w, "%s", c.Example) | |||
| 1990 | + | } | |||
| 1991 | + | if c.HasAvailableSubCommands() { | |||
| 1992 | + | cmds := c.Commands() | |||
| 1993 | + | if len(c.Groups()) == 0 { | |||
| 1994 | + | fmt.Fprintf(w, "\n\nAvailable Commands:") | |||
| 1995 | + | for _, subcmd := range cmds { | |||
| 1996 | + | if subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName { | |||
| 1997 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |||
| 1998 | + | } | |||
| 1999 | + | } | |||
| 2000 | + | } else { | |||
| 2001 | + | for _, group := range c.Groups() { | |||
| 2002 | + | fmt.Fprintf(w, "\n\n%s", group.Title) | |||
| 2003 | + | for _, subcmd := range cmds { | |||
| 2004 | + | if subcmd.GroupID == group.ID && (subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName) { | |||
| 2005 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |||
| 2006 | + | } | |||
| 2007 | + | } | |||
| 2008 | + | } | |||
| 2009 | + | if !c.AllChildCommandsHaveGroup() { | |||
| 2010 | + | fmt.Fprintf(w, "\n\nAdditional Commands:") | |||
| 2011 | + | for _, subcmd := range cmds { | |||
| 2012 | + | if subcmd.GroupID == "" && (subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName) { | |||
| 2013 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.Name(), subcmd.NamePadding()), subcmd.Short) | |||
| 2014 | + | } | |||
| 2015 | + | } | |||
| 2016 | + | } | |||
| 2017 | + | } | |||
| 2018 | + | } | |||
| 2019 | + | if c.HasAvailableLocalFlags() { | |||
| 2020 | + | fmt.Fprintf(w, "\n\nFlags:\n") | |||
| 2021 | + | fmt.Fprint(w, trimRightSpace(c.LocalFlags().FlagUsages())) | |||
| 2022 | + | } | |||
| 2023 | + | if c.HasAvailableInheritedFlags() { | |||
| 2024 | + | fmt.Fprintf(w, "\n\nGlobal Flags:\n") | |||
| 2025 | + | fmt.Fprint(w, trimRightSpace(c.InheritedFlags().FlagUsages())) | |||
| 2026 | + | } | |||
| 2027 | + | if c.HasHelpSubCommands() { | |||
| 2028 | + | fmt.Fprintf(w, "\n\nAdditional help topics:") | |||
| 2029 | + | for _, subcmd := range c.Commands() { | |||
| 2030 | + | if subcmd.IsAdditionalHelpTopicCommand() { | |||
| 2031 | + | fmt.Fprintf(w, "\n %s %s", rpad(subcmd.CommandPath(), subcmd.CommandPathPadding()), subcmd.Short) | |||
| 2032 | + | } | |||
| 2033 | + | } | |||
| 2034 | + | } | |||
| 2035 | + | if c.HasAvailableSubCommands() { | |||
| 2036 | + | fmt.Fprintf(w, "\n\nUse \"%s [command] --help\" for more information about a command.", c.CommandPath()) | |||
| 2037 | + | } | |||
| 2038 | + | fmt.Fprintln(w) | |||
| 2039 | + | return nil | |||
| 2040 | + | } | |||
| 2041 | + | ||||
| 2042 | + | const defaultHelpTemplate = `{{with (or .Long .Short)}}{{. | trimTrailingWhitespaces}} | |||
| 2043 | + | ||||
| 2044 | + | {{end}}{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}` | |||
| 2045 | + | ||||
| 2046 | + | // defaultHelpFunc is equivalent to executing defaultHelpTemplate. The two should be changed in sync. | |||
| 2047 | + | func defaultHelpFunc(w io.Writer, in interface{}) error { | |||
| 2048 | + | c := in.(*Command) | |||
| 2049 | + | usage := c.Long | |||
| 2050 | + | if usage == "" { | |||
| 2051 | + | usage = c.Short | |||
| 2052 | + | } | |||
| 2053 | + | usage = trimRightSpace(usage) | |||
| 2054 | + | if usage != "" { | |||
| 2055 | + | fmt.Fprintln(w, usage) | |||
| 2056 | + | fmt.Fprintln(w) | |||
| 2057 | + | } | |||
| 2058 | + | if c.Runnable() || c.HasSubCommands() { | |||
| 2059 | + | fmt.Fprint(w, c.UsageString()) | |||
| 2060 | + | } | |||
| 2061 | + | return nil | |||
| 2062 | + | } | |||
| 2063 | + | ||||
| 2064 | + | const defaultVersionTemplate = `{{with .DisplayName}}{{printf "%s " .}}{{end}}{{printf "version %s" .Version}} | |||
| 2065 | + | ` | |||
| 2066 | + | ||||
| 2067 | + | // defaultVersionFunc is equivalent to executing defaultVersionTemplate. The two should be changed in sync. | |||
| 2068 | + | func defaultVersionFunc(w io.Writer, in interface{}) error { | |||
| 2069 | + | c := in.(*Command) | |||
| 2070 | + | _, err := fmt.Fprintf(w, "%s version %s\n", c.DisplayName(), c.Version) | |||
| 2071 | + | return err | |||
| 2072 | + | } | |||
A vendor/github.com/spf13/cobra/command_notwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command_win.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/completions.go +1020 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/man_docs.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/md_docs.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/rest_docs.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/util.go +52 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/yaml_docs.go +175 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/fish_completions.go +292 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/flag_groups.go +290 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/powershell_completions.go +350 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/shell_completions.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/zsh_completions.go +308 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.editorconfig +12 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.golangci.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.travis.yml +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/LICENSE +28 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/README.md +323 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool.go +94 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_func.go +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_slice.go +185 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bytes.go +209 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/count.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration.go +86 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/errors.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/flag.go +1289 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/func.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/golangflag.go +161 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int_slice.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip.go +97 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip_slice.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipmask.go +122 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet_slice.go +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string.go +80 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_array.go +125 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_slice.go +163 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int64.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_string.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/text.go +81 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint64.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint_slice.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.golangci.yaml +118 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamlignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamllint.yaml +6 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/Makefile +87 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/README.md +931 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/TROUBLESHOOTING.md +32 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/UPGRADE.md +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/encoding.go +181 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/experimental.go +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/file.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/finder.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flags.go +57 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.lock +255 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.nix +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/json/codec.go +17 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +16 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +14 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/logger.go +31 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/remote.go +259 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/util.go +211 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/viper.go +2077 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.codeclimate.yml +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.gitignore +11 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/README.md +91 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/Taskfile.yml +27 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/accessors.go +197 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/conversions.go +280 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/doc.go +66 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/map.go +214 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/mutations.go +77 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/security.go +12 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/tests.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific.go +346 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific_codegen.go +2261 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/value.go +159 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_compare.go +495 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go +866 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go +1723 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_order.go +81 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertions.go +2295 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/doc.go +50 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/errors.go +10 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/forward_assertions.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/http_assertions.go +165 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +24 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +36 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/doc.go +44 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/mock.go +1298 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/doc.go +31 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/forward_requirements.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go +2180 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go.tmpl +6 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go +1724 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/requirements.go +29 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env.invalid +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.gitignore +4 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.golangci.yaml +7 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/CHANGELOG.md +105 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/README.md +129 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/gotenv.go +409 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/.gitignore +9 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/README.md +139 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/caps.go +31 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/capvals.go +1525 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/color.go +88 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/dec.go +245 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/load.go +64 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/param.go +405 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/stack.go +48 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/terminfo.go +479 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.codecov.yml +15 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.gitignore +4 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/CHANGELOG.md +95 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/LICENSE.txt +19 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/Makefile +38 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/README.md +43 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error.go +646 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_post_go120.go +48 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_pre_go120.go +79 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/LICENSE +50 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/NOTICE +13 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/README.md +171 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/apic.go +747 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/decode.go +1018 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/emitterc.go +2054 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/encode.go +577 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/parserc.go +1274 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/readerc.go +434 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/resolve.go +326 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/scannerc.go +3040 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/sorter.go +134 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/writerc.go +48 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yaml.go +703 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlh.go +811 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlprivateh.go +198 -0 collapsed to keep the page light
A vendor/golang.org/x/image/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/image/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/draw.go +67 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/impl.go +8426 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/scale.go +525 -0 collapsed to keep the page light
A vendor/golang.org/x/image/math/f64/f64.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/print.go +184 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/read.go +962 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/rule.go +1951 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/work.go +333 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/module.go +840 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/pseudo.go +250 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/semver/semver.go +407 -0 collapsed to keep the page light
A vendor/golang.org/x/net/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/net/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/atom.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/table.go +785 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/const.go +111 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doc.go +122 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doctype.go +156 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/entity.go +2252 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/escape.go +379 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/foreign.go +221 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/iter.go +54 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/node.go +230 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/nodetype_string.go +31 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/parse.go +2378 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/render.go +316 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/token.go +1322 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/idna.go +880 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/punycode.go +220 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trie.go +51 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trieval.go +119 -0 collapsed to keep the page light
A vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
A vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff