updated package path

This commit is contained in:
rsteube 2024-03-11 19:24:09 +01:00
parent e8ee241794
commit 4c4ce2e07a
5562 changed files with 8380 additions and 8376 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "carapace", "name": "carapace",
"image": "ghcr.io/rsteube/carapace:v0.20.3", "image": "ghcr.io/carapace-sh/carapace",
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/elvish" "terminal.integrated.shell.linux": "/bin/elvish"
}, },
@ -10,5 +10,9 @@
"containerEnv": { "containerEnv": {
"TARGET": "/home/circleci/go/bin/carapace" "TARGET": "/home/circleci/go/bin/carapace"
}, },
"onCreateCommand": [ "sh", "-c", "cd cmd && go generate ./... && go install ./..."] "onCreateCommand": [
} "sh",
"-c",
"cd cmd && go generate ./... && go install ./..."
]
}

View File

@ -7,5 +7,5 @@ echo
$scriptdir/../cmd/carapace/carapace --condition \ $scriptdir/../cmd/carapace/carapace --condition \
| sed -r 's_(https://[^ ]+)_[\1](\1)_' \ | sed -r 's_(https://[^ ]+)_[\1](\1)_' \
| sed 's_^\([^ ]\+\) \+\(.*\)_- [\1]\(https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/conditions/#Condition\1) \2_' \ | sed 's_^\([^ ]\+\) \+\(.*\)_- [\1]\(https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/conditions/#Condition\1) \2_' \
| sed -e ':loop' -e 's_\(carapace-bin/pkg/condition/[^#]*\)[.]_\1/_' -e 't loop' | sed -e ':loop' -e 's_\(carapace-bin/pkg/condition/[^#]*\)[.]_\1/_' -e 't loop'

4
.github/macros.sh vendored
View File

@ -7,6 +7,6 @@ echo
$scriptdir/../cmd/carapace/carapace --macro \ $scriptdir/../cmd/carapace/carapace --macro \
| sed -r 's_(https://[^ ]+)_[\1](\1)_' \ | sed -r 's_(https://[^ ]+)_[\1](\1)_' \
| sed 's_^\([^ ]*\.\)\([^. ]\+\) \+\(.*\)_- [\1\2]\(https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/actions/\1#Action\2) \3_' \ | sed 's_^\([^ ]*\.\)\([^. ]\+\) \+\(.*\)_- [\1\2]\(https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/actions/\1#Action\2) \3_' \
| sed -e ':loop' -e 's_\(carapace-bin/pkg/actions/[^#]*\)[.]_\1/_' -e 't loop' \ | sed -e ':loop' -e 's_\(carapace-bin/pkg/actions/[^#]*\)[.]_\1/_' -e 't loop' \
| sed 's_https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/actions/bridge_https://pkg.go.dev/github.com/rsteube/carapace-bridge/pkg/actions/bridge_' | sed 's_https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/actions/bridge_https://pkg.go.dev/github.com/carapace-sh/carapace-bridge/pkg/actions/bridge_'

View File

@ -62,7 +62,7 @@ jobs:
doc: doc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/rsteube/carapace container: ghcr.io/carapace-sh/carapace
needs: build needs: build
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -92,7 +92,7 @@ jobs:
git config user.email rsteube@users.noreply.github.com git config user.email rsteube@users.noreply.github.com
git add . git add .
git commit -m "initial commit [ci skip]" git commit -m "initial commit [ci skip]"
git push --force https://rsteube:${GITHUB_TOKEN}@github.com/rsteube/carapace-bin.git master:gh-pages git push --force https://rsteube:${GITHUB_TOKEN}@github.com/carapace-sh/carapace-bin.git master:gh-pages
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,7 +34,7 @@ brews:
- -
name: carapace name: carapace
description: "multi-shell multi-command argument completer" description: "multi-shell multi-command argument completer"
homepage: "https://github.com/rsteube/carapace-bin" homepage: "https://github.com/carapace-sh/carapace-bin"
license: "MIT" license: "MIT"
repository: repository:
owner: rsteube owner: rsteube
@ -45,7 +45,7 @@ brews:
scoops: scoops:
- -
description: "multi-shell multi-command argument completer" description: "multi-shell multi-command argument completer"
homepage: "https://github.com/rsteube/carapace-bin" homepage: "https://github.com/carapace-sh/carapace-bin"
license: "MIT" license: "MIT"
repository: repository:
owner: rsteube owner: rsteube
@ -56,7 +56,7 @@ scoops:
aurs: aurs:
- -
description: "multi-shell multi-command argument completer" description: "multi-shell multi-command argument completer"
homepage: "https://github.com/rsteube/carapace-bin" homepage: "https://github.com/carapace-sh/carapace-bin"
license: "MIT" license: "MIT"
maintainers: maintainers:
- rsteube <rsteube@users.noreply.github.com> - rsteube <rsteube@users.noreply.github.com>

View File

@ -3,15 +3,15 @@
# carapace-bin # carapace-bin
[![PkgGoDev](https://pkg.go.dev/badge/github.com/rsteube/carapace-bin/pkg/actions)](https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/actions) [![PkgGoDev](https://pkg.go.dev/badge/github.com/carapace-sh/carapace-bin/pkg/actions)](https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/actions)
[![GoReportCard](https://goreportcard.com/badge/github.com/rsteube/carapace-bin)](https://goreportcard.com/report/github.com/rsteube/carapace-bin) [![GoReportCard](https://goreportcard.com/badge/github.com/carapace-sh/carapace-bin)](https://goreportcard.com/report/github.com/carapace-sh/carapace-bin)
[![documentation](https://img.shields.io/badge/&zwnj;-documentation-blue?logo=gitbook)](https://rsteube.github.io/carapace-bin/) [![documentation](https://img.shields.io/badge/&zwnj;-documentation-blue?logo=gitbook)](https://carapace-sh.github.io/carapace-bin/)
[![Completers](https://rsteube.github.io/carapace-bin/badge.svg)](https://rsteube.github.io/carapace-bin/completers.html) [![Completers](https://carapace-sh.github.io/carapace-bin/badge.svg)](https://carapace-sh.github.io/carapace-bin/completers.html)
[![Macros](https://rsteube.github.io/carapace-bin/macros-badge.svg)](https://rsteube.github.io/carapace-bin/spec/macros.html) [![Macros](https://carapace-sh.github.io/carapace-bin/macros-badge.svg)](https://carapace-sh.github.io/carapace-bin/spec/macros.html)
[![Packaging status](https://repology.org/badge/tiny-repos/carapace.svg)](https://repology.org/project/carapace/versions) [![Packaging status](https://repology.org/badge/tiny-repos/carapace.svg)](https://repology.org/project/carapace/versions)
[![faq](https://img.shields.io/badge/discussions-faq-white)](https://github.com/rsteube/carapace-bin/discussions/categories/q-a?discussions_q=category%3AQ%26A+label%3Afaq) [![faq](https://img.shields.io/badge/discussions-faq-white)](https://github.com/carapace-sh/carapace-bin/discussions/categories/q-a?discussions_q=category%3AQ%26A+label%3Afaq)
Carapace-bin provides argument completion for multiple CLI commands ([full list](https://rsteube.github.io/carapace-bin/completers.html)), and works across multiple POSIX and non-POSIX shells. Carapace-bin provides argument completion for multiple CLI commands ([full list](https://carapace-sh.github.io/carapace-bin/completers.html)), and works across multiple POSIX and non-POSIX shells.
You can read more about it here: _[A pragmatic approach to shell completion](https://dev.to/rsteube/a-pragmatic-approach-to-shell-completion-4gp0)_. You can read more about it here: _[A pragmatic approach to shell completion](https://dev.to/rsteube/a-pragmatic-approach-to-shell-completion-4gp0)_.
[![asciicast](https://asciinema.org/a/533283.svg)](https://asciinema.org/a/533283) [![asciicast](https://asciinema.org/a/533283.svg)](https://asciinema.org/a/533283)
@ -20,18 +20,18 @@ Supported shells:
- [Bash](https://www.gnu.org/software/bash/) - [Bash](https://www.gnu.org/software/bash/)
- [Elvish](https://elv.sh/) - [Elvish](https://elv.sh/)
- [Fish](https://fishshell.com/) - [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/) - [Nushell](https://www.nushell.sh/)
- [Oil](http://www.oilshell.org/) - [Oil](http://www.oilshell.org/)
- [Powershell](https://microsoft.com/powershell) - [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/issues/331))
- [Xonsh](https://xon.sh/) - [Xonsh](https://xon.sh/)
- [Zsh](https://www.zsh.org/) - [Zsh](https://www.zsh.org/)
## Getting Started ## Getting Started
Ensure carapace is added to [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) ([Installation](https://rsteube.github.io/carapace-bin/installation.html)). Ensure carapace is added to [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) ([Installation](https://carapace-sh.github.io/carapace-bin/installation.html)).
Then register the [completers](https://rsteube.github.io/carapace-bin/completers.html) ([Setup](https://rsteube.github.io/carapace-bin/setup.html)): Then register the [completers](https://carapace-sh.github.io/carapace-bin/completers.html) ([Setup](https://carapace-sh.github.io/carapace-bin/setup.html)):
```sh ```sh
# bash (~/.bashrc) # bash (~/.bashrc)

View File

@ -8,9 +8,9 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
lint "github.com/rsteube/carapace-bin/cmd/carapace-lint/cmd" lint "github.com/carapace-sh/carapace-bin/cmd/carapace-lint/cmd"
"github.com/rsteube/carapace/pkg/execlog" "github.com/carapace-sh/carapace/pkg/execlog"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/rsteube/carapace-bin/cmd/carapace-fmt/cmd" import "github.com/carapace-sh/carapace-bin/cmd/carapace-fmt/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -12,8 +12,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/rsteube/carapace/pkg/execlog" "github.com/carapace-sh/carapace/pkg/execlog"
"github.com/rsteube/carapace/pkg/util" "github.com/carapace-sh/carapace/pkg/util"
) )
func main() { func main() {
@ -24,7 +24,7 @@ func main() {
imports := make([]string, 0, len(names)) imports := make([]string, 0, len(names))
for _, name := range names { for _, name := range names {
imports = append(imports, fmt.Sprintf(` %v "github.com/rsteube/carapace-bin/completers/%v_completer/cmd"`, varName(name), name)) imports = append(imports, fmt.Sprintf(` %v "github.com/carapace-sh/carapace-bin/completers/%v_completer/cmd"`, varName(name), name))
} }
formattedNames := make([]string, 0) formattedNames := make([]string, 0)
@ -174,7 +174,7 @@ func macros() {
// hardcoded the bridge macros // hardcoded the bridge macros
imports := map[string]bool{ imports := map[string]bool{
`bridge "github.com/rsteube/carapace-bridge/pkg/actions/bridge"`: true, `bridge "github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"`: true,
} }
macros := []string{ macros := []string{
`"bridge.Argcomplete": spec.MacroV(bridge.ActionArgcomplete),`, `"bridge.Argcomplete": spec.MacroV(bridge.ActionArgcomplete),`,
@ -197,8 +197,8 @@ func macros() {
descriptions := map[string]string{ descriptions := map[string]string{
"bridge.Argcomplete": "bridges https://github.com/kislyuk/argcomplete", "bridge.Argcomplete": "bridges https://github.com/kislyuk/argcomplete",
"bridge.Bash": "bridges https://www.gnu.org/software/bash/", "bridge.Bash": "bridges https://www.gnu.org/software/bash/",
"bridge.Carapace": "bridges https://github.com/rsteube/carapace", "bridge.Carapace": "bridges https://github.com/carapace-sh/carapace",
"bridge.CarapaceBin": "bridges https://github.com/rsteube/carapace-bin", "bridge.CarapaceBin": "bridges https://github.com/carapace-sh/carapace-bin",
"bridge.Clap": "bridges https://github.com/clap-rs/clap", "bridge.Clap": "bridges https://github.com/clap-rs/clap",
"bridge.Click": "bridges https://github.com/pallets/click", "bridge.Click": "bridges https://github.com/pallets/click",
"bridge.Cobra": "bridges https://github.com/spf13/cobra", "bridge.Cobra": "bridges https://github.com/spf13/cobra",
@ -206,7 +206,7 @@ func macros() {
"bridge.Fish": "bridges https://fishshell.com/", "bridge.Fish": "bridges https://fishshell.com/",
"bridge.Inshellisense": "bridges https://github.com/microsoft/inshellisense", "bridge.Inshellisense": "bridges https://github.com/microsoft/inshellisense",
"bridge.Kingpin": "bridges https://github.com/alecthomas/kingpin", "bridge.Kingpin": "bridges https://github.com/alecthomas/kingpin",
"bridge.Macro": "bridges macros exposed with https://github.com/rsteube/carapace-spec", "bridge.Macro": "bridges macros exposed with https://github.com/carapace-sh/carapace-spec",
"bridge.Powershell": "bridges https://microsoft.com/powershell", "bridge.Powershell": "bridges https://microsoft.com/powershell",
"bridge.Urfavecli": "bridges https://github.com/urfave/cli", "bridge.Urfavecli": "bridges https://github.com/urfave/cli",
"bridge.Yargs": "bridges https://github.com/yargs/yargs", "bridge.Yargs": "bridges https://github.com/yargs/yargs",
@ -224,7 +224,7 @@ func macros() {
defer file.Close() defer file.Close()
pkg := strings.Replace(filepath.ToSlash(filepath.Dir(strings.TrimPrefix(path, root+"/pkg/actions/"))), "/", ".", -1) pkg := strings.Replace(filepath.ToSlash(filepath.Dir(strings.TrimPrefix(path, root+"/pkg/actions/"))), "/", ".", -1)
_import := fmt.Sprintf(` %v "github.com/rsteube/carapace-bin/pkg/actions/%v"`, strings.Replace(pkg, ".", "_", -1), strings.Replace(pkg, ".", "/", -1)) _import := fmt.Sprintf(` %v "github.com/carapace-sh/carapace-bin/pkg/actions/%v"`, strings.Replace(pkg, ".", "_", -1), strings.Replace(pkg, ".", "/", -1))
scanner := bufio.NewScanner(file) scanner := bufio.NewScanner(file)
for scanner.Scan() { for scanner.Scan() {
@ -278,7 +278,7 @@ func macros() {
import ( import (
%v %v
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
) )
func init() { func init() {
@ -349,8 +349,8 @@ func conditions() {
content := fmt.Sprintf(`package conditions content := fmt.Sprintf(`package conditions
import ( import (
"github.com/rsteube/carapace-bin/internal/condition" "github.com/carapace-sh/carapace-bin/internal/condition"
"github.com/rsteube/carapace-spec/pkg/macro" "github.com/carapace-sh/carapace-spec/pkg/macro"
) )
func init() { func init() {

View File

@ -7,7 +7,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/rsteube/carapace-bin/cmd/carapace-lint/cmd" import "github.com/carapace-sh/carapace-bin/cmd/carapace-lint/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -10,7 +10,7 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -48,7 +48,7 @@ func (c *Command) Format() string {
pattern := `package cmd pattern := `package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/rsteube/carapace-bin/cmd/carapace-parse/cmd" import "github.com/carapace-sh/carapace-bin/cmd/carapace-parse/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
) )
func main() { func main() {

View File

@ -3,8 +3,8 @@ package action
import ( import (
"encoding/json" "encoding/json"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/style" "github.com/carapace-sh/carapace/pkg/style"
) )
type CompleterOpts struct { type CompleterOpts struct {

View File

@ -3,8 +3,8 @@ package cmd
import ( import (
"os" "os"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -8,8 +8,8 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/rsteube/carapace-bin/pkg/env" "github.com/carapace-sh/carapace-bin/pkg/env"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/pkg/conditions" "github.com/carapace-sh/carapace-bin/pkg/conditions"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -76,7 +76,7 @@ func printCondition(name string) {
fmt.Printf(`signature: $%v%v fmt.Printf(`signature: $%v%v
description: %v description: %v
reference: https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/conditions/%v#Condition%v reference: https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/conditions/%v#Condition%v
`, name, signature, m.Description, filepath.Dir(path), filepath.Base(path)) `, name, signature, m.Description, filepath.Dir(path), filepath.Base(path))
} }
} }

View File

@ -6,11 +6,11 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/action" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/action"
"github.com/rsteube/carapace-bridge/pkg/actions/bridge" "github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"
shlex "github.com/rsteube/carapace-shlex" shlex "github.com/carapace-sh/carapace-shlex"
"github.com/rsteube/carapace/pkg/style" "github.com/carapace-sh/carapace/pkg/style"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -9,11 +9,11 @@ import (
"slices" "slices"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/action" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/action"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/completers" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/completers"
"github.com/rsteube/carapace-bridge/pkg/actions/bridge" "github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"
"github.com/rsteube/carapace-bridge/pkg/bridges" "github.com/carapace-sh/carapace-bridge/pkg/bridges"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,13 +3,13 @@ package cmd
import ( import (
"testing" "testing"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/sandbox" "github.com/carapace-sh/carapace/pkg/sandbox"
"github.com/rsteube/carapace/pkg/style" "github.com/carapace-sh/carapace/pkg/style"
) )
func TestInvokeFlags(t *testing.T) { func TestInvokeFlags(t *testing.T) {
sandbox.Package(t, "github.com/rsteube/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) { sandbox.Package(t, "github.com/carapace-sh/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) {
s.Run("tail", "export", "tail", "--fo"). s.Run("tail", "export", "tail", "--fo").
Expect(carapace.ActionStyledValuesDescribed( Expect(carapace.ActionStyledValuesDescribed(
"--follow", "output appended data as the file grows", style.Yellow, "--follow", "output appended data as the file grows", style.Yellow,
@ -27,7 +27,7 @@ func TestInvokeFlags(t *testing.T) {
} }
func TestInvokePositional(t *testing.T) { func TestInvokePositional(t *testing.T) {
sandbox.Package(t, "github.com/rsteube/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) { sandbox.Package(t, "github.com/carapace-sh/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) {
s.Run("git", "export", "git", "checko"). s.Run("git", "export", "git", "checko").
Expect(carapace.Batch( Expect(carapace.Batch(
carapace.ActionValuesDescribed( carapace.ActionValuesDescribed(

View File

@ -6,8 +6,8 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
) )
func pathSnippet(shell string) (snippet string) { func pathSnippet(shell string) (snippet string) {

View File

@ -3,9 +3,9 @@ package lazyinit
import ( import (
"sort" "sort"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/completers" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/completers"
"github.com/rsteube/carapace-bridge/pkg/bridges" "github.com/carapace-sh/carapace-bridge/pkg/bridges"
envbridges "github.com/rsteube/carapace-bridge/pkg/env" envbridges "github.com/carapace-sh/carapace-bridge/pkg/env"
) )
func Snippet(shell string) string { func Snippet(shell string) string {

View File

@ -5,12 +5,12 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/action" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/action"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/completers" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/completers"
"github.com/rsteube/carapace-bridge/pkg/bridges" "github.com/carapace-sh/carapace-bridge/pkg/bridges"
"github.com/rsteube/carapace-bridge/pkg/env" "github.com/carapace-sh/carapace-bridge/pkg/env"
"github.com/rsteube/carapace/pkg/style" "github.com/carapace-sh/carapace/pkg/style"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -7,10 +7,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/pkg/actions" "github.com/carapace-sh/carapace-bin/pkg/actions"
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
"github.com/rsteube/carapace/pkg/execlog" "github.com/carapace-sh/carapace/pkg/execlog"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -98,7 +98,7 @@ func printMacro(name string) {
fmt.Printf(`signature: $carapace.%v%v fmt.Printf(`signature: $carapace.%v%v
description: %v description: %v
reference: https://pkg.go.dev/github.com/rsteube/carapace-bin/pkg/actions/%v#Action%v reference: https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/actions/%v#Action%v
`, name, signature, actions.MacroDescriptions[name], filepath.Dir(path), filepath.Base(path)) `, name, signature, actions.MacroDescriptions[name], filepath.Dir(path), filepath.Base(path))
} }
} }

View File

@ -3,12 +3,12 @@ package cmd
import ( import (
"testing" "testing"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/sandbox" "github.com/carapace-sh/carapace/pkg/sandbox"
) )
func TestMacros(t *testing.T) { func TestMacros(t *testing.T) {
sandbox.Package(t, "github.com/rsteube/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) { sandbox.Package(t, "github.com/carapace-sh/carapace-bin/cmd/carapace")(func(s *sandbox.Sandbox) {
s.Run("--macro", "color.XtermColorNames", "G"). s.Run("--macro", "color.XtermColorNames", "G").
Expect(carapace.ActionStyledValues( Expect(carapace.ActionStyledValues(
"Green", "color2", "Green", "color2",

View File

@ -7,14 +7,14 @@ import (
"os" "os"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/action" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/action"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/lazyinit" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/lazyinit"
"github.com/rsteube/carapace-bin/cmd/carapace/cmd/shim" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd/shim"
"github.com/rsteube/carapace-bin/pkg/actions" "github.com/carapace-sh/carapace-bin/pkg/actions"
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
"github.com/rsteube/carapace/pkg/ps" "github.com/carapace-sh/carapace/pkg/ps"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,8 +3,8 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -6,8 +6,8 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
) )
func removeObsolete() error { func removeObsolete() error {

View File

@ -9,8 +9,8 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/xdg" "github.com/carapace-sh/carapace/pkg/xdg"
) )
func Update() error { func Update() error {

View File

@ -8,7 +8,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
spec "github.com/rsteube/carapace-spec" spec "github.com/carapace-sh/carapace-spec"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace/pkg/style" "github.com/carapace-sh/carapace/pkg/style"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/rsteube/carapace-bin/cmd/carapace/cmd" "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd"
) )
var version = "develop" var version = "develop"

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
) )
func TestCarapace(t *testing.T) { func TestCarapace(t *testing.T) {

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/rsteube/carapace-bin/completers/acpi_completer/cmd" import "github.com/carapace-sh/carapace-bin/completers/acpi_completer/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -1,9 +1,9 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/fs" "github.com/carapace-sh/carapace-bin/pkg/actions/fs"
"github.com/rsteube/carapace-bin/pkg/actions/os" "github.com/carapace-sh/carapace-bin/pkg/actions/os"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/rsteube/carapace-bin/completers/acpid_completer/cmd" import "github.com/carapace-sh/carapace-bin/completers/acpid_completer/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/rsteube/carapace" "github.com/carapace-sh/carapace"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

Some files were not shown because too many files have changed in this diff Show More