Skip to content

Commit

Permalink
Rename user id
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Aug 31, 2023
1 parent 9883505 commit 6140d14
Show file tree
Hide file tree
Showing 38 changed files with 191 additions and 191 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ builds:
binary: afx
ldflags:
- -s -w
- -X github.com/b4b4r07/afx/cmd.Version={{ .Version }}
- -X github.com/b4b4r07/afx/cmd.BuildTag={{ .Tag }}
- -X github.com/b4b4r07/afx/cmd.BuildSHA={{ .ShortCommit }}
- -X github.com/babarot/afx/cmd.Version={{ .Version }}
- -X github.com/babarot/afx/cmd.BuildTag={{ .Tag }}
- -X github.com/babarot/afx/cmd.BuildSHA={{ .ShortCommit }}
env:
- CGO_ENABLED=0
archives:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ GIT_SHA = $(shell git rev-parse --short HEAD)
GIT_TAG = $(shell git describe --tags --abbrev=0 --exact-match 2>/dev/null || echo "canary")
GIT_DIRTY = $(shell test -n "`git status --porcelain`" && echo "dirty" || echo "clean")

LDFLAGS += -X github.com/b4b4r07/afx/cmd.BuildSHA=${GIT_SHA}
LDFLAGS += -X github.com/b4b4r07/afx/cmd.GitTreeState=${GIT_DIRTY}
LDFLAGS += -X github.com/babarot/afx/cmd.BuildSHA=${GIT_SHA}
LDFLAGS += -X github.com/babarot/afx/cmd.GitTreeState=${GIT_DIRTY}

ifneq ($(GIT_TAG),)
LDFLAGS += -X github.com/b4b4r07/afx/cmd.BuildTag=${GIT_TAG}
LDFLAGS += -X github.com/babarot/afx/cmd.BuildTag=${GIT_TAG}
endif

all: build
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ AFX is a package manager for command-line tools and shell plugins. afx can allow

[![][afx-mark]][afx-link] [![][test-mark]][test-link] [![][release-mark]][release-link]

[afx-mark]: https://img.shields.io/github/v/release/b4b4r07/afx?color=EF2D5E&display_name=release&label=AFX&logo=alchemy&logoColor=EF2D5E&sort=semver
[afx-link]: https://github.com/b4b4r07/afx/releases
[afx-mark]: https://img.shields.io/github/v/release/babarot/afx?color=EF2D5E&display_name=release&label=AFX&logo=alchemy&logoColor=EF2D5E&sort=semver
[afx-link]: https://github.com/babarot/afx/releases

[test-mark]: https://github.com/b4b4r07/afx/actions/workflows/go.yaml/badge.svg
[test-link]: https://github.com/b4b4r07/afx/actions/workflows/go.yaml
[test-mark]: https://github.com/babarot/afx/actions/workflows/go.yaml/badge.svg
[test-link]: https://github.com/babarot/afx/actions/workflows/go.yaml

[release-mark]: https://github.com/b4b4r07/afx/actions/workflows/release.yaml/badge.svg
[release-link]: https://github.com/b4b4r07/afx/actions/workflows/release.yaml
[release-mark]: https://github.com/babarot/afx/actions/workflows/release.yaml/badge.svg
[release-link]: https://github.com/babarot/afx/actions/workflows/release.yaml

Full document is here: [AFX](https://babarot.me/afx/)

Expand Down Expand Up @@ -152,10 +152,10 @@ Download the binary from [GitHub Release][release] and drop it in your `$PATH`.
Or, bash installer has been provided so you can install afx by running this one command at your own risk ([detail](./hack/README.md)).

```bash
curl -sL https://raw.githubusercontent.com/b4b4r07/afx/HEAD/hack/install | bash
curl -sL https://raw.githubusercontent.com/babarot/afx/HEAD/hack/install | bash
```

[release]: https://github.com/b4b4r07/afx/releases/latest
[release]: https://github.com/babarot/afx/releases/latest
[website]: https://babarot.me/afx/

## License
Expand Down
8 changes: 4 additions & 4 deletions cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"os"
"os/signal"

"github.com/b4b4r07/afx/pkg/config"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/config"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/state"
"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"os"

"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"os"
"os/signal"

"github.com/b4b4r07/afx/pkg/config"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/logging"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/config"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/logging"
"github.com/babarot/afx/pkg/state"
"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"
)
Expand Down
16 changes: 8 additions & 8 deletions cmd/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"strings"

"github.com/AlecAivazis/survey/v2"
"github.com/b4b4r07/afx/pkg/config"
"github.com/b4b4r07/afx/pkg/env"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/github"
"github.com/b4b4r07/afx/pkg/helpers/shell"
"github.com/b4b4r07/afx/pkg/printers"
"github.com/b4b4r07/afx/pkg/state"
"github.com/b4b4r07/afx/pkg/update"
"github.com/babarot/afx/pkg/config"
"github.com/babarot/afx/pkg/env"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/github"
"github.com/babarot/afx/pkg/helpers/shell"
"github.com/babarot/afx/pkg/printers"
"github.com/babarot/afx/pkg/state"
"github.com/babarot/afx/pkg/update"
"github.com/fatih/color"
"github.com/mattn/go-shellwords"
)
Expand Down
10 changes: 5 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
"os"
"runtime"

"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/logging"
"github.com/b4b4r07/afx/pkg/update"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/logging"
"github.com/babarot/afx/pkg/update"
"github.com/spf13/cobra"
)

var Repository string = "b4b4r07/afx"
var Repository string = "babarot/afx"

var (
rootLong = templates.LongDesc(`Package manager for CLI`)
Expand Down
8 changes: 4 additions & 4 deletions cmd/self-update.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"runtime"

"github.com/AlecAivazis/survey/v2"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/github"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/github"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/creativeprojects/go-selfupdate"
"github.com/fatih/color"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -115,7 +115,7 @@ func (c *selfUpdateCmd) run(args []string) error {
return nil
}

release, err := github.NewRelease(ctx, "b4b4r07", "afx", "v"+latest.Version(), github.WithVerbose())
release, err := github.NewRelease(ctx, "babarot", "afx", "v"+latest.Version(), github.WithVerbose())
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sort"
"strings"

"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/printers"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/printers"
"github.com/babarot/afx/pkg/state"
"github.com/goccy/go-yaml"
"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"

"github.com/AlecAivazis/survey/v2"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/state"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"os"

"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/state"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"os"
"os/signal"

"github.com/b4b4r07/afx/pkg/config"
"github.com/b4b4r07/afx/pkg/errors"
"github.com/b4b4r07/afx/pkg/helpers/templates"
"github.com/b4b4r07/afx/pkg/state"
"github.com/babarot/afx/pkg/config"
"github.com/babarot/afx/pkg/errors"
"github.com/babarot/afx/pkg/helpers/templates"
"github.com/babarot/afx/pkg/state"
"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/package/gist.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gist type allows you to manage [Gist](https://gist.github.com/) pages as a plugi
gist:
- name: context-scripts
description: Get current GCP/Kubernetes context which you are on.
owner: b4b4r07
owner: babarot
id: bb820b99fdba605ea4bd4fb29046ce58
command:
link:
Expand Down
20 changes: 10 additions & 10 deletions docs/configuration/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ list | (required)

```yaml hl_lines="9 10" title="Simple case, just register to init.sh as load scripts"
github:
- name: b4b4r07/enhancd
- name: babarot/enhancd
description: A next-generation cd command with your interactive filter
owner: b4b4r07
owner: babarot
repo: enhancd
plugin:
env:
Expand All @@ -31,9 +31,9 @@ list | (required)

```yaml hl_lines="10 11" title="Using wildcards to register multiple files"
github:
- name: b4b4r07/zsh-prompt-minimal
- name: babarot/zsh-prompt-minimal
description: Super super super minimal prompt for zsh
owner: b4b4r07
owner: babarot
repo: zsh-prompt-minimal
plugin:
env:
Expand Down Expand Up @@ -74,9 +74,9 @@ map | `{}`

```yaml hl_lines="7 8 9"
github:
- name: b4b4r07/zsh-prompt-minimal
- name: babarot/zsh-prompt-minimal
description: Super super super minimal prompt for zsh
owner: b4b4r07
owner: babarot
repo: zsh-prompt-minimal
plugin:
env:
Expand All @@ -98,9 +98,9 @@ string | `""`

```yaml hl_lines="11 12 13" title="Login message if tpm is installed"
github:
- name: b4b4r07/enhancd
- name: babarot/enhancd
description: A next-generation cd command with your interactive filter
owner: b4b4r07
owner: babarot
repo: enhancd
plugin:
env:
Expand All @@ -109,7 +109,7 @@ string | `""`
- init.sh
snippet: |
echo "enhancd is enabled, cd command is overrided by enhancd"
echo "see github.com/b4b4r07/enhancd"
echo "see github.com/babarot/enhancd"
```

### snippet-prepare (beta)
Expand All @@ -124,7 +124,7 @@ string | `""`
2. Load `sources`
3. Run `snippet`

This option comes from https://github.com/b4b4r07/afx/issues/6.
This option comes from https://github.com/babarot/afx/issues/6.

=== "Case 1"

Expand Down
16 changes: 8 additions & 8 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ bash installer has been provided so you can install afx by running this one comm
=== "Latest"

```bash
curl -sL https://raw.githubusercontent.com/b4b4r07/afx/HEAD/hack/install | bash
curl -sL https://raw.githubusercontent.com/babarot/afx/HEAD/hack/install | bash
```

=== "Version"

```bash
curl -sL https://raw.githubusercontent.com/b4b4r07/afx/HEAD/hack/install | AFX_VERSION=v0.1.24 bash
curl -sL https://raw.githubusercontent.com/babarot/afx/HEAD/hack/install | AFX_VERSION=v0.1.24 bash
```

env | description | default
---|---|---
`AFX_VERSION` | afx version, available versions are on [releases](https://github.com/b4b4r07/afx/releases) | `latest`
`AFX_VERSION` | afx version, available versions are on [releases](https://github.com/babarot/afx/releases) | `latest`
`AFX_BIN_DIR` | Path to install | `~/bin`

### go install

For Go developers.

```bash
go install github.com/b4b4r07/afx@latest
go install github.com/babarot/afx@latest
```

### manually

Download the pre-compiled binaries from the [OSS releases page][releases] and copy them to the desired location.

[releases]: https://github.com/b4b4r07/afx/releases
[releases]: https://github.com/babarot/afx/releases

## Write YAML

Expand All @@ -58,9 +58,9 @@ github:
link:
- from: '*jq*'
to: jq
- name: b4b4r07/enhancd
- name: babarot/enhancd
description: A next-generation cd command with your interactive filter
owner: b4b4r07
owner: babarot
repo: enhancd
plugin:
env:
Expand Down Expand Up @@ -95,7 +95,7 @@ $ source <(afx init)

```sh
$ afx init
source /Users/babarot/.afx/github.com/b4b4r07/enhancd/init.sh
source /Users/babarot/.afx/github.com/babarot/enhancd/init.sh
export ENHANCD_FILTER="fzf --height 25% --reverse --ansi:fzy"
```

Expand Down
Loading

0 comments on commit 6140d14

Please sign in to comment.