Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
A more accurate rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed Sep 22, 2024
1 parent c6e152a commit 1b926fd
Show file tree
Hide file tree
Showing 55 changed files with 100 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .changes/0.23.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@

### Security Fixes

* Update Go's Docker module per Dependabot (https://github.com/ChrisWiegman/kana/pull/18)
* Update Go's Docker module per Dependabot (https://github.com/ChrisWiegman/kana-wordpress/pull/18)

## 0.6.1 - 2023-04-22

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
go mod vendor
go build \
-o ./build/kana \
-ldflags "-s -w -X github.com/ChrisWiegman/kana/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
-ldflags "-s -w -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
./cmd/...
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ linters-settings:
gocyclo:
min-complexity: 20
goimports:
local-prefixes: github.com/ChrisWiegman/kana
local-prefixes: github.com/ChrisWiegman/kana-wordpress
mnd:
# don't include the "operation" and "assign"
checks:
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
main: ./cmd/kana/main.go
binary: kana
ldflags:
- -s -w -X github.com/ChrisWiegman/kana/internal/cmd.Version={{.Version}} -X github.com/ChrisWiegman/kana/internal/cmd.Timestamp={{.Date}}
- -s -w -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Version={{.Version}} -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Timestamp={{.Date}}
- id: linux
goos:
- linux
Expand All @@ -25,7 +25,7 @@ builds:
main: ./cmd/kana/main.go
binary: kana
ldflags:
- -s -w -X github.com/ChrisWiegman/kana/internal/cmd.Version={{.Version}} -X github.com/ChrisWiegman/kana/internal/cmd.Timestamp={{.Date}}
- -s -w -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Version={{.Version}} -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Timestamp={{.Date}}

archives:
- id: macos
Expand Down Expand Up @@ -55,7 +55,7 @@ nfpms:
builds:
- linux
license: GPL-3.0 license
homepage: https://github.com/ChrisWiegman/kana
homepage: https://github.com/ChrisWiegman/kana-wordpress
maintainer: Chris Wiegman <[email protected]>
description: A simple, portable CLI for efficient WordPress development.
file_name_template: >-
Expand All @@ -79,5 +79,5 @@ brews:
license: GPL-3.0 license
test: |
system "#{bin}/kana version"
homepage: https://github.com/ChrisWiegman/kana
homepage: https://github.com/ChrisWiegman/kana-wordpress
description: A simple, portable CLI for efficient WordPress development.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ and is generated by [Changie](https://github.com/miniscruff/changie).

### Security Fixes

* Update Go's Docker module per Dependabot (https://github.com/ChrisWiegman/kana/pull/18)
* Update Go's Docker module per Dependabot (https://github.com/ChrisWiegman/kana-wordpress/pull/18)

## 0.6.1 - 2023-04-22

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV PATH="$PATH:/usr/local/go/bin"
CMD go build \
-o ./build/kana \
-buildvcs=false \
-ldflags "-s -w -X github.com/ChrisWiegman/kana/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
-ldflags "-s -w -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
./cmd/... && \
go test \
-v \
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG := github.com/ChrisWiegman/kana
PKG := github.com/ChrisWiegman/kana-wordpress
VERSION := $(shell git describe --tags || echo "0.0.1")
TIMESTAMP := $(shell date -u '+%Y-%m-%d_%I:%M:%S%p')
ARGS = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
Expand Down Expand Up @@ -127,7 +127,7 @@ update-test-snapshot:
go build \
-o ./build/kana \
-buildvcs=false \
-ldflags "-s -w -X github.com/ChrisWiegman/kana/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
-ldflags "-s -w -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Version=1.0.0 -X github.com/ChrisWiegman/kana-wordpress/internal/cmd.Timestamp=2024-03-16_10:50:11PM" \
./cmd/... && \
UPDATE_SNAPS=true go test \
-v \
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@ Docker Desktop for Linux may work but I have not tested it.

# Installing Kana

There are a few options for installing Kana. You can use [Homebrew](https://brew.sh) (recommended), you can install it from [the "releases" page](https://github.com/ChrisWiegman/kana/releases) here or you can build it manually.
There are a few options for installing Kana. You can use [Homebrew](https://brew.sh) (recommended), you can install it from [the "releases" page](https://github.com/ChrisWiegman/kana-wordpress/releases) here or you can build it manually.

## Install from Homebrew

Installing from [Homebrew](https://brew.sh) is the recommended approach on both Mac and Linux as it allows for automatic updates when needed. To install from Homebrew run the following command:

```
brew install ChrisWiegman/kana/kana
brew install ChrisWiegman/kana-wordpress/kana
```

Note that, as there are numerous ways to install Docker, I have chosen, at least for now, to not list it as a dependency when installing via Homebrew. You'll want to make sure Docker is already installed or install it with `brew install --cask docker` if you're on Mac (see [this documentation](https://docs.docker.com/engine/install/) if you're in Linux).

## Download from GitHub releases

Simply download the latest release from our [release page](https://github.com/ChrisWiegman/kana/releases) and extract the CLI to a location accessible by your system PATH
Simply download the latest release from our [release page](https://github.com/ChrisWiegman/kana-wordpress/releases) and extract the CLI to a location accessible by your system PATH

**Note for Mac users** I have not signed the download copy so you'll need to manually allow it in your Mac settings if you download it from the releases page. Install it via Homebrew to avoid this step.

## Build manually

You will need [Go](https://go.dev) installed locally to build the application.

1. Clone this repo `git clone https://github.com/ChrisWiegman/kana.git`
1. Clone this repo `git clone https://github.com/ChrisWiegman/kana-wordpress.git`
2. CD into the repo and run `make install`

Assuming you have Go properly setup with `GOBIN` in your system path, you should now be able to use Kana. Run `kana version` to test.
Expand Down Expand Up @@ -147,7 +147,7 @@ By default Kana will open the appropriate WordPress site. To open the database o

Note that by default Kana will open the database in [phpMyAdmin](https://www.phpmyadmin.net). You can also tell Kana to open the database in [TablePlus](https://tableplus.com) instead by setting the `databaseClient` configuration setting to `tableplus`.

Currently pphpMyAdmin and TablePlus are the only two clients I've configured. If you would like to use a different client, please [open an issue](https://github.com/ChrisWiegman/kana/issues) and I'd be happy to take a look.
Currently pphpMyAdmin and TablePlus are the only two clients I've configured. If you would like to use a different client, please [open an issue](https://github.com/ChrisWiegman/kana-wordpress/issues) and I'd be happy to take a look.

> *Note* Opening the Database directly with Kana doesn't work for SQLite databases. To open a SQLite database directly navigate to `<your-site-folder>/wp-content/database/.ht.sqlite` and open the file directly.
Expand Down Expand Up @@ -305,7 +305,7 @@ I hate apps that leave leftovers on your machine. When stopping a site all Docke
1. Delete the application from your $GOBIN or system path (or run `brew uninstall kana` if installed via homebrew)
2. Delete the `~/.config/kana` folder which contains all site and app configuration
3. (Mac only) Delete the `Kana Development CA` certificate from the _System_ keychain in the _Keychain Access_ app
4. If installed via homebrew run `brew untap ChrisWiegman/kana` to remove the Homebrew tap
4. If installed via homebrew run `brew untap ChrisWiegman/kana-wordpress` to remove the Homebrew tap

You can also safely remove any new images added however it is not a requirement. Many other apps might share those images leading to your system simply needing to download them again.

Expand Down
2 changes: 1 addition & 1 deletion cmd/kana/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/ChrisWiegman/kana/internal/cmd"
import "github.com/ChrisWiegman/kana-wordpress/internal/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ChrisWiegman/kana
module github.com/ChrisWiegman/kana-wordpress

go 1.23.0

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/changelog.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/console"

"github.com/pkg/browser"
"github.com/spf13/cobra"
Expand All @@ -13,7 +13,7 @@ func changelog(consoleOutput *console.Console) *cobra.Command {
Short: "Open Kana's changelog in your browser",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
err := browser.OpenURL("https://github.com/ChrisWiegman/kana/releases")
err := browser.OpenURL("https://github.com/ChrisWiegman/kana-wordpress/releases")
if err != nil {
consoleOutput.Error(err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/changelog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"testing"

"github.com/ChrisWiegman/kana/tests"
"github.com/ChrisWiegman/kana-wordpress/tests"
)

func TestChangelog(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"testing"

"github.com/ChrisWiegman/kana/tests"
"github.com/ChrisWiegman/kana-wordpress/tests"
)

func TestConfig(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"fmt"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"os"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"path/filepath"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"fmt"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"strconv"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/aquasecurity/table"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"testing"

"github.com/ChrisWiegman/kana/tests"
"github.com/ChrisWiegman/kana-wordpress/tests"
)

func TestList(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"fmt"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"runtime"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"testing"

"github.com/ChrisWiegman/kana/tests"
"github.com/ChrisWiegman/kana-wordpress/tests"
)

func TestRoot(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"os"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/helpers"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/helpers"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"fmt"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/trust.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/settings"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/settings"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/console"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"testing"

"github.com/ChrisWiegman/kana/tests"
"github.com/ChrisWiegman/kana-wordpress/tests"
)

func TestVersion(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/wp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/xdebug.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana/internal/site"
"github.com/ChrisWiegman/kana-wordpress/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/site"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"os/exec"
"strings"

"github.com/ChrisWiegman/kana/internal/console"
"github.com/ChrisWiegman/kana-wordpress/internal/console"

"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
Expand Down
Loading

0 comments on commit 1b926fd

Please sign in to comment.