From 71a5de9a7e9c5173e08ddc2eb9fe656818c93d75 Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 11 Mar 2024 13:51:40 +0100 Subject: [PATCH] update package path for carapace-sh --- .devcontainer/devcontainer.json | 8 +++- .github/workflows/doc.yml | 2 +- .github/workflows/docker.yml | 4 +- .github/workflows/go.yml | 4 +- .gitignore | 1 + Dockerfile | 2 +- README.md | 20 ++++----- action.go | 12 +++--- action_test.go | 8 ++-- batch_test.go | 2 +- carapace.go | 2 +- carapace_test.go | 4 +- command.go | 4 +- complete.go | 8 ++-- context.go | 10 ++--- defaultActions.go | 16 +++---- diff.go | 4 +- diff_test.go | 2 +- docker-compose.yml | 2 +- docs/book.toml | 4 +- docs/src/carapace.md | 4 +- docs/src/carapace/action.md | 2 +- docs/src/carapace/action/cache.md | 6 +-- docs/src/carapace/action/chdir.md | 2 +- docs/src/carapace/action/chdirF.md | 2 +- docs/src/carapace/action/filter.md | 2 +- docs/src/carapace/action/filterArgs.md | 2 +- docs/src/carapace/action/filterParts.md | 2 +- docs/src/carapace/action/invoke.md | 2 +- docs/src/carapace/action/list.md | 2 +- docs/src/carapace/action/multiParts.md | 2 +- docs/src/carapace/action/multiPartsP.md | 2 +- docs/src/carapace/action/noSpace.md | 2 +- docs/src/carapace/action/prefix.md | 2 +- docs/src/carapace/action/retain.md | 2 +- docs/src/carapace/action/shift.md | 2 +- docs/src/carapace/action/split.md | 2 +- docs/src/carapace/action/splitP.md | 2 +- docs/src/carapace/action/style.md | 4 +- docs/src/carapace/action/styleF.md | 4 +- docs/src/carapace/action/styleR.md | 4 +- docs/src/carapace/action/suffix.md | 2 +- docs/src/carapace/action/suppress.md | 2 +- docs/src/carapace/action/tag.md | 2 +- docs/src/carapace/action/tagF.md | 2 +- docs/src/carapace/action/timeout.md | 2 +- docs/src/carapace/action/uniqueList.md | 2 +- docs/src/carapace/action/uniqueListF.md | 2 +- docs/src/carapace/action/unless.md | 4 +- docs/src/carapace/action/usage.md | 2 +- docs/src/carapace/batch.md | 2 +- docs/src/carapace/context.md | 2 +- .../carapace/defaultActions/actionCallback.md | 2 +- .../carapace/defaultActions/actionCobra.md | 2 +- .../carapace/defaultActions/actionCommands.md | 2 +- .../defaultActions/actionDirectories.md | 2 +- .../defaultActions/actionExecCommand.md | 2 +- .../defaultActions/actionExecCommandE.md | 2 +- .../defaultActions/actionExecutables.md | 2 +- .../carapace/defaultActions/actionExecute.md | 2 +- .../carapace/defaultActions/actionFiles.md | 2 +- .../carapace/defaultActions/actionImport.md | 2 +- .../carapace/defaultActions/actionMessage.md | 2 +- .../defaultActions/actionMultiParts.md | 2 +- .../defaultActions/actionMultiPartsN.md | 2 +- .../defaultActions/actionPositional.md | 2 +- .../defaultActions/actionStyledValues.md | 4 +- .../actionStyledValuesDescribed.md | 4 +- .../carapace/defaultActions/actionStyles.md | 2 +- .../carapace/defaultActions/actionValues.md | 2 +- .../defaultActions/actionValuesDescribed.md | 2 +- docs/src/carapace/export.md | 2 +- docs/src/carapace/gen.md | 8 ++-- docs/src/carapace/gen/dashAnyCompletion.md | 2 +- docs/src/carapace/gen/dashCompletion.md | 2 +- docs/src/carapace/gen/flagCompletion.md | 2 +- .../carapace/gen/positionalAnyCompletion.md | 2 +- docs/src/carapace/gen/positionalCompletion.md | 2 +- docs/src/carapace/gen/preInvoke.md | 2 +- docs/src/carapace/gen/preRun.md | 2 +- docs/src/carapace/invokedAction.md | 2 +- docs/src/carapace/invokedAction/filter.md | 2 +- docs/src/carapace/invokedAction/merge.md | 2 +- docs/src/carapace/invokedAction/prefix.md | 2 +- docs/src/carapace/invokedAction/suffix.md | 2 +- docs/src/carapace/invokedAction/toA.md | 2 +- .../carapace/invokedAction/toMultiPartsA.md | 2 +- example-nonposix/cmd/root.go | 2 +- example-nonposix/cmd/root_test.go | 14 +++---- example-nonposix/go.mod | 10 ++--- example-nonposix/go.sum | 14 ++++--- example-nonposix/main.go | 2 +- example/cmd/_test_files/go.mod | 2 +- example/cmd/action.go | 4 +- example/cmd/action_test.go | 18 ++++---- example/cmd/chain.go | 2 +- example/cmd/chain_test.go | 8 ++-- example/cmd/compat.go | 2 +- example/cmd/compat_sub.go | 2 +- example/cmd/compat_sub_test.go | 6 +-- example/cmd/compat_test.go | 8 ++-- example/cmd/flag.go | 2 +- example/cmd/flag_disabled.go | 2 +- example/cmd/flag_disabled_test.go | 6 +-- example/cmd/group.go | 2 +- example/cmd/help_test.go | 8 ++-- example/cmd/interspersed.go | 2 +- example/cmd/interspersed_test.go | 8 ++-- example/cmd/modifier.go | 10 ++--- example/cmd/modifier_test.go | 42 +++++++++---------- example/cmd/multiparts.go | 4 +- example/cmd/multiparts_test.go | 8 ++-- example/cmd/root.go | 2 +- example/cmd/root_test.go | 12 +++--- example/cmd/special.go | 2 +- example/cmd/subcommand.go | 2 +- example/cmd/subcommand_alias.go | 2 +- example/cmd/subcommand_group.go | 2 +- example/cmd/subcommand_hidden.go | 2 +- example/cmd/subcommand_hidden_visible.go | 2 +- example/main.go | 2 +- example/main_test.go | 2 +- experimental.go | 6 +-- go.mod | 2 +- go.work.sum | 13 +----- internal/assert/assert.go | 6 +-- internal/cache/cache.go | 10 ++--- internal/common/group.go | 2 +- internal/common/message.go | 2 +- internal/common/value.go | 4 +- internal/config/config.go | 2 +- internal/env/env.go | 2 +- internal/export/export.go | 4 +- internal/log/log.go | 6 +-- internal/man/man.go | 2 +- internal/pflagfork/flag.go | 2 +- internal/shell/bash/action.go | 2 +- internal/shell/bash/snippet.go | 2 +- internal/shell/bash_ble/action.go | 2 +- internal/shell/bash_ble/snippet.go | 4 +- internal/shell/elvish/action.go | 6 +-- internal/shell/elvish/snippet.go | 2 +- internal/shell/export/action.go | 4 +- internal/shell/export/snippet.go | 2 +- internal/shell/fish/action.go | 2 +- internal/shell/fish/snippet.go | 2 +- internal/shell/ion/action.go | 2 +- internal/shell/nushell/action.go | 2 +- internal/shell/nushell/snippet.go | 2 +- internal/shell/nushell/style.go | 2 +- internal/shell/oil/action.go | 2 +- internal/shell/oil/snippet.go | 2 +- internal/shell/powershell/action.go | 6 +-- internal/shell/powershell/snippet.go | 2 +- internal/shell/shell.go | 32 +++++++------- internal/shell/tcsh/action.go | 2 +- internal/shell/tcsh/snippet.go | 2 +- internal/shell/xonsh/action.go | 2 +- internal/shell/xonsh/snippet.go | 2 +- internal/shell/xonsh/style.go | 2 +- internal/shell/zsh/action.go | 2 +- internal/shell/zsh/message.go | 4 +- internal/shell/zsh/namedDirectory.go | 2 +- internal/shell/zsh/snippet.go | 2 +- internal/shell/zsh/zstyle.go | 6 +-- internal/spec/spec.go | 2 +- internal/uid/uid_test.go | 2 +- internalActions.go | 8 ++-- invokedAction.go | 8 ++-- invokedAction_test.go | 2 +- log.go | 2 +- pkg/cache/cache.go | 4 +- pkg/condition/condition.go | 4 +- pkg/execlog/execlog.go | 4 +- pkg/ps/ps.go | 2 +- pkg/sandbox/sandbox.go | 10 ++--- pkg/sandbox/sandbox_test.go | 4 +- pkg/style/config.go | 2 +- pkg/style/path.go | 4 +- pkg/style/style.go | 2 +- pkg/x/x.go | 2 +- storage.go | 4 +- .../github.com/drone/envsubst/funcs.go | 2 +- .../github.com/drone/envsubst/template.go | 2 +- .../github.com/hexops/gotextdiff/diff.go | 2 +- .../hexops/gotextdiff/myers/diff.go | 4 +- traverse.go | 8 ++-- 187 files changed, 373 insertions(+), 375 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c9dc3b139..17c43debe 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "carapace", - "image": "ghcr.io/rsteube/carapace:v0.20.3", + "image": "ghcr.io/carapace-sh/carapace", "settings": { "terminal.integrated.shell.linux": "/bin/elvish" }, @@ -10,5 +10,9 @@ "containerEnv": { "TARGET": "/home/circleci/go/bin/example" }, - "onCreateCommand": [ "sh", "-c", "cd example && go install ."] + "onCreateCommand": [ + "sh", + "-c", + "cd example && go install ." + ] } diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index dc588f58a..eb66610b3 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -30,6 +30,6 @@ jobs: git config user.email rsteube@users.noreply.github.com git add . git commit -m "initial commit [ci skip]" - git push --force https://rsteube:${GITHUB_TOKEN}@github.com/rsteube/carapace.git master:gh-pages + git push --force https://rsteube:${GITHUB_TOKEN}@github.com/carapace-sh/carapace.git master:gh-pages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cea24abdf..c77af69b0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,5 +24,5 @@ jobs: run: | tag=latest [[ "$GITHUB_REF" =~ ^refs/tags/ ]] && tag="${GITHUB_REF/refs\/tags\//}" - docker build . --tag "ghcr.io/rsteube/carapace:${tag}" - docker push "ghcr.io/rsteube/carapace:${tag}" \ No newline at end of file + docker build . --tag "ghcr.io/carapace-sh/carapace:${tag}" + docker push "ghcr.io/carapace-sh/carapace:${tag}" diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8bf50bcc4..688031ff0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: run: go tool covdata textfmt -i .cover/ -o integration.cov - name: Filter coverage - run: sed -i '/^github.com\/rsteube\/carapace\/third_party/d' unit.cov integration.cov + run: sed -i '/^github.com\/carapace-sh\/carapace\/third_party/d' unit.cov integration.cov - name: "Check formatting" run: '[ "$(gofmt -d -s . | tee -a /dev/stderr)" = "" ]' @@ -64,4 +64,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 592ae4f2d..cb4656c0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ caraparse/caraparse .cover +dist docs/book example/cmd/_test_files/*.txt example/example diff --git a/Dockerfile b/Dockerfile index 6d5bcbce3..654b83146 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM golang:bookworm as base -LABEL org.opencontainers.image.source https://github.com/rsteube/carapace +LABEL org.opencontainers.image.source https://github.com/carapace-sh/carapace USER root FROM base as bat diff --git a/README.md b/README.md index 8967d887b..bd929645b 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ # carapace -[![PkgGoDev](https://pkg.go.dev/badge/github.com/rsteube/carapace)](https://pkg.go.dev/github.com/rsteube/carapace) -[![documentation](https://img.shields.io/badge/‌-documentation-blue?logo=gitbook)](https://rsteube.github.io/carapace/) -[![GoReportCard](https://goreportcard.com/badge/github.com/rsteube/carapace)](https://goreportcard.com/report/github.com/rsteube/carapace) -[![Coverage Status](https://coveralls.io/repos/github/rsteube/carapace/badge.svg?branch=master)](https://coveralls.io/github/rsteube/carapace?branch=master) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/carapace-sh/carapace)](https://pkg.go.dev/github.com/carapace-sh/carapace) +[![documentation](https://img.shields.io/badge/‌-documentation-blue?logo=gitbook)](https://carapace-sh.github.io/carapace/) +[![GoReportCard](https://goreportcard.com/badge/github.com/carapace-sh/carapace)](https://goreportcard.com/report/github.com/carapace-sh/carapace) +[![Coverage Status](https://coveralls.io/repos/github/carapace-sh/carapace/badge.svg?branch=master)](https://coveralls.io/github/carapace-sh/carapace?branch=master) Command argument completion generator for [cobra]. You can read more about it here: _[A pragmatic approach to shell completion](https://dev.to/rsteube/a-pragmatic-approach-to-shell-completion-4gp0)_. @@ -15,21 +15,21 @@ Supported shells: - [Bash](https://www.gnu.org/software/bash/) - [Elvish](https://elv.sh/) - [Fish](https://fishshell.com/) -- [Ion](https://doc.redox-os.org/ion-manual/) ([experimental](https://github.com/rsteube/carapace/issues/88)) +- [Ion](https://doc.redox-os.org/ion-manual/) ([experimental](https://github.com/carapace-sh/carapace/issues/88)) - [Nushell](https://www.nushell.sh/) - [Oil](http://www.oilshell.org/) - [Powershell](https://microsoft.com/powershell) -- [Tcsh](https://www.tcsh.org/) ([experimental](https://github.com/rsteube/carapace/issues/331)) +- [Tcsh](https://www.tcsh.org/) ([experimental](https://github.com/carapace-sh/carapace-sh/issues/331)) - [Xonsh](https://xon.sh/) - [Zsh](https://www.zsh.org/) ## Usage -Calling `carapace.Gen` on the root command is sufficient to enable completion using the [hidden command](https://rsteube.github.io/carapace/carapace/gen/hiddenSubcommand.html). +Calling `carapace.Gen` on the root command is sufficient to enable completion using the [hidden command](https://carapace-sh.github.io/carapace/carapace/gen/hiddenSubcommand.html). ```go import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" ) carapace.Gen(rootCmd) @@ -49,8 +49,8 @@ See [carapace-bin](https://github.com/rsteube/carapace-bin) for examples. - [carapace-bin](https://github.com/rsteube/carapace-bin) multi-shell multi-command argument completer - [carapace-bridge](https://github.com/rsteube/carapace-bridge) completion bridge -- [carapace-pflag](https://github.com/rsteube/carapace-pflag) Drop-in replacement for spf13/pflag with support for non-posix variants -- [carapace-shlex](https://github.com/rsteube/carapace-shlex) simple shell lexer +- [carapace-pflag](https://github.com/carapace-sh/carapace-pflag) Drop-in replacement for spf13/pflag with support for non-posix variants +- [carapace-shlex](https://github.com/carapace-sh/carapace-shlex) simple shell lexer - [carapace-spec](https://github.com/rsteube/carapace-spec) define simple completions using a spec file - [carapace-spec-clap](https://github.com/rsteube/carapace-spec-clap) spec generation for clap-rs/clap - [carapace-spec-kingpin](https://github.com/rsteube/carapace-spec-kingpin) spec generation for alecthomas/kingpin diff --git a/action.go b/action.go index 34c039c77..5d3b7f619 100644 --- a/action.go +++ b/action.go @@ -9,12 +9,12 @@ import ( "time" shlex "github.com/carapace-sh/carapace-shlex" - "github.com/rsteube/carapace/internal/cache" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/cache/key" - "github.com/rsteube/carapace/pkg/match" - "github.com/rsteube/carapace/pkg/style" - pkgtraverse "github.com/rsteube/carapace/pkg/traverse" + "github.com/carapace-sh/carapace/internal/cache" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/cache/key" + "github.com/carapace-sh/carapace/pkg/match" + "github.com/carapace-sh/carapace/pkg/style" + pkgtraverse "github.com/carapace-sh/carapace/pkg/traverse" ) // Action indicates how to complete a flag or positional argument. diff --git a/action_test.go b/action_test.go index 1a8c79e25..6cb43049e 100644 --- a/action_test.go +++ b/action_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/rsteube/carapace/internal/assert" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/assert" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" ) func init() { @@ -235,7 +235,7 @@ func TestActionExecCommand(t *testing.T) { ) assertEqual(t, - ActionValues("module github.com/rsteube/carapace\n").Invoke(Context{}), + ActionValues("module github.com/carapace-sh/carapace\n").Invoke(Context{}), ActionExecCommand("head", "-n1", "go.mod")(func(output []byte) Action { return ActionValues(string(output)) }).Invoke(Context{}), ) } diff --git a/batch_test.go b/batch_test.go index 307eb486e..fbb2482be 100644 --- a/batch_test.go +++ b/batch_test.go @@ -3,7 +3,7 @@ package carapace import ( "testing" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) func TestBatch(t *testing.T) { diff --git a/carapace.go b/carapace.go index 900691b89..f919ed7b6 100644 --- a/carapace.go +++ b/carapace.go @@ -4,7 +4,7 @@ package carapace import ( "os" - "github.com/rsteube/carapace/internal/shell" + "github.com/carapace-sh/carapace/internal/shell" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/carapace_test.go b/carapace_test.go index 28ea685e7..c8fb0e116 100644 --- a/carapace_test.go +++ b/carapace_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/rsteube/carapace/internal/assert" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/assert" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/command.go b/command.go index 4bd1ea8dc..9b2e661fa 100644 --- a/command.go +++ b/command.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/rsteube/carapace/internal/spec" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/spec" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" ) diff --git a/complete.go b/complete.go index b13ed4460..5c2da0237 100644 --- a/complete.go +++ b/complete.go @@ -3,10 +3,10 @@ package carapace import ( "os" - "github.com/rsteube/carapace/internal/config" - "github.com/rsteube/carapace/internal/shell/bash" - "github.com/rsteube/carapace/internal/shell/nushell" - "github.com/rsteube/carapace/pkg/ps" + "github.com/carapace-sh/carapace/internal/config" + "github.com/carapace-sh/carapace/internal/shell/bash" + "github.com/carapace-sh/carapace/internal/shell/nushell" + "github.com/carapace-sh/carapace/pkg/ps" "github.com/spf13/cobra" ) diff --git a/context.go b/context.go index 9be28d40f..b61b352ee 100644 --- a/context.go +++ b/context.go @@ -7,11 +7,11 @@ import ( "path/filepath" "strings" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/shell/zsh" - "github.com/rsteube/carapace/pkg/execlog" - "github.com/rsteube/carapace/pkg/util" - "github.com/rsteube/carapace/third_party/github.com/drone/envsubst" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/shell/zsh" + "github.com/carapace-sh/carapace/pkg/execlog" + "github.com/carapace-sh/carapace/pkg/util" + "github.com/carapace-sh/carapace/third_party/github.com/drone/envsubst" "github.com/spf13/cobra" ) diff --git a/defaultActions.go b/defaultActions.go index ace85cf31..846a4fb25 100644 --- a/defaultActions.go +++ b/defaultActions.go @@ -9,14 +9,14 @@ import ( "os/exec" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/config" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/export" - "github.com/rsteube/carapace/internal/man" - "github.com/rsteube/carapace/pkg/match" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/third_party/github.com/acarl005/stripansi" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/config" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/export" + "github.com/carapace-sh/carapace/internal/man" + "github.com/carapace-sh/carapace/pkg/match" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/third_party/github.com/acarl005/stripansi" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/diff.go b/diff.go index b2021d97d..2b31874df 100644 --- a/diff.go +++ b/diff.go @@ -1,8 +1,8 @@ package carapace import ( - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" ) // Diff compares values of two actions. diff --git a/diff_test.go b/diff_test.go index e3487474b..950776630 100644 --- a/diff_test.go +++ b/diff_test.go @@ -3,7 +3,7 @@ package carapace import ( "testing" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" ) func TestDiff(t *testing.T) { diff --git a/docker-compose.yml b/docker-compose.yml index 43ca54412..cb2d147aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3' services: build: &base build: . - image: ghcr.io/rsteube/carapace + image: ghcr.io/carapace-sh/carapace command: sh -c 'cd /carapace/example && go build -buildvcs=false .' user: 1000:1000 environment: diff --git a/docs/book.toml b/docs/book.toml index 1f91ae2c9..ab5e10e0e 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -11,8 +11,8 @@ default-theme = "Latte" preferred-dark-theme = "Mocha" additional-css = ["asciinema/asciinema-player.css", "./theme/catppuccin.css"] additional-js = ["asciinema/asciinema-player.min.js", "asciinema/load.js"] -git-repository-url = "https://github.com/rsteube/carapace" -edit-url-template = "https://github.com/rsteube/carapace/edit/master/docs/{path}" +git-repository-url = "https://github.com/carapace-sh/carapace" +edit-url-template = "https://github.com/carapace-sh/carapace/edit/master/docs/{path}" [output.html.fold] enable = true diff --git a/docs/src/carapace.md b/docs/src/carapace.md index caee0ae07..850004f31 100644 --- a/docs/src/carapace.md +++ b/docs/src/carapace.md @@ -5,12 +5,12 @@ - [Bash](https://www.gnu.org/software/bash/) - [Elvish](https://elv.sh/) - [Fish](https://fishshell.com/) -- [Ion](https://doc.redox-os.org/ion-manual/) ([experimental](https://github.com/rsteube/carapace/issues/88)) +- [Ion](https://doc.redox-os.org/ion-manual/) ([experimental](https://github.com/carapace-sh/carapace/issues/88)) - [Nushell](https://www.nushell.sh/) - [Oil](http://www.oilshell.org/) - [Powershell](https://microsoft.com/powershell) - [Xonsh](https://xon.sh/) - [Zsh](https://www.zsh.org/) -[carapace]:https://github.com/rsteube/carapace +[carapace]:https://github.com/carapace-sh/carapace [spf13/cobra]:https://github.com/spf13/cobra diff --git a/docs/src/carapace/action.md b/docs/src/carapace/action.md index 007e269ea..08cd075e4 100644 --- a/docs/src/carapace/action.md +++ b/docs/src/carapace/action.md @@ -1,4 +1,4 @@ # Action -An [`Action`](https://pkg.go.dev/github.com/rsteube/carapace#Action) indicates how to complete a flag or a positional argument. +An [`Action`](https://pkg.go.dev/github.com/carapace-sh/carapace#Action) indicates how to complete a flag or a positional argument. diff --git a/docs/src/carapace/action/cache.md b/docs/src/carapace/action/cache.md index 68653250c..aad5280c9 100644 --- a/docs/src/carapace/action/cache.md +++ b/docs/src/carapace/action/cache.md @@ -55,9 +55,9 @@ Cache is written as `json` to [`os.UserCacheDir`] using the [Export] format. | cacheChecksum | sh1sum of given [`CacheKeys`] | `041858daaaa8b084122d4604a3223315c39edc3e` | [Action]:../action.md -[`Cache`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.Cache -[`key.String`]:https://pkg.go.dev/github.com/rsteube/carapace/pkg/key#String -[`CacheKeys`]:https://pkg.go.dev/github.com/rsteube/carapace/pkg/cache#CacheKey +[`Cache`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Cache +[`key.String`]:https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/key#String +[`CacheKeys`]:https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/cache#CacheKey [callback actions]:./defaultActions/actionCallback.md [Export]:../export.md [`os.UserCacheDir`]:https://pkg.go.dev/os#UserCacheDir diff --git a/docs/src/carapace/action/chdir.md b/docs/src/carapace/action/chdir.md index 55e35ede4..6e1753a54 100644 --- a/docs/src/carapace/action/chdir.md +++ b/docs/src/carapace/action/chdir.md @@ -8,4 +8,4 @@ carapace.ActionFiles().Chdir("/tmp") ![](./chdir.cast) -[`Chdir`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Chdir +[`Chdir`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Chdir diff --git a/docs/src/carapace/action/chdirF.md b/docs/src/carapace/action/chdirF.md index 3a76f7b05..ec838a898 100644 --- a/docs/src/carapace/action/chdirF.md +++ b/docs/src/carapace/action/chdirF.md @@ -9,4 +9,4 @@ carapace.ActionFiles().ChdirF(traverse.GitWorkTree) ![](./chdirF.cast) [Chdir]:./chdir.md -[`ChdirF`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.ChdirF +[`ChdirF`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.ChdirF diff --git a/docs/src/carapace/action/filter.md b/docs/src/carapace/action/filter.md index 4df0611f4..f17ab5187 100644 --- a/docs/src/carapace/action/filter.md +++ b/docs/src/carapace/action/filter.md @@ -13,4 +13,4 @@ carapace.ActionValuesDescribed( ![](./filter.cast) -[`Filter`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Filter +[`Filter`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Filter diff --git a/docs/src/carapace/action/filterArgs.md b/docs/src/carapace/action/filterArgs.md index e963560c1..ded1d90e3 100644 --- a/docs/src/carapace/action/filterArgs.md +++ b/docs/src/carapace/action/filterArgs.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./filterArgs.cast) -[`FilterArgs`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.FilterArgs +[`FilterArgs`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.FilterArgs diff --git a/docs/src/carapace/action/filterParts.md b/docs/src/carapace/action/filterParts.md index 34214417c..07a790c53 100644 --- a/docs/src/carapace/action/filterParts.md +++ b/docs/src/carapace/action/filterParts.md @@ -14,4 +14,4 @@ carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action { ![](./filterParts.cast) -[`FilterParts`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.FilterParts +[`FilterParts`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.FilterParts diff --git a/docs/src/carapace/action/invoke.md b/docs/src/carapace/action/invoke.md index eb5894891..4323964fb 100644 --- a/docs/src/carapace/action/invoke.md +++ b/docs/src/carapace/action/invoke.md @@ -19,5 +19,5 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./invoke.cast) [callback]:../defaultActions/actionCallback.md -[`Invoke`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.Invoke +[`Invoke`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Invoke [Action]:../action.md diff --git a/docs/src/carapace/action/list.md b/docs/src/carapace/action/list.md index 903c1d85d..b1cda5a7d 100644 --- a/docs/src/carapace/action/list.md +++ b/docs/src/carapace/action/list.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./list.cast) -[`List`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.List +[`List`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.List diff --git a/docs/src/carapace/action/multiParts.md b/docs/src/carapace/action/multiParts.md index 4c636aa10..da76d6bec 100644 --- a/docs/src/carapace/action/multiParts.md +++ b/docs/src/carapace/action/multiParts.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./multiparts.cast) -[`MultiParts`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Multiparts +[`MultiParts`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Multiparts diff --git a/docs/src/carapace/action/multiPartsP.md b/docs/src/carapace/action/multiPartsP.md index bd7dfe2ae..c977225f5 100644 --- a/docs/src/carapace/action/multiPartsP.md +++ b/docs/src/carapace/action/multiPartsP.md @@ -33,4 +33,4 @@ carapace.ActionStyledValuesDescribed( ![](./multiPartsP.cast) [MultiParts]:./multiParts.md -[`MultiPartsP`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.MultiPartsP +[`MultiPartsP`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.MultiPartsP diff --git a/docs/src/carapace/action/noSpace.md b/docs/src/carapace/action/noSpace.md index 269046887..7e71f53aa 100644 --- a/docs/src/carapace/action/noSpace.md +++ b/docs/src/carapace/action/noSpace.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./nospace.cast) -[`NoSpace`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.NoSpace +[`NoSpace`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.NoSpace diff --git a/docs/src/carapace/action/prefix.md b/docs/src/carapace/action/prefix.md index 146848370..179a14061 100644 --- a/docs/src/carapace/action/prefix.md +++ b/docs/src/carapace/action/prefix.md @@ -8,4 +8,4 @@ carapace.ActionFiles().Prefix("file://") ![](./prefix.cast) -[`Prefix`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Prefix +[`Prefix`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Prefix diff --git a/docs/src/carapace/action/retain.md b/docs/src/carapace/action/retain.md index 1aa65110d..7c349b3ef 100644 --- a/docs/src/carapace/action/retain.md +++ b/docs/src/carapace/action/retain.md @@ -13,4 +13,4 @@ carapace.ActionValuesDescribed( ![](./retain.cast) -[`Retain`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Retain +[`Retain`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Retain diff --git a/docs/src/carapace/action/shift.md b/docs/src/carapace/action/shift.md index 42dd8c36f..815825907 100644 --- a/docs/src/carapace/action/shift.md +++ b/docs/src/carapace/action/shift.md @@ -10,4 +10,4 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./shift.cast) -[`Shift`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Shift +[`Shift`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Shift diff --git a/docs/src/carapace/action/split.md b/docs/src/carapace/action/split.md index a4edf8a68..325a03486 100644 --- a/docs/src/carapace/action/split.md +++ b/docs/src/carapace/action/split.md @@ -25,4 +25,4 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./split.cast) [lexicographically]:https://github.com/carapace-sh/carapace-shlex -[`Split`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Split +[`Split`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Split diff --git a/docs/src/carapace/action/splitP.md b/docs/src/carapace/action/splitP.md index fa9573b0b..62c71f29f 100644 --- a/docs/src/carapace/action/splitP.md +++ b/docs/src/carapace/action/splitP.md @@ -25,4 +25,4 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./splitP.cast) [Split]:./split.md -[`SplitP`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.SplitP +[`SplitP`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.SplitP diff --git a/docs/src/carapace/action/style.md b/docs/src/carapace/action/style.md index fe86f3120..09fbdbbba 100644 --- a/docs/src/carapace/action/style.md +++ b/docs/src/carapace/action/style.md @@ -1,6 +1,6 @@ # Style -[`Style`] sets the [style](https://pkg.go.dev/github.com/rsteube/carapace/pkg/style) for all values. +[`Style`] sets the [style](https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/style) for all values. ```go carapace.ActionValues( @@ -11,4 +11,4 @@ carapace.ActionValues( ![](./style.cast) -[`Style`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Style +[`Style`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Style diff --git a/docs/src/carapace/action/styleF.md b/docs/src/carapace/action/styleF.md index 909a515ae..899c0d34f 100644 --- a/docs/src/carapace/action/styleF.md +++ b/docs/src/carapace/action/styleF.md @@ -1,6 +1,6 @@ # StyleF -[`StyleF`] sets the [style](https://pkg.go.dev/github.com/rsteube/carapace/pkg/style) for all values using a function. +[`StyleF`] sets the [style](https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/style) for all values using a function. ```go carapace.ActionValues( @@ -21,4 +21,4 @@ carapace.ActionValues( ![](./styleF.cast) -[`StyleF`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.StyleF +[`StyleF`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.StyleF diff --git a/docs/src/carapace/action/styleR.md b/docs/src/carapace/action/styleR.md index 5bf9d1e62..c1bce69c6 100644 --- a/docs/src/carapace/action/styleR.md +++ b/docs/src/carapace/action/styleR.md @@ -1,6 +1,6 @@ # StyleR -[`StyleR`] sets the [style](https://pkg.go.dev/github.com/rsteube/carapace/pkg/style) for all values using a reference. +[`StyleR`] sets the [style](https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/style) for all values using a reference. ```go carapace.ActionValues( @@ -16,4 +16,4 @@ carapace.ActionValues( [Action]:../action.md [ActionCallback]:../defaultActions/actionCallback.md -[`StyleR`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.StyleR +[`StyleR`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.StyleR diff --git a/docs/src/carapace/action/suffix.md b/docs/src/carapace/action/suffix.md index 1ca7ef5b7..babdfb875 100644 --- a/docs/src/carapace/action/suffix.md +++ b/docs/src/carapace/action/suffix.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./suffix.cast) -[`Suffix`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Suffix +[`Suffix`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Suffix diff --git a/docs/src/carapace/action/suppress.md b/docs/src/carapace/action/suppress.md index cd3e2cd74..9f0d0fc98 100644 --- a/docs/src/carapace/action/suppress.md +++ b/docs/src/carapace/action/suppress.md @@ -11,4 +11,4 @@ carapace.Batch( ![](./suppress.cast) -[`Suppress`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Suppress +[`Suppress`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Suppress diff --git a/docs/src/carapace/action/tag.md b/docs/src/carapace/action/tag.md index a9a1b9f2f..ed2a6f384 100644 --- a/docs/src/carapace/action/tag.md +++ b/docs/src/carapace/action/tag.md @@ -11,4 +11,4 @@ carapace.ActionValues( ![](./tag.cast) -[`Tag`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.Tag +[`Tag`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Tag diff --git a/docs/src/carapace/action/tagF.md b/docs/src/carapace/action/tagF.md index 3e15e4694..441347456 100644 --- a/docs/src/carapace/action/tagF.md +++ b/docs/src/carapace/action/tagF.md @@ -22,4 +22,4 @@ carapace.ActionValues( ![](./tagF.cast) -[`TagF`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.TagF +[`TagF`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.TagF diff --git a/docs/src/carapace/action/timeout.md b/docs/src/carapace/action/timeout.md index d297cc91c..b41615837 100644 --- a/docs/src/carapace/action/timeout.md +++ b/docs/src/carapace/action/timeout.md @@ -13,4 +13,4 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { [Action]:../action.md [invoke]:./invoke.md -[`Timeout`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.Timeout +[`Timeout`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Timeout diff --git a/docs/src/carapace/action/uniqueList.md b/docs/src/carapace/action/uniqueList.md index c63f73ad4..babd1d8a8 100644 --- a/docs/src/carapace/action/uniqueList.md +++ b/docs/src/carapace/action/uniqueList.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./uniquelist.cast) -[`UniqueList`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.UniqueList +[`UniqueList`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.UniqueList diff --git a/docs/src/carapace/action/uniqueListF.md b/docs/src/carapace/action/uniqueListF.md index 79dc74f70..c76b27297 100644 --- a/docs/src/carapace/action/uniqueListF.md +++ b/docs/src/carapace/action/uniqueListF.md @@ -18,4 +18,4 @@ carapace.ActionMultiPartsN(":", 2, func(c carapace.Context) carapace.Action { ![](./uniquelistF.cast) [UniqueList]:./uniqueList.md -[`UniqueListF`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.UniqueListF +[`UniqueListF`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.UniqueListF diff --git a/docs/src/carapace/action/unless.md b/docs/src/carapace/action/unless.md index ebfe4482e..18b751c18 100644 --- a/docs/src/carapace/action/unless.md +++ b/docs/src/carapace/action/unless.md @@ -15,5 +15,5 @@ carapace.ActionValues( ![](./unless.cast) -[`Unless`]:https://pkg.go.dev/github.com/rsteube/carapace#Action.Unless -[condition]:https://pkg.go.dev/github.com/rsteube/carapace/pkg/condition +[`Unless`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Unless +[condition]:https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/condition diff --git a/docs/src/carapace/action/usage.md b/docs/src/carapace/action/usage.md index 86d2c929a..1deab58c6 100644 --- a/docs/src/carapace/action/usage.md +++ b/docs/src/carapace/action/usage.md @@ -10,6 +10,6 @@ carapace.ActionValues().Usage("explicit usage") > It is implicitly set by default to [`Flag.Usage`] for flag and [`Command.Use`] for positional arguments. -[`Usage`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.Usage +[`Usage`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Usage [`Command.Use`]:https://pkg.go.dev/github.com/spf13/cobra#Command [`Flag.Usage`]:https://pkg.go.dev/github.com/spf13/pflag#Flag \ No newline at end of file diff --git a/docs/src/carapace/batch.md b/docs/src/carapace/batch.md index bc60bc5a1..e3ce5dc93 100644 --- a/docs/src/carapace/batch.md +++ b/docs/src/carapace/batch.md @@ -1,6 +1,6 @@ # Batch -[`Batch`](https://pkg.go.dev/github.com/rsteube/carapace#Batch) bundles [callback actions](./defaultActions/actionCallback.md) so they can be [invoked](https://pkg.go.dev/github.com/rsteube/carapace#Action.Invoke) in parallel using goroutines. +[`Batch`](https://pkg.go.dev/github.com/carapace-sh/carapace#Batch) bundles [callback actions](./defaultActions/actionCallback.md) so they can be [invoked](https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Invoke) in parallel using goroutines. ```go carapace.ActionCallback(func(c carapace.Context) carapace.Action { diff --git a/docs/src/carapace/context.md b/docs/src/carapace/context.md index d64263cbf..1433946e4 100644 --- a/docs/src/carapace/context.md +++ b/docs/src/carapace/context.md @@ -65,5 +65,5 @@ command pos1 part1,part2,p [ActionMultiParts]:./defaultActions/actionMultiParts.md [`Command.DisableFlagParsing`]:https://pkg.go.dev/github.com/spf13/cobra#Command -[`Context`]:https://pkg.go.dev/github.com/rsteube/carapace#Context +[`Context`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Context [`SetInterspersed`]:https://pkg.go.dev/github.com/spf13/pflag#SetInterspersed \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionCallback.md b/docs/src/carapace/defaultActions/actionCallback.md index 632bcd38f..e8e98d7e9 100644 --- a/docs/src/carapace/defaultActions/actionCallback.md +++ b/docs/src/carapace/defaultActions/actionCallback.md @@ -22,5 +22,5 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./actionCallback.cast) -[`ActionCallback`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionCallback +[`ActionCallback`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionCallback [DefaultActions]:../defaultActions.md \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionCobra.md b/docs/src/carapace/defaultActions/actionCobra.md index ffed651d6..2aed8187b 100644 --- a/docs/src/carapace/defaultActions/actionCobra.md +++ b/docs/src/carapace/defaultActions/actionCobra.md @@ -10,4 +10,4 @@ carapace.ActionCobra(func(cmd *cobra.Command, args []string, toComplete string) ![](./actionCobra.cast) -[`ActionCobra`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionCobra +[`ActionCobra`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionCobra diff --git a/docs/src/carapace/defaultActions/actionCommands.md b/docs/src/carapace/defaultActions/actionCommands.md index f5561d56d..127cbc8ff 100644 --- a/docs/src/carapace/defaultActions/actionCommands.md +++ b/docs/src/carapace/defaultActions/actionCommands.md @@ -14,4 +14,4 @@ carapace.Gen(helpCmd).PositionalAnyCompletion( ![](./actionCommands.cast) -[`ActionCommands`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionCommands +[`ActionCommands`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionCommands diff --git a/docs/src/carapace/defaultActions/actionDirectories.md b/docs/src/carapace/defaultActions/actionDirectories.md index 85ea2316b..81614930e 100644 --- a/docs/src/carapace/defaultActions/actionDirectories.md +++ b/docs/src/carapace/defaultActions/actionDirectories.md @@ -8,4 +8,4 @@ carapace.ActionDirectories() ![](./actionDirectories.cast) -[`ActionDirectories`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionDirectories +[`ActionDirectories`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionDirectories diff --git a/docs/src/carapace/defaultActions/actionExecCommand.md b/docs/src/carapace/defaultActions/actionExecCommand.md index 427352de0..640b9cfdd 100644 --- a/docs/src/carapace/defaultActions/actionExecCommand.md +++ b/docs/src/carapace/defaultActions/actionExecCommand.md @@ -11,4 +11,4 @@ carapace.ActionExecCommand("git", "remote")(func(output []byte) carapace.Action ![](./actionExecCommand.cast) -[`ActionExecCommand`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionExecCommand +[`ActionExecCommand`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionExecCommand diff --git a/docs/src/carapace/defaultActions/actionExecCommandE.md b/docs/src/carapace/defaultActions/actionExecCommandE.md index de600ccbc..3d500d067 100644 --- a/docs/src/carapace/defaultActions/actionExecCommandE.md +++ b/docs/src/carapace/defaultActions/actionExecCommandE.md @@ -17,4 +17,4 @@ carapace.ActionExecCommandE("false")(func(output []byte, err error) carapace.Act ![](./actionExecCommandE.cast) [ActionExecCommand]:./actionExecCommand.md -[`ActionExecCommandE`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionExecCommandE +[`ActionExecCommandE`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionExecCommandE diff --git a/docs/src/carapace/defaultActions/actionExecutables.md b/docs/src/carapace/defaultActions/actionExecutables.md index 2d03985d5..cb423ad2c 100644 --- a/docs/src/carapace/defaultActions/actionExecutables.md +++ b/docs/src/carapace/defaultActions/actionExecutables.md @@ -9,5 +9,5 @@ carapace.ActionExecutables() ![](./actionExecutables.cast) -[`ActionExecutables`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionExecutables +[`ActionExecutables`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionExecutables [PATH]:https://en.wikipedia.org/wiki/PATH_(variable) \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionExecute.md b/docs/src/carapace/defaultActions/actionExecute.md index aec7bdd74..e0711c689 100644 --- a/docs/src/carapace/defaultActions/actionExecute.md +++ b/docs/src/carapace/defaultActions/actionExecute.md @@ -27,5 +27,5 @@ carapace.ActionCallback(func(c carapace.Context) carapace.Action { ![](./actionExecute.cast) -[`ActionExecute`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionExecute +[`ActionExecute`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionExecute [`Command`]:https://pkg.go.dev/github.com/spf13/cobra#Command \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionFiles.md b/docs/src/carapace/defaultActions/actionFiles.md index c0b989136..c670abccf 100644 --- a/docs/src/carapace/defaultActions/actionFiles.md +++ b/docs/src/carapace/defaultActions/actionFiles.md @@ -9,4 +9,4 @@ carapace.ActionFiles(".md", "go.mod", "go.sum"), ![](./actionFiles.cast) -[`ActionFiles`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionFiles +[`ActionFiles`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionFiles diff --git a/docs/src/carapace/defaultActions/actionImport.md b/docs/src/carapace/defaultActions/actionImport.md index 18bd0b724..705120319 100644 --- a/docs/src/carapace/defaultActions/actionImport.md +++ b/docs/src/carapace/defaultActions/actionImport.md @@ -30,5 +30,5 @@ carapace.ActionImport([]byte(` ![](./actionImport.cast) [Action]:../action.md -[`ActionImport`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionImport +[`ActionImport`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionImport [Export]:../export.md diff --git a/docs/src/carapace/defaultActions/actionMessage.md b/docs/src/carapace/defaultActions/actionMessage.md index 537bbf5c5..cf0a9f7b3 100644 --- a/docs/src/carapace/defaultActions/actionMessage.md +++ b/docs/src/carapace/defaultActions/actionMessage.md @@ -1,6 +1,6 @@ # ActionMessage -[`ActionMessage`](https://pkg.go.dev/github.com/rsteube/carapace#ActionMessage) shows an error message. +[`ActionMessage`](https://pkg.go.dev/github.com/carapace-sh/carapace#ActionMessage) shows an error message. ```go carapace.ActionMessage("example message") diff --git a/docs/src/carapace/defaultActions/actionMultiParts.md b/docs/src/carapace/defaultActions/actionMultiParts.md index a9a7415cd..0a194bff5 100644 --- a/docs/src/carapace/defaultActions/actionMultiParts.md +++ b/docs/src/carapace/defaultActions/actionMultiParts.md @@ -61,5 +61,5 @@ carapace.ActionMultiParts(",", func(cEntries carapace.Context) carapace.Action { ![](./actionMultiParts-nested.cast) -[`ActionMultiParts`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionMultiParts +[`ActionMultiParts`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionMultiParts [`NoSpace`]:../action/noSpace.md \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionMultiPartsN.md b/docs/src/carapace/defaultActions/actionMultiPartsN.md index a9c88450e..65213f25a 100644 --- a/docs/src/carapace/defaultActions/actionMultiPartsN.md +++ b/docs/src/carapace/defaultActions/actionMultiPartsN.md @@ -28,5 +28,5 @@ carapace.ActionMultiPartsN("=", 2, func(c carapace.Context) carapace.Action { ![](./actionMultiPartsN.cast) [ActionMultiParts]:./actionMultiParts.md -[`ActionMultiPartsN`]: https://pkg.go.dev/github.com/rsteube/carapace#Action.MultipartsN +[`ActionMultiPartsN`]: https://pkg.go.dev/github.com/carapace-sh/carapace#Action.MultipartsN diff --git a/docs/src/carapace/defaultActions/actionPositional.md b/docs/src/carapace/defaultActions/actionPositional.md index 46c73b3fe..56385555f 100644 --- a/docs/src/carapace/defaultActions/actionPositional.md +++ b/docs/src/carapace/defaultActions/actionPositional.md @@ -12,4 +12,4 @@ carapace.Gen(cmd).DashAnyCompletion( ![](./actionPositional.cast) -[`ActionPositional`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionPositional +[`ActionPositional`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionPositional diff --git a/docs/src/carapace/defaultActions/actionStyledValues.md b/docs/src/carapace/defaultActions/actionStyledValues.md index 6f4e7dfd5..a400b078a 100644 --- a/docs/src/carapace/defaultActions/actionStyledValues.md +++ b/docs/src/carapace/defaultActions/actionStyledValues.md @@ -1,6 +1,6 @@ # ActionStyledValues -[`ActionStyledValues`] is like [ActionValues](./actionValues.md) but accepts an additional [style](https://pkg.go.dev/github.com/rsteube/carapace/pkg/style). +[`ActionStyledValues`] is like [ActionValues](./actionValues.md) but accepts an additional [style](https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/style). ```go carapace.ActionStyledValues( @@ -12,4 +12,4 @@ carapace.ActionStyledValues( ![](./actionStyledValues.cast) -[`ActionStyledValues`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionStyledValues +[`ActionStyledValues`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionStyledValues diff --git a/docs/src/carapace/defaultActions/actionStyledValuesDescribed.md b/docs/src/carapace/defaultActions/actionStyledValuesDescribed.md index 356fad2f1..3eca4e436 100644 --- a/docs/src/carapace/defaultActions/actionStyledValuesDescribed.md +++ b/docs/src/carapace/defaultActions/actionStyledValuesDescribed.md @@ -1,6 +1,6 @@ # ActionStyledValuesDescribed -[`ActionStyledValuesDescribed`] is like [ActionValuesDescribed](./actionValuesDescribed.md) but accepts an additional [style](https://pkg.go.dev/github.com/rsteube/carapace/pkg/style). +[`ActionStyledValuesDescribed`] is like [ActionValuesDescribed](./actionValuesDescribed.md) but accepts an additional [style](https://pkg.go.dev/github.com/carapace-sh/carapace/pkg/style). ```go carapace.ActionStyledValuesDescribed( @@ -12,4 +12,4 @@ carapace.ActionStyledValuesDescribed( ![](./actionStyledValuesDescribed.cast) -[`ActionStyledValuesDescribed`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionStyledValuesDescribed \ No newline at end of file +[`ActionStyledValuesDescribed`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionStyledValuesDescribed \ No newline at end of file diff --git a/docs/src/carapace/defaultActions/actionStyles.md b/docs/src/carapace/defaultActions/actionStyles.md index ec8407da2..f211469c5 100644 --- a/docs/src/carapace/defaultActions/actionStyles.md +++ b/docs/src/carapace/defaultActions/actionStyles.md @@ -5,4 +5,4 @@ ![](./actionStyles.cast) -[`ActionStyles`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionStyles +[`ActionStyles`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionStyles diff --git a/docs/src/carapace/defaultActions/actionValues.md b/docs/src/carapace/defaultActions/actionValues.md index 1b333251d..e8e3ee0fa 100644 --- a/docs/src/carapace/defaultActions/actionValues.md +++ b/docs/src/carapace/defaultActions/actionValues.md @@ -12,4 +12,4 @@ carapace.ActionValues( ![](./actionValues.cast) -[`ActionValues`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionValues +[`ActionValues`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionValues diff --git a/docs/src/carapace/defaultActions/actionValuesDescribed.md b/docs/src/carapace/defaultActions/actionValuesDescribed.md index 5220e413f..09c495822 100644 --- a/docs/src/carapace/defaultActions/actionValuesDescribed.md +++ b/docs/src/carapace/defaultActions/actionValuesDescribed.md @@ -12,4 +12,4 @@ carapace.ActionValuesDescribed( ![](./actionValuesDescribed.cast) -[`ActionValuesDescribed`]:https://pkg.go.dev/github.com/rsteube/carapace#ActionValuesDescribed +[`ActionValuesDescribed`]:https://pkg.go.dev/github.com/carapace-sh/carapace#ActionValuesDescribed diff --git a/docs/src/carapace/export.md b/docs/src/carapace/export.md index 4ea15f8cf..184d92a4d 100644 --- a/docs/src/carapace/export.md +++ b/docs/src/carapace/export.md @@ -68,5 +68,5 @@ example _carapace export example m [ActionImport]:./defaultActions/actionImport.md [Cache]:./action/cache.md -[`Export`]:https://pkg.go.dev/github.com/rsteube/carapace/internal/export#Export +[`Export`]:https://pkg.go.dev/github.com/carapace-sh/carapace/internal/export#Export [InvokedAction]:./invokedAction.md diff --git a/docs/src/carapace/gen.md b/docs/src/carapace/gen.md index e1923421c..61f879550 100644 --- a/docs/src/carapace/gen.md +++ b/docs/src/carapace/gen.md @@ -1,16 +1,16 @@ # Gen -Calling [`Gen`](https://pkg.go.dev/github.com/rsteube/carapace#Gen) on the root command is sufficient to enable completion script generation using the [Hidden Subcommand](#hidden-subcommand). +Calling [`Gen`](https://pkg.go.dev/github.com/carapace-sh/carapace#Gen) on the root command is sufficient to enable completion script generation using the [Hidden Subcommand](#hidden-subcommand). ```go import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" ) carapace.Gen(rootCmd) ``` -Additionally invoke [`carapace.Test`](https://pkg.go.dev/github.com/rsteube/carapace#Test) in a [test](https://golang.org/doc/tutorial/add-a-test) to verify configuration during build time. +Additionally invoke [`carapace.Test`](https://pkg.go.dev/github.com/carapace-sh/carapace#Test) in a [test](https://golang.org/doc/tutorial/add-a-test) to verify configuration during build time. ```go func TestCarapace(t *testing.T) { carapace.Test(t) @@ -19,7 +19,7 @@ func TestCarapace(t *testing.T) { ## Hidden Subcommand -When [`Gen`](https://pkg.go.dev/github.com/rsteube/carapace#Gen) is invoked a hidden subcommand (`_carapace`) is added. This handles completion script generation and [callbacks](./defaultActions/actionCallback.md). +When [`Gen`](https://pkg.go.dev/github.com/carapace-sh/carapace#Gen) is invoked a hidden subcommand (`_carapace`) is added. This handles completion script generation and [callbacks](./defaultActions/actionCallback.md). ### Completion diff --git a/docs/src/carapace/gen/dashAnyCompletion.md b/docs/src/carapace/gen/dashAnyCompletion.md index 7c392b4b0..ec436e93d 100644 --- a/docs/src/carapace/gen/dashAnyCompletion.md +++ b/docs/src/carapace/gen/dashAnyCompletion.md @@ -8,4 +8,4 @@ carapace.Gen(rootCmd).DashAnyCompletion( ) ``` -[`DashAnyCompletion`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.DashAnyCompletion +[`DashAnyCompletion`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.DashAnyCompletion diff --git a/docs/src/carapace/gen/dashCompletion.md b/docs/src/carapace/gen/dashCompletion.md index dcb41af1f..7b048f1db 100644 --- a/docs/src/carapace/gen/dashCompletion.md +++ b/docs/src/carapace/gen/dashCompletion.md @@ -9,4 +9,4 @@ carapace.Gen(rootCmd).DashCompletion( ) ``` -[`DashCompletion`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.DashCompletion \ No newline at end of file +[`DashCompletion`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.DashCompletion \ No newline at end of file diff --git a/docs/src/carapace/gen/flagCompletion.md b/docs/src/carapace/gen/flagCompletion.md index 4c3b13bd5..a61655a0c 100644 --- a/docs/src/carapace/gen/flagCompletion.md +++ b/docs/src/carapace/gen/flagCompletion.md @@ -16,5 +16,5 @@ To mark a flag argument as optional (`--name=value`) the [`NoOptDefVal`] needs t rootCmd.Flag("optarg").NoOptDefVal = " " ``` -[`FlagCompletion`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.FlagCompletion +[`FlagCompletion`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.FlagCompletion [`NoOptDefVal`]:https://pkg.go.dev/github.com/spf13/pflag#Flag diff --git a/docs/src/carapace/gen/positionalAnyCompletion.md b/docs/src/carapace/gen/positionalAnyCompletion.md index 873217fcd..8c27c684d 100644 --- a/docs/src/carapace/gen/positionalAnyCompletion.md +++ b/docs/src/carapace/gen/positionalAnyCompletion.md @@ -8,4 +8,4 @@ carapace.Gen(rootCmd).PositionalAnyCompletion( ) ``` -[`PositionalAnyCompletion`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.PositionalAnyCompletion +[`PositionalAnyCompletion`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.PositionalAnyCompletion diff --git a/docs/src/carapace/gen/positionalCompletion.md b/docs/src/carapace/gen/positionalCompletion.md index 82f866014..071b7c818 100644 --- a/docs/src/carapace/gen/positionalCompletion.md +++ b/docs/src/carapace/gen/positionalCompletion.md @@ -10,4 +10,4 @@ carapace.Gen(rootCmd).PositionalCompletion( ) ``` -[`PositionalCompletion`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.PositionalCompletion \ No newline at end of file +[`PositionalCompletion`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.PositionalCompletion \ No newline at end of file diff --git a/docs/src/carapace/gen/preInvoke.md b/docs/src/carapace/gen/preInvoke.md index 4798372e9..386f62ef8 100644 --- a/docs/src/carapace/gen/preInvoke.md +++ b/docs/src/carapace/gen/preInvoke.md @@ -11,4 +11,4 @@ carapace.Gen(rootCmd).PreInvoke(func(cmd *cobra.Command, flag *pflag.Flag, actio ![](./preInvoke.cast) [Action]:../action.md -[`PreInvoke`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.PreInvoke \ No newline at end of file +[`PreInvoke`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.PreInvoke \ No newline at end of file diff --git a/docs/src/carapace/gen/preRun.md b/docs/src/carapace/gen/preRun.md index 4f626e396..1cd805f5c 100644 --- a/docs/src/carapace/gen/preRun.md +++ b/docs/src/carapace/gen/preRun.md @@ -21,4 +21,4 @@ carapace.Gen(rootCmd).PreRun(func(cmd *cobra.Command, args []string) { ![](./preRun.cast) -[`PreRun`]:https://pkg.go.dev/github.com/rsteube/carapace#Carapace.PreRun \ No newline at end of file +[`PreRun`]:https://pkg.go.dev/github.com/carapace-sh/carapace#Carapace.PreRun \ No newline at end of file diff --git a/docs/src/carapace/invokedAction.md b/docs/src/carapace/invokedAction.md index 240494f62..bc0678442 100644 --- a/docs/src/carapace/invokedAction.md +++ b/docs/src/carapace/invokedAction.md @@ -1,3 +1,3 @@ # InvokedAction -[`InvokedAction`](https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction) is a logical alias for an [Action](./action.md) whose (nested) callback was [invoked](https://pkg.go.dev/github.com/rsteube/carapace#Action.Invoke) and thus contains static values (essentially this is now an [ActionValuesDescribed](./defaultActions/actionValuesDescribed.md)). +[`InvokedAction`](https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction) is a logical alias for an [Action](./action.md) whose (nested) callback was [invoked](https://pkg.go.dev/github.com/carapace-sh/carapace#Action.Invoke) and thus contains static values (essentially this is now an [ActionValuesDescribed](./defaultActions/actionValuesDescribed.md)). diff --git a/docs/src/carapace/invokedAction/filter.md b/docs/src/carapace/invokedAction/filter.md index d03621e08..cc032b90d 100644 --- a/docs/src/carapace/invokedAction/filter.md +++ b/docs/src/carapace/invokedAction/filter.md @@ -1,6 +1,6 @@ # Filter -[`Filter`](https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.Filter) filters values within an [InvokedAction](../invokedAction.md). +[`Filter`](https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.Filter) filters values within an [InvokedAction](../invokedAction.md). E.g. completing a unique list of values in an [ActionMultiParts](../defaultActions/actionMultiParts.md): ```go diff --git a/docs/src/carapace/invokedAction/merge.md b/docs/src/carapace/invokedAction/merge.md index b2c427214..64a0fb809 100644 --- a/docs/src/carapace/invokedAction/merge.md +++ b/docs/src/carapace/invokedAction/merge.md @@ -1,6 +1,6 @@ # Merge -[`Merge`](https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.Merge) combines values of multiple [InvokedActions](../invokedAction.md). +[`Merge`](https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.Merge) combines values of multiple [InvokedActions](../invokedAction.md). ```go carapace.ActionValues("one", "two").Invoke(c).Merge(carapace.ActionValues("three", "four").Invoke(c)).ToA() diff --git a/docs/src/carapace/invokedAction/prefix.md b/docs/src/carapace/invokedAction/prefix.md index b3b7aa611..4012bd7cc 100644 --- a/docs/src/carapace/invokedAction/prefix.md +++ b/docs/src/carapace/invokedAction/prefix.md @@ -1,6 +1,6 @@ # Prefix -[`Prefix`](https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.Prefix) adds a prefix to all values within an [InvokedAction](../invokedAction.md). +[`Prefix`](https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.Prefix) adds a prefix to all values within an [InvokedAction](../invokedAction.md). ```go carapace.ActionValues("melon", "drop", "fall").Invoke(c).Prefix("water").ToA() diff --git a/docs/src/carapace/invokedAction/suffix.md b/docs/src/carapace/invokedAction/suffix.md index ed4b2c884..fe2e233c0 100644 --- a/docs/src/carapace/invokedAction/suffix.md +++ b/docs/src/carapace/invokedAction/suffix.md @@ -1,6 +1,6 @@ # Suffix -[`Suffix`](https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.Suffix) adds a suffix to all values within an [InvokedAction](../invokedAction.md). +[`Suffix`](https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.Suffix) adds a suffix to all values within an [InvokedAction](../invokedAction.md). ```go ActionUsers().Invoke(c).Suffix(":").ToA() diff --git a/docs/src/carapace/invokedAction/toA.md b/docs/src/carapace/invokedAction/toA.md index 9ca442e5b..be2c90e52 100644 --- a/docs/src/carapace/invokedAction/toA.md +++ b/docs/src/carapace/invokedAction/toA.md @@ -6,4 +6,4 @@ ActionValues().Invoke(c).ToA() ``` -[`ToA`]:https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.ToA +[`ToA`]:https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.ToA diff --git a/docs/src/carapace/invokedAction/toMultiPartsA.md b/docs/src/carapace/invokedAction/toMultiPartsA.md index dd95f4254..b87ee54d6 100644 --- a/docs/src/carapace/invokedAction/toMultiPartsA.md +++ b/docs/src/carapace/invokedAction/toMultiPartsA.md @@ -20,4 +20,4 @@ func ActionZipFileContents(file string) carapace.Action { } ``` -[`ToMultiPartsA`]:https://pkg.go.dev/github.com/rsteube/carapace#InvokedAction.ToMultiPartsA +[`ToMultiPartsA`]:https://pkg.go.dev/github.com/carapace-sh/carapace#InvokedAction.ToMultiPartsA diff --git a/example-nonposix/cmd/root.go b/example-nonposix/cmd/root.go index 5b9a87e48..b2a2f0025 100644 --- a/example-nonposix/cmd/root.go +++ b/example-nonposix/cmd/root.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/example-nonposix/cmd/root_test.go b/example-nonposix/cmd/root_test.go index d10cea8a7..1f03a5d26 100644 --- a/example-nonposix/cmd/root_test.go +++ b/example-nonposix/cmd/root_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestStandalone(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example-nonposix")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example-nonposix")(func(s *sandbox.Sandbox) { s.Run("--h"). Expect(carapace.ActionValues(). NoSpace('.')) @@ -20,7 +20,7 @@ func TestStandalone(t *testing.T) { } func TestInterspersed(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example-nonposix")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example-nonposix")(func(s *sandbox.Sandbox) { s.Run("-delim-colon:d1", "-d"). Expect(carapace.ActionValuesDescribed( "-delim-slash", "OptargDelimiter '/'", @@ -34,7 +34,7 @@ func TestInterspersed(t *testing.T) { } func TestRoot(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example-nonposix")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example-nonposix")(func(s *sandbox.Sandbox) { s.Run("-delim-colon:"). Expect(carapace.ActionValues("d1", "d2", "d3"). Prefix("-delim-colon:"). @@ -58,7 +58,7 @@ func TestRoot(t *testing.T) { } func TestNargs(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example-nonposix")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example-nonposix")(func(s *sandbox.Sandbox) { s.Run("--nargs-any", ""). Expect(carapace.ActionValues("na1", "na2", "na3"). Usage("Nargs")) diff --git a/example-nonposix/go.mod b/example-nonposix/go.mod index e192494a8..5933143ab 100644 --- a/example-nonposix/go.mod +++ b/example-nonposix/go.mod @@ -1,13 +1,13 @@ -module github.com/rsteube/carapace/example-nonposix +module github.com/carapace-sh/carapace/example-nonposix go 1.15 require ( - github.com/rsteube/carapace v0.31.1 - github.com/spf13/cobra v1.7.0 + github.com/carapace-sh/carapace v0.50.3-0.20240311124258-a5adf91d8b8f + github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 ) -replace github.com/rsteube/carapace => ../ +replace github.com/carapace-sh/carapace => ../ -replace github.com/spf13/pflag => github.com/rsteube/carapace-pflag v0.2.0 +replace github.com/spf13/pflag => github.com/carapace-sh/carapace-pflag v0.2.0 diff --git a/example-nonposix/go.sum b/example-nonposix/go.sum index 670c0c33e..27c29c640 100644 --- a/example-nonposix/go.sum +++ b/example-nonposix/go.sum @@ -1,10 +1,14 @@ -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/carapace-sh/carapace-pflag v0.2.0 h1:JruHPnn10wPYsG+rZLTpARTbiO9ZUp+3QNZnFMmRYFM= +github.com/carapace-sh/carapace-pflag v0.2.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/carapace-sh/carapace-shlex v0.2.0 h1:rh2wprc8Cszf4MZV+99t9vH6wblz7zlN/3C/v7Xl0Ck= +github.com/carapace-sh/carapace-shlex v0.2.0/go.mod h1:lJ4ZsdxytE0wHJ8Ta9S7Qq0XpjgjU0mdfCqiI2FHx7M= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/rsteube/carapace-pflag v0.2.0 h1:EYqFO9Haib3NDCPqKu0VxOGi9YQBkXk1IzlHdT0M0vw= -github.com/rsteube/carapace-pflag v0.2.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/example-nonposix/main.go b/example-nonposix/main.go index a7ba8f9ac..c76285c68 100644 --- a/example-nonposix/main.go +++ b/example-nonposix/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/rsteube/carapace/example-nonposix/cmd" + "github.com/carapace-sh/carapace/example-nonposix/cmd" ) func main() { diff --git a/example/cmd/_test_files/go.mod b/example/cmd/_test_files/go.mod index a1d686a86..ced5d4899 100644 --- a/example/cmd/_test_files/go.mod +++ b/example/cmd/_test_files/go.mod @@ -1,3 +1,3 @@ -module github.com/rsteube/carapace/example/_test_files +module github.com/carapace-sh/carapace/example/_test_files // fix go mod invalid char error: https://github.com/golang/go/issues/26672 diff --git a/example/cmd/action.go b/example/cmd/action.go index eb70cc717..12ac80cdd 100644 --- a/example/cmd/action.go +++ b/example/cmd/action.go @@ -4,8 +4,8 @@ import ( "os/exec" "strings" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" ) diff --git a/example/cmd/action_test.go b/example/cmd/action_test.go index 0d88dfd41..4e80ec68a 100644 --- a/example/cmd/action_test.go +++ b/example/cmd/action_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestAction(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files( "dirA/file1.txt", "", "dirA/file2.png", "", @@ -206,7 +206,7 @@ func TestAction(t *testing.T) { } func TestDash(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("action", "--", ""). Expect(carapace.ActionValues("embeddedP1", "embeddedPositional1"). Usage("action [pos1] [pos2] [--] [dashAny]...")) @@ -248,7 +248,7 @@ func TestDash(t *testing.T) { } func TestUnknownFlag(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("action", "--unknown", ""). Expect(carapace.ActionMessage("unknown flag: --unknown")) @@ -260,7 +260,7 @@ func TestUnknownFlag(t *testing.T) { } func TestPersistentFlag(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("action", "--persistentFlag="). Expect(carapace.ActionValues("p1", "p2", "p3"). Prefix("--persistentFlag="). @@ -273,7 +273,7 @@ func TestPersistentFlag(t *testing.T) { } func TestAttached(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files( "dirA/file1.txt", "", "dirA/file2.png", "", @@ -319,7 +319,7 @@ func TestAttached(t *testing.T) { } func TestActionMultipartsN(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("action", "--multipartsn", ""). Expect(carapace.ActionValues("one", "two"). Suffix("="). diff --git a/example/cmd/chain.go b/example/cmd/chain.go index 95dc37d61..f49f13d91 100644 --- a/example/cmd/chain.go +++ b/example/cmd/chain.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/chain_test.go b/example/cmd/chain_test.go index f59783825..c36d161b6 100644 --- a/example/cmd/chain_test.go +++ b/example/cmd/chain_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestShorthandChain(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("chain", "-b"). Expect(carapace.ActionStyledValues( "c", style.Default, diff --git a/example/cmd/compat.go b/example/cmd/compat.go index c6d7d28e0..4ea7b14fd 100644 --- a/example/cmd/compat.go +++ b/example/cmd/compat.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/compat_sub.go b/example/cmd/compat_sub.go index ac3d3ef1b..6147e1727 100644 --- a/example/cmd/compat_sub.go +++ b/example/cmd/compat_sub.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/compat_sub_test.go b/example/cmd/compat_sub_test.go index 9fa70c27e..190be3a44 100644 --- a/example/cmd/compat_sub_test.go +++ b/example/cmd/compat_sub_test.go @@ -3,12 +3,12 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" ) func TestCompatPersistent(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("compat", "sub", "--persistent-compat", ""). Expect(carapace.ActionValues( `args: []string(nil) toComplete: ""`, diff --git a/example/cmd/compat_test.go b/example/cmd/compat_test.go index 581975919..a1c600171 100644 --- a/example/cmd/compat_test.go +++ b/example/cmd/compat_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestCompat(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files( "subdir/file1.txt", "", "subdir/subdir2/file2.txt", "", diff --git a/example/cmd/flag.go b/example/cmd/flag.go index f9a399236..eae47540e 100644 --- a/example/cmd/flag.go +++ b/example/cmd/flag.go @@ -4,7 +4,7 @@ import ( "net" "time" - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/flag_disabled.go b/example/cmd/flag_disabled.go index 1ba89e9bb..8f76ddac3 100644 --- a/example/cmd/flag_disabled.go +++ b/example/cmd/flag_disabled.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/flag_disabled_test.go b/example/cmd/flag_disabled_test.go index b413afc11..c0db11768 100644 --- a/example/cmd/flag_disabled_test.go +++ b/example/cmd/flag_disabled_test.go @@ -3,12 +3,12 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" ) func TestFlagDisabled(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("flag", "disabled", ""). Expect(carapace.ActionValues( "-p1", diff --git a/example/cmd/group.go b/example/cmd/group.go index 411785dfb..fbab24046 100644 --- a/example/cmd/group.go +++ b/example/cmd/group.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/help_test.go b/example/cmd/help_test.go index c8d71afbb..5905e9884 100644 --- a/example/cmd/help_test.go +++ b/example/cmd/help_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestHelp(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("help", "a"). Expect(carapace.ActionValuesDescribed( "action", "action example", diff --git a/example/cmd/interspersed.go b/example/cmd/interspersed.go index 6091b972c..52aa4d272 100644 --- a/example/cmd/interspersed.go +++ b/example/cmd/interspersed.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/interspersed_test.go b/example/cmd/interspersed_test.go index 39ff44496..d8a37bbe5 100644 --- a/example/cmd/interspersed_test.go +++ b/example/cmd/interspersed_test.go @@ -3,13 +3,13 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestInterspersed(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("interspersed", "--s"). Expect(carapace.ActionValuesDescribed( "--string", "string flag", diff --git a/example/cmd/modifier.go b/example/cmd/modifier.go index d66907426..d51494715 100644 --- a/example/cmd/modifier.go +++ b/example/cmd/modifier.go @@ -6,11 +6,11 @@ import ( "strings" "time" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/cache/key" - "github.com/rsteube/carapace/pkg/condition" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/pkg/traverse" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/cache/key" + "github.com/carapace-sh/carapace/pkg/condition" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/traverse" "github.com/spf13/cobra" ) diff --git a/example/cmd/modifier_test.go b/example/cmd/modifier_test.go index 59899d88a..b9c3406d0 100644 --- a/example/cmd/modifier_test.go +++ b/example/cmd/modifier_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func TestBatch(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--batch", ""). Expect(carapace.ActionValuesDescribed( "A", "description of A", @@ -24,7 +24,7 @@ func TestBatch(t *testing.T) { } func TestCache(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { cached := s.Run("modifier", "--cache", "").Output() time.Sleep(1 * time.Second) s.Run("modifier", "--cache", ""). @@ -39,7 +39,7 @@ func TestCache(t *testing.T) { } func TestFilter(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--filter", ""). Expect(carapace.ActionValuesDescribed( "1", "one", @@ -49,7 +49,7 @@ func TestFilter(t *testing.T) { } func TestRetain(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--retain", ""). Expect(carapace.ActionValuesDescribed( "2", "two", @@ -59,7 +59,7 @@ func TestRetain(t *testing.T) { } func TestShift(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "one", "--shift", ""). Expect(carapace.ActionMessage(`[]string{}`).Usage("Shift()")) @@ -69,7 +69,7 @@ func TestShift(t *testing.T) { } func TestTimeout(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--timeout", ""). Expect(carapace.ActionMessage("timeout exceeded"). Usage("Timeout()")) @@ -77,7 +77,7 @@ func TestTimeout(t *testing.T) { } func TestUsage(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--usage", ""). Expect(carapace.ActionValues(). Usage("explicit usage")) @@ -102,7 +102,7 @@ func TestChdir(t *testing.T) { func TestChdirF(t *testing.T) { os.Unsetenv("LS_COLORS") - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files( ".git/config", "", "file1.txt", "", @@ -132,7 +132,7 @@ func TestChdirF(t *testing.T) { } func TestMultiParts(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--multiparts", ""). Expect(carapace.ActionValues("dir/"). NoSpace('/'). @@ -160,7 +160,7 @@ func TestMultiParts(t *testing.T) { func TestPrefix(t *testing.T) { os.Unsetenv("LS_COLORS") - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files("subdir/file1.txt", "") s.Run("modifier", "--prefix", ""). @@ -190,7 +190,7 @@ func TestPrefix(t *testing.T) { } func TestFilterArgs(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--filterargs", ""). Expect(carapace.ActionValues( "one", @@ -212,7 +212,7 @@ func TestFilterArgs(t *testing.T) { } func TestFilterParts(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--filterparts", ""). Expect(carapace.ActionValues( "one", @@ -242,7 +242,7 @@ func TestFilterParts(t *testing.T) { } func TestMultiPartsP(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--multipartsp", ""). Expect(carapace.ActionStyledValuesDescribed( "keys/", "", style.Default, @@ -295,7 +295,7 @@ func TestMultiPartsP(t *testing.T) { func TestSplit(t *testing.T) { os.Unsetenv("LS_COLORS") - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files("subdir/file1.txt", "") s.Run("modifier", "--split", ""). @@ -377,7 +377,7 @@ func TestSplit(t *testing.T) { func TestSplitP(t *testing.T) { os.Unsetenv("LS_COLORS") - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files("subdir/file1.txt", "") s.Run("modifier", "--splitp", "pos1>"). @@ -464,7 +464,7 @@ func TestSplitP(t *testing.T) { }) } func TestUnless(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--unless", ""). Expect(carapace.ActionValues( "./local", @@ -493,7 +493,7 @@ func TestUnless(t *testing.T) { } func TestUniqueList(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--uniquelist", ""). Expect(carapace.ActionValues( "one", @@ -513,7 +513,7 @@ func TestUniqueList(t *testing.T) { } func TestUniqueListF(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("modifier", "--uniquelistf", ""). Expect(carapace.ActionValues( "one", diff --git a/example/cmd/multiparts.go b/example/cmd/multiparts.go index aa13e2392..dfad18d99 100644 --- a/example/cmd/multiparts.go +++ b/example/cmd/multiparts.go @@ -3,8 +3,8 @@ package cmd import ( "strings" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" ) diff --git a/example/cmd/multiparts_test.go b/example/cmd/multiparts_test.go index 2477d3fb6..5a4a68da5 100644 --- a/example/cmd/multiparts_test.go +++ b/example/cmd/multiparts_test.go @@ -3,14 +3,14 @@ package cmd import ( "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) // TODO rename. func TestMultiparts(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Files( "dirA/file1.txt", "", "dirA/file2.png", "", diff --git a/example/cmd/root.go b/example/cmd/root.go index 433cae6b1..15fefb907 100644 --- a/example/cmd/root.go +++ b/example/cmd/root.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/example/cmd/root_test.go b/example/cmd/root_test.go index cafbe985b..be6f72eda 100644 --- a/example/cmd/root_test.go +++ b/example/cmd/root_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/internal/assert" - "github.com/rsteube/carapace/pkg/sandbox" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/internal/assert" + "github.com/carapace-sh/carapace/pkg/sandbox" + "github.com/carapace-sh/carapace/pkg/style" ) func testScript(t *testing.T, shell string, file string) { @@ -57,7 +57,7 @@ func TestZsh(t *testing.T) { } func TestRoot(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run(""). Expect(carapace.Batch( carapace.ActionValuesDescribed( @@ -146,7 +146,7 @@ func TestRoot(t *testing.T) { } func TestOptarg(t *testing.T) { - sandbox.Package(t, "github.com/rsteube/carapace/example")(func(s *sandbox.Sandbox) { + sandbox.Package(t, "github.com/carapace-sh/carapace/example")(func(s *sandbox.Sandbox) { s.Run("--persistentFlag="). Expect(carapace.ActionValues( "p1", diff --git a/example/cmd/special.go b/example/cmd/special.go index 311e6a6d6..786f15671 100644 --- a/example/cmd/special.go +++ b/example/cmd/special.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/subcommand.go b/example/cmd/subcommand.go index a8b8d6dfc..8f1d19e2e 100644 --- a/example/cmd/subcommand.go +++ b/example/cmd/subcommand.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/subcommand_alias.go b/example/cmd/subcommand_alias.go index 5f706f4b7..2c7d340cc 100644 --- a/example/cmd/subcommand_alias.go +++ b/example/cmd/subcommand_alias.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/subcommand_group.go b/example/cmd/subcommand_group.go index f0b6285ad..3db31b27f 100644 --- a/example/cmd/subcommand_group.go +++ b/example/cmd/subcommand_group.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/subcommand_hidden.go b/example/cmd/subcommand_hidden.go index 0478b8f62..77aec6881 100644 --- a/example/cmd/subcommand_hidden.go +++ b/example/cmd/subcommand_hidden.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/cmd/subcommand_hidden_visible.go b/example/cmd/subcommand_hidden_visible.go index e506069fa..cb7fbb50f 100644 --- a/example/cmd/subcommand_hidden_visible.go +++ b/example/cmd/subcommand_hidden_visible.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" "github.com/spf13/cobra" ) diff --git a/example/main.go b/example/main.go index 57049a147..2e862d014 100644 --- a/example/main.go +++ b/example/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/rsteube/carapace/example/cmd" + "github.com/carapace-sh/carapace/example/cmd" ) func main() { diff --git a/example/main_test.go b/example/main_test.go index d1520862e..50686f83e 100644 --- a/example/main_test.go +++ b/example/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/rsteube/carapace" + "github.com/carapace-sh/carapace" ) // func doComplete(t *testing.T, shell string, cmdline string, contained ...string) { diff --git a/experimental.go b/experimental.go index 4d0645c9f..ebe489158 100644 --- a/experimental.go +++ b/experimental.go @@ -3,9 +3,9 @@ package carapace import ( "encoding/json" - "github.com/rsteube/carapace/internal/config" - "github.com/rsteube/carapace/internal/export" - "github.com/rsteube/carapace/pkg/x" + "github.com/carapace-sh/carapace/internal/config" + "github.com/carapace-sh/carapace/internal/export" + "github.com/carapace-sh/carapace/pkg/x" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index 01db00244..41cc0eec3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/rsteube/carapace +module github.com/carapace-sh/carapace go 1.15 diff --git a/go.work.sum b/go.work.sum index 8464a6111..5661ca35f 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,13 +1,2 @@ -github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/rsteube/carapace-pflag v0.0.4 h1:Onb0cLNLxg1xJr2EsMlBldAI5KkybrvZ89b5cRElZXI= -github.com/rsteube/carapace-pflag v0.0.4/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/rsteube/carapace-pflag v0.0.5 h1:QQC0KnthHMayHsX7B7DxqOkr0B6JSIM0glB+KrSTruU= -github.com/rsteube/carapace-pflag v0.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/rsteube/carapace-pflag v0.1.0 h1:CPJRlj3jbyOnxuMf5pdrM76hEwdQ0STDDmkAHQcGbhg= -github.com/rsteube/carapace-pflag v0.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/rsteube/carapace-shlex v0.0.1 h1:8uvsc+ISKw7uoITSp92nNisFUOulYMz+Uu7N5nbHTiM= -github.com/rsteube/carapace-shlex v0.0.1/go.mod h1:zPw1dOFwvLPKStUy9g2BYKanI6bsQMATzDMYQQybo3o= +github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= diff --git a/internal/assert/assert.go b/internal/assert/assert.go index 6495bd7e2..654065140 100644 --- a/internal/assert/assert.go +++ b/internal/assert/assert.go @@ -7,9 +7,9 @@ import ( "runtime" "strings" - "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff" - "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff/myers" - "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff/span" + "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff" + "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff/myers" + "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff/span" ) type T interface { diff --git a/internal/cache/cache.go b/internal/cache/cache.go index c96356037..d607b75a8 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -11,11 +11,11 @@ import ( "strings" "time" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/export" - "github.com/rsteube/carapace/internal/uid" - "github.com/rsteube/carapace/pkg/cache/key" - "github.com/rsteube/carapace/pkg/xdg" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/export" + "github.com/carapace-sh/carapace/internal/uid" + "github.com/carapace-sh/carapace/pkg/cache/key" + "github.com/carapace-sh/carapace/pkg/xdg" ) func WriteE(file string, e export.Export) (err error) { diff --git a/internal/common/group.go b/internal/common/group.go index c0bd65e02..78fa85823 100644 --- a/internal/common/group.go +++ b/internal/common/group.go @@ -3,7 +3,7 @@ package common import ( "strings" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" ) diff --git a/internal/common/message.go b/internal/common/message.go index e183c6132..2deb8339f 100644 --- a/internal/common/message.go +++ b/internal/common/message.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" ) type Messages struct { diff --git a/internal/common/value.go b/internal/common/value.go index 724430a36..6a804d4c9 100644 --- a/internal/common/value.go +++ b/internal/common/value.go @@ -5,8 +5,8 @@ import ( "sort" "strings" - "github.com/rsteube/carapace/pkg/match" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/match" + "github.com/carapace-sh/carapace/pkg/style" ) // FromInvokedAction provides access to RawValues within an InvokedAction. diff --git a/internal/config/config.go b/internal/config/config.go index c4fbf3ff0..39b57272d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -9,7 +9,7 @@ import ( "reflect" "strings" - "github.com/rsteube/carapace/pkg/xdg" + "github.com/carapace-sh/carapace/pkg/xdg" ) type configMap map[string]interface{} diff --git a/internal/env/env.go b/internal/env/env.go index 8f5a62cc5..75f1b5aba 100644 --- a/internal/env/env.go +++ b/internal/env/env.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) const ( diff --git a/internal/export/export.go b/internal/export/export.go index 61df61975..3a2aa1305 100644 --- a/internal/export/export.go +++ b/internal/export/export.go @@ -5,7 +5,7 @@ import ( "runtime/debug" "sort" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) type Export struct { @@ -30,7 +30,7 @@ func (e Export) MarshalJSON() ([]byte, error) { func version() string { if info, ok := debug.ReadBuildInfo(); ok { for _, dep := range info.Deps { - if dep.Path == "github.com/rsteube/carapace" { + if dep.Path == "github.com/carapace-sh/carapace" { return dep.Version } } diff --git a/internal/log/log.go b/internal/log/log.go index a36a846a0..394b0bfd0 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -6,9 +6,9 @@ import ( "log" "os" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/uid" - "github.com/rsteube/carapace/pkg/ps" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/uid" + "github.com/carapace-sh/carapace/pkg/ps" ) var LOG = log.New(ioutil.Discard, "", log.Flags()) diff --git a/internal/man/man.go b/internal/man/man.go index a4dabab29..a671b2b86 100644 --- a/internal/man/man.go +++ b/internal/man/man.go @@ -4,7 +4,7 @@ import ( "regexp" "strings" - "github.com/rsteube/carapace/third_party/golang.org/x/sys/execabs" + "github.com/carapace-sh/carapace/third_party/golang.org/x/sys/execabs" ) // Descriptions returns manpage descriptions for commands matching given prefix. diff --git a/internal/pflagfork/flag.go b/internal/pflagfork/flag.go index 79465df79..ce3a0765a 100644 --- a/internal/pflagfork/flag.go +++ b/internal/pflagfork/flag.go @@ -5,7 +5,7 @@ import ( "reflect" "strings" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/internal/shell/bash/action.go b/internal/shell/bash/action.go index ad2adc4f8..24257eba7 100644 --- a/internal/shell/bash/action.go +++ b/internal/shell/bash/action.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/bash/snippet.go b/internal/shell/bash/snippet.go index bd55e7f27..3013bb8da 100644 --- a/internal/shell/bash/snippet.go +++ b/internal/shell/bash/snippet.go @@ -4,7 +4,7 @@ package bash import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/bash_ble/action.go b/internal/shell/bash_ble/action.go index 62dbb8bab..2f0492b87 100644 --- a/internal/shell/bash_ble/action.go +++ b/internal/shell/bash_ble/action.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) // ActionRawValues formats values for bash_ble. diff --git a/internal/shell/bash_ble/snippet.go b/internal/shell/bash_ble/snippet.go index bf1c4e795..b3d8e94dd 100644 --- a/internal/shell/bash_ble/snippet.go +++ b/internal/shell/bash_ble/snippet.go @@ -5,8 +5,8 @@ import ( "fmt" "regexp" - "github.com/rsteube/carapace/internal/shell/bash" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/shell/bash" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/elvish/action.go b/internal/shell/elvish/action.go index 3a592034c..984bec3f5 100644 --- a/internal/shell/elvish/action.go +++ b/internal/shell/elvish/action.go @@ -4,9 +4,9 @@ import ( "encoding/json" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/ui" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/elvish/snippet.go b/internal/shell/elvish/snippet.go index a06f3380a..95d18c93f 100644 --- a/internal/shell/elvish/snippet.go +++ b/internal/shell/elvish/snippet.go @@ -4,7 +4,7 @@ package elvish import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/export/action.go b/internal/shell/export/action.go index 3504347ee..85bf3b21e 100644 --- a/internal/shell/export/action.go +++ b/internal/shell/export/action.go @@ -3,8 +3,8 @@ package export import ( "encoding/json" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/export" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/export" ) func ActionRawValues(currentWord string, meta common.Meta, values common.RawValues) string { diff --git a/internal/shell/export/snippet.go b/internal/shell/export/snippet.go index 8314c2fcb..bfd9dd9e1 100644 --- a/internal/shell/export/snippet.go +++ b/internal/shell/export/snippet.go @@ -4,7 +4,7 @@ package export import ( "encoding/json" - "github.com/rsteube/carapace/internal/pflagfork" + "github.com/carapace-sh/carapace/internal/pflagfork" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/internal/shell/fish/action.go b/internal/shell/fish/action.go index d5f68d8b5..c7a8ba1a0 100644 --- a/internal/shell/fish/action.go +++ b/internal/shell/fish/action.go @@ -2,7 +2,7 @@ package fish import ( "fmt" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" "strings" ) diff --git a/internal/shell/fish/snippet.go b/internal/shell/fish/snippet.go index 75a4875e5..71efead27 100644 --- a/internal/shell/fish/snippet.go +++ b/internal/shell/fish/snippet.go @@ -4,7 +4,7 @@ package fish import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/ion/action.go b/internal/shell/ion/action.go index 71b20cfef..5549baff7 100644 --- a/internal/shell/ion/action.go +++ b/internal/shell/ion/action.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/nushell/action.go b/internal/shell/nushell/action.go index d61953d37..221ebdeb7 100644 --- a/internal/shell/nushell/action.go +++ b/internal/shell/nushell/action.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) type record struct { diff --git a/internal/shell/nushell/snippet.go b/internal/shell/nushell/snippet.go index 9d6cee42d..462c6f671 100644 --- a/internal/shell/nushell/snippet.go +++ b/internal/shell/nushell/snippet.go @@ -4,7 +4,7 @@ package nushell import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/nushell/style.go b/internal/shell/nushell/style.go index 9a8af3108..700d29151 100644 --- a/internal/shell/nushell/style.go +++ b/internal/shell/nushell/style.go @@ -3,7 +3,7 @@ package nushell import ( "strings" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" ) type nushellStyle struct { diff --git a/internal/shell/oil/action.go b/internal/shell/oil/action.go index 2ee591700..1b05561aa 100644 --- a/internal/shell/oil/action.go +++ b/internal/shell/oil/action.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/oil/snippet.go b/internal/shell/oil/snippet.go index 800d4745f..7699dcbd6 100644 --- a/internal/shell/oil/snippet.go +++ b/internal/shell/oil/snippet.go @@ -4,7 +4,7 @@ package oil import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/powershell/action.go b/internal/shell/powershell/action.go index ba2353b61..9e21d5519 100644 --- a/internal/shell/powershell/action.go +++ b/internal/shell/powershell/action.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/ui" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui" ) var sanitizer = strings.NewReplacer( // TODO diff --git a/internal/shell/powershell/snippet.go b/internal/shell/powershell/snippet.go index fb70af8ce..5fe8740d8 100644 --- a/internal/shell/powershell/snippet.go +++ b/internal/shell/powershell/snippet.go @@ -4,7 +4,7 @@ package powershell import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/shell.go b/internal/shell/shell.go index 2c8b717dc..f3b538631 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -5,22 +5,22 @@ import ( "sort" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/shell/bash" - "github.com/rsteube/carapace/internal/shell/bash_ble" - "github.com/rsteube/carapace/internal/shell/elvish" - "github.com/rsteube/carapace/internal/shell/export" - "github.com/rsteube/carapace/internal/shell/fish" - "github.com/rsteube/carapace/internal/shell/ion" - "github.com/rsteube/carapace/internal/shell/nushell" - "github.com/rsteube/carapace/internal/shell/oil" - "github.com/rsteube/carapace/internal/shell/powershell" - "github.com/rsteube/carapace/internal/shell/tcsh" - "github.com/rsteube/carapace/internal/shell/xonsh" - "github.com/rsteube/carapace/internal/shell/zsh" - "github.com/rsteube/carapace/pkg/ps" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/shell/bash" + "github.com/carapace-sh/carapace/internal/shell/bash_ble" + "github.com/carapace-sh/carapace/internal/shell/elvish" + "github.com/carapace-sh/carapace/internal/shell/export" + "github.com/carapace-sh/carapace/internal/shell/fish" + "github.com/carapace-sh/carapace/internal/shell/ion" + "github.com/carapace-sh/carapace/internal/shell/nushell" + "github.com/carapace-sh/carapace/internal/shell/oil" + "github.com/carapace-sh/carapace/internal/shell/powershell" + "github.com/carapace-sh/carapace/internal/shell/tcsh" + "github.com/carapace-sh/carapace/internal/shell/xonsh" + "github.com/carapace-sh/carapace/internal/shell/zsh" + "github.com/carapace-sh/carapace/pkg/ps" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" ) diff --git a/internal/shell/tcsh/action.go b/internal/shell/tcsh/action.go index 292d17680..15de32595 100644 --- a/internal/shell/tcsh/action.go +++ b/internal/shell/tcsh/action.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/tcsh/snippet.go b/internal/shell/tcsh/snippet.go index 422b62481..1fa6a1380 100644 --- a/internal/shell/tcsh/snippet.go +++ b/internal/shell/tcsh/snippet.go @@ -4,7 +4,7 @@ package tcsh import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/xonsh/action.go b/internal/shell/xonsh/action.go index 54c34640b..024f3f633 100644 --- a/internal/shell/xonsh/action.go +++ b/internal/shell/xonsh/action.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( // TODO diff --git a/internal/shell/xonsh/snippet.go b/internal/shell/xonsh/snippet.go index f9a9254ad..18f71291e 100644 --- a/internal/shell/xonsh/snippet.go +++ b/internal/shell/xonsh/snippet.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/xonsh/style.go b/internal/shell/xonsh/style.go index 000f853e2..0927c7c0d 100644 --- a/internal/shell/xonsh/style.go +++ b/internal/shell/xonsh/style.go @@ -3,7 +3,7 @@ package xonsh import ( "strings" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" ) func convertStyle(s string) string { diff --git a/internal/shell/zsh/action.go b/internal/shell/zsh/action.go index 4cde528e8..f18a89888 100644 --- a/internal/shell/zsh/action.go +++ b/internal/shell/zsh/action.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/common" ) var sanitizer = strings.NewReplacer( diff --git a/internal/shell/zsh/message.go b/internal/shell/zsh/message.go index 0dd8fea25..514de5101 100644 --- a/internal/shell/zsh/message.go +++ b/internal/shell/zsh/message.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" ) type message struct { diff --git a/internal/shell/zsh/namedDirectory.go b/internal/shell/zsh/namedDirectory.go index b159d4b98..07277731e 100644 --- a/internal/shell/zsh/namedDirectory.go +++ b/internal/shell/zsh/namedDirectory.go @@ -3,7 +3,7 @@ package zsh import ( "strings" - "github.com/rsteube/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/env" ) type namedDirectories map[string]string diff --git a/internal/shell/zsh/snippet.go b/internal/shell/zsh/snippet.go index 27611e3b0..94f2fb346 100644 --- a/internal/shell/zsh/snippet.go +++ b/internal/shell/zsh/snippet.go @@ -4,7 +4,7 @@ package zsh import ( "fmt" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" ) diff --git a/internal/shell/zsh/zstyle.go b/internal/shell/zsh/zstyle.go index cec00e175..a33a23753 100644 --- a/internal/shell/zsh/zstyle.go +++ b/internal/shell/zsh/zstyle.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/ui" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui" ) type zstyles struct { diff --git a/internal/spec/spec.go b/internal/spec/spec.go index a5cb978df..c9be8681f 100644 --- a/internal/spec/spec.go +++ b/internal/spec/spec.go @@ -2,7 +2,7 @@ package spec import ( - "github.com/rsteube/carapace/internal/pflagfork" + "github.com/carapace-sh/carapace/internal/pflagfork" "github.com/spf13/cobra" "github.com/spf13/pflag" "gopkg.in/yaml.v3" diff --git a/internal/uid/uid_test.go b/internal/uid/uid_test.go index 746039f91..03eabd559 100644 --- a/internal/uid/uid_test.go +++ b/internal/uid/uid_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/rsteube/carapace/internal/assert" + "github.com/carapace-sh/carapace/internal/assert" "github.com/spf13/cobra" ) diff --git a/internalActions.go b/internalActions.go index e5b753aea..f363f24e0 100644 --- a/internalActions.go +++ b/internalActions.go @@ -6,10 +6,10 @@ import ( "path/filepath" "strings" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/pflagfork" - "github.com/rsteube/carapace/pkg/style" - "github.com/rsteube/carapace/pkg/util" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/pflagfork" + "github.com/carapace-sh/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/util" "github.com/spf13/cobra" ) diff --git a/invokedAction.go b/invokedAction.go index 922139280..7e55baeec 100644 --- a/invokedAction.go +++ b/invokedAction.go @@ -3,10 +3,10 @@ package carapace import ( "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/export" - _shell "github.com/rsteube/carapace/internal/shell" - "github.com/rsteube/carapace/pkg/match" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/export" + _shell "github.com/carapace-sh/carapace/internal/shell" + "github.com/carapace-sh/carapace/pkg/match" ) // InvokedAction is a logical alias for an Action whose (nested) callback was invoked. diff --git a/invokedAction_test.go b/invokedAction_test.go index 9e54b0cdb..1073684fc 100644 --- a/invokedAction_test.go +++ b/invokedAction_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/pkg/style" ) func TestToMultiParts(t *testing.T) { diff --git a/log.go b/log.go index d4cc10ec1..fc46cfa69 100644 --- a/log.go +++ b/log.go @@ -1,5 +1,5 @@ package carapace -import "github.com/rsteube/carapace/internal/log" +import "github.com/carapace-sh/carapace/internal/log" var LOG = log.LOG diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 3b1214477..6d09a92bf 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -4,8 +4,8 @@ import ( "runtime" "time" - "github.com/rsteube/carapace/internal/cache" - "github.com/rsteube/carapace/pkg/cache/key" + "github.com/carapace-sh/carapace/internal/cache" + "github.com/carapace-sh/carapace/pkg/cache/key" ) // Cache caches a function for given duration and keys. diff --git a/pkg/condition/condition.go b/pkg/condition/condition.go index 141261816..67e229724 100644 --- a/pkg/condition/condition.go +++ b/pkg/condition/condition.go @@ -6,8 +6,8 @@ import ( "runtime" "strings" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/util" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/util" ) // Arch returns true if any of the given strings matches `runtime.GOARCH`. diff --git a/pkg/execlog/execlog.go b/pkg/execlog/execlog.go index 7e89c2062..7e7197422 100644 --- a/pkg/execlog/execlog.go +++ b/pkg/execlog/execlog.go @@ -2,8 +2,8 @@ package execlog import ( shlex "github.com/carapace-sh/carapace-shlex" - "github.com/rsteube/carapace/internal/log" - "github.com/rsteube/carapace/third_party/golang.org/x/sys/execabs" + "github.com/carapace-sh/carapace/internal/log" + "github.com/carapace-sh/carapace/third_party/golang.org/x/sys/execabs" ) type Cmd struct { diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go index 7f8d5e435..9f067dc17 100644 --- a/pkg/ps/ps.go +++ b/pkg/ps/ps.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/rsteube/carapace/third_party/github.com/mitchellh/go-ps" + "github.com/carapace-sh/carapace/third_party/github.com/mitchellh/go-ps" ) // DetermineShell determines shell by parent process name. diff --git a/pkg/sandbox/sandbox.go b/pkg/sandbox/sandbox.go index ebb8ba071..213af9df4 100644 --- a/pkg/sandbox/sandbox.go +++ b/pkg/sandbox/sandbox.go @@ -9,11 +9,11 @@ import ( "strings" "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/internal/assert" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/export" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/internal/assert" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/export" "github.com/spf13/cobra" ) diff --git a/pkg/sandbox/sandbox_test.go b/pkg/sandbox/sandbox_test.go index 7f2a5cf97..85231c6c1 100644 --- a/pkg/sandbox/sandbox_test.go +++ b/pkg/sandbox/sandbox_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/rsteube/carapace" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/pkg/style/config.go b/pkg/style/config.go index 2babb77de..bc2380b78 100644 --- a/pkg/style/config.go +++ b/pkg/style/config.go @@ -1,7 +1,7 @@ package style import ( - "github.com/rsteube/carapace/internal/config" + "github.com/carapace-sh/carapace/internal/config" ) // Register a style configuration diff --git a/pkg/style/path.go b/pkg/style/path.go index 69bf45993..b5b4f850c 100644 --- a/pkg/style/path.go +++ b/pkg/style/path.go @@ -1,8 +1,8 @@ package style import ( - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/cli/lscolors" - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/ui" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/cli/lscolors" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui" ) type Context interface { diff --git a/pkg/style/style.go b/pkg/style/style.go index c552aa95a..d9ef9a32b 100644 --- a/pkg/style/style.go +++ b/pkg/style/style.go @@ -4,7 +4,7 @@ package style import ( "strings" - "github.com/rsteube/carapace/third_party/github.com/elves/elvish/pkg/ui" + "github.com/carapace-sh/carapace/third_party/github.com/elves/elvish/pkg/ui" ) var ( diff --git a/pkg/x/x.go b/pkg/x/x.go index 06d73009a..b15f07f29 100644 --- a/pkg/x/x.go +++ b/pkg/x/x.go @@ -2,7 +2,7 @@ package x import ( - "github.com/rsteube/carapace/internal/export" + "github.com/carapace-sh/carapace/internal/export" "github.com/spf13/cobra" ) diff --git a/storage.go b/storage.go index e1106a487..fa83a5ce1 100644 --- a/storage.go +++ b/storage.go @@ -5,8 +5,8 @@ import ( "strings" "sync" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/uid" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/uid" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/third_party/github.com/drone/envsubst/funcs.go b/third_party/github.com/drone/envsubst/funcs.go index a3ed0a6f3..57919d7c7 100644 --- a/third_party/github.com/drone/envsubst/funcs.go +++ b/third_party/github.com/drone/envsubst/funcs.go @@ -6,7 +6,7 @@ import ( "unicode" "unicode/utf8" - "github.com/rsteube/carapace/third_party/github.com/drone/envsubst/path" + "github.com/carapace-sh/carapace/third_party/github.com/drone/envsubst/path" ) // defines a parameter substitution function. diff --git a/third_party/github.com/drone/envsubst/template.go b/third_party/github.com/drone/envsubst/template.go index 367e5654f..cf3c664c8 100644 --- a/third_party/github.com/drone/envsubst/template.go +++ b/third_party/github.com/drone/envsubst/template.go @@ -5,7 +5,7 @@ import ( "io" "io/ioutil" - "github.com/rsteube/carapace/third_party/github.com/drone/envsubst/parse" + "github.com/carapace-sh/carapace/third_party/github.com/drone/envsubst/parse" ) // state represents the state of template execution. It is not part of the diff --git a/third_party/github.com/hexops/gotextdiff/diff.go b/third_party/github.com/hexops/gotextdiff/diff.go index 74222c1b0..20533a1ad 100644 --- a/third_party/github.com/hexops/gotextdiff/diff.go +++ b/third_party/github.com/hexops/gotextdiff/diff.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff/span" + "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff/span" ) // TextEdit represents a change to a section of a document. diff --git a/third_party/github.com/hexops/gotextdiff/myers/diff.go b/third_party/github.com/hexops/gotextdiff/myers/diff.go index 5a82633f6..76f03c2f1 100644 --- a/third_party/github.com/hexops/gotextdiff/myers/diff.go +++ b/third_party/github.com/hexops/gotextdiff/myers/diff.go @@ -8,8 +8,8 @@ package myers import ( "strings" - diff "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff" - "github.com/rsteube/carapace/third_party/github.com/hexops/gotextdiff/span" + diff "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff" + "github.com/carapace-sh/carapace/third_party/github.com/hexops/gotextdiff/span" ) // Sources: diff --git a/traverse.go b/traverse.go index eb8a747b9..8d3397a9e 100644 --- a/traverse.go +++ b/traverse.go @@ -3,10 +3,10 @@ package carapace import ( "strings" - "github.com/rsteube/carapace/internal/common" - "github.com/rsteube/carapace/internal/env" - "github.com/rsteube/carapace/internal/pflagfork" - "github.com/rsteube/carapace/pkg/style" + "github.com/carapace-sh/carapace/internal/common" + "github.com/carapace-sh/carapace/internal/env" + "github.com/carapace-sh/carapace/internal/pflagfork" + "github.com/carapace-sh/carapace/pkg/style" "github.com/spf13/cobra" )