Skip to content

Commit

Permalink
feat: rename to kit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Dec 22, 2022
1 parent 75f67e3 commit 60685e1
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

# Dependency directories (remove the comment below to include it)
# vendor/
/joy
/kit
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ changelog:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
brews:
- homepage: "https://github.com/alexec/joy"
description: "Joyful local dev."
- homepage: "https://github.com/alexec/kit"
description: "Kitful local dev."
folder: Formula
commit_author:
name: Alex Collins
email: alex_collins@intuit.com
tap:
owner: alexec
name: joy
name: kit
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Joy
# Kit

This is a tool to enable local development of containerized applications.

Expand All @@ -24,16 +24,16 @@ You can define probes that test each container and host process is up and runnin
## Install

```bash
brew tap alexec/joy --custom-remote https://github.com/alexec/joy
brew install joy
brew tap alexec/kit --custom-remote https://github.com/alexec/kit
brew install kit
```

## Usage

Describe you application in a [`joy.yaml`](joy.yaml) file using Kubernetes pod syntax, then start:
Describe you application in a [`kit.yaml`](kit.yaml) file using Kubernetes pod syntax, then start:

```bash
joy -h
kit -h
````

Logs are stored in `./logs`.
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/alexec/joy
module github.com/alexec/kit

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/proc/containerProc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package proc
import (
"context"
"fmt"
"github.com/alexec/joy/internal/types"
"github.com/alexec/kit/internal/types"
"io"
"os"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion internal/proc/hostProc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package proc
import (
"context"
"fmt"
"github.com/alexec/joy/internal/types"
"github.com/alexec/kit/internal/types"
"io"
"os"
"os/exec"
Expand Down
2 changes: 1 addition & 1 deletion internal/types/joy.go → internal/types/kit.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Metadata struct {
Name string `json:"name"`
}

type Joy struct {
type Kit struct {
Spec Spec `json:"spec"`
ApiVersion string `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion joy.yaml → kit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: joy
name: kit
spec:
initContainers:
- name: init
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"syscall"
"time"

"github.com/alexec/joy/internal/proc"
"github.com/alexec/joy/internal/types"
"github.com/alexec/kit/internal/proc"
"github.com/alexec/kit/internal/types"

"github.com/fatih/color"
"golang.org/x/crypto/ssh/terminal"
Expand Down Expand Up @@ -43,9 +43,9 @@ func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill, syscall.SIGTERM)
defer stop()

in, err := os.ReadFile("joy.yaml")
in, err := os.ReadFile("kit.yaml")
must(err)
pod := &types.Joy{}
pod := &types.Kit{}
must(yaml.UnmarshalStrict(in, pod))

var names []string
Expand Down
2 changes: 1 addition & 1 deletion probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"
"fmt"
"github.com/alexec/joy/internal/types"
"github.com/alexec/kit/internal/types"
"net"
"net/http"
"time"
Expand Down

0 comments on commit 60685e1

Please sign in to comment.