diff --git a/.gitignore b/.gitignore index 78593dc..e1c3fab 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,4 @@ # Dependency directories (remove the comment below to include it) # vendor/ -/joy \ No newline at end of file +/kit \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7804fb8..13d9f47 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 diff --git a/README.md b/README.md index f98c2b4..d3cf803 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Joy +# Kit This is a tool to enable local development of containerized applications. @@ -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`. diff --git a/go.mod b/go.mod index 02f41de..34521d5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/alexec/joy +module github.com/alexec/kit go 1.19 diff --git a/internal/proc/containerProc.go b/internal/proc/containerProc.go index 623efcb..7ce5320 100644 --- a/internal/proc/containerProc.go +++ b/internal/proc/containerProc.go @@ -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" diff --git a/internal/proc/hostProc.go b/internal/proc/hostProc.go index 88741d1..eaa6626 100644 --- a/internal/proc/hostProc.go +++ b/internal/proc/hostProc.go @@ -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" diff --git a/internal/types/joy.go b/internal/types/kit.go similarity index 99% rename from internal/types/joy.go rename to internal/types/kit.go index 8219e9d..8dde6ca 100644 --- a/internal/types/joy.go +++ b/internal/types/kit.go @@ -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"` diff --git a/joy.yaml b/kit.yaml similarity index 98% rename from joy.yaml rename to kit.yaml index 6e94412..17119f8 100644 --- a/joy.yaml +++ b/kit.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Pod metadata: - name: joy + name: kit spec: initContainers: - name: init diff --git a/main.go b/main.go index e4b666d..807818e 100644 --- a/main.go +++ b/main.go @@ -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" @@ -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 diff --git a/probe.go b/probe.go index 4750136..7988a25 100644 --- a/probe.go +++ b/probe.go @@ -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"