Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Chansat DC",
"name": "Chankat DC",
"build": {
"dockerfile": "Containerfile"
},
Expand Down
2 changes: 1 addition & 1 deletion .github/semantic-release-goreleaser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { promisify } from "node:util";
const run = promisify(execFile);

export async function publish(_config, context) {
const notesPath = `${process.env.RUNNER_TEMP}/chansat-release-notes.md`;
const notesPath = `${process.env.RUNNER_TEMP}/chankat-release-notes.md`;
await writeFile(notesPath, context.nextRelease.notes, "utf8");

const { stdout, stderr } = await run(
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2

project_name: chansat
project_name: chankat

builds:
- id: chansat
- id: chankat
main: ./cmd
binary: chansat
binary: chankat
env:
- CGO_ENABLED=0
goos:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)

build:
mkdir -p build
go build -ldflags "-X main.version=$(VERSION)" -o build/chansat ./cmd
go build -ldflags "-X main.version=$(VERSION)" -o build/chankat ./cmd

run:
go run ./cmd
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Chansat
# Chankat

<p align="center">
<img src="assets/mockup.png" alt="Chansat terminal interface mockup">
<img src="assets/mockup.png" alt="Chankat terminal interface mockup">
</p>

[![Tests](https://img.shields.io/github/actions/workflow/status/ahme-dev/chansat/test.yml?branch=main&label=tests)](https://github.com/ahme-dev/chansat/actions/workflows/test.yml)
[![Build](https://img.shields.io/github/actions/workflow/status/ahme-dev/chansat/build.yml?branch=main&label=build)](https://github.com/ahme-dev/chansat/actions/workflows/build.yml)
[![Code quality](https://img.shields.io/github/actions/workflow/status/ahme-dev/chansat/quality.yml?branch=main&label=code%20quality)](https://github.com/ahme-dev/chansat/actions/workflows/quality.yml)
[![Tests](https://img.shields.io/github/actions/workflow/status/ahme-dev/chankat/test.yml?branch=main&label=tests)](https://github.com/ahme-dev/chankat/actions/workflows/test.yml)
[![Build](https://img.shields.io/github/actions/workflow/status/ahme-dev/chankat/build.yml?branch=main&label=build)](https://github.com/ahme-dev/chankat/actions/workflows/build.yml)
[![Code quality](https://img.shields.io/github/actions/workflow/status/ahme-dev/chankat/quality.yml?branch=main&label=code%20quality)](https://github.com/ahme-dev/chankat/actions/workflows/quality.yml)

Track your work hours across tasks, projects and rates from your terminal.

Expand Down
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"chansat/internal/cli"
"chansat/internal/storage"
"chansat/internal/tui"
"chankat/internal/cli"
"chankat/internal/storage"
"chankat/internal/tui"
"context"
"fmt"
"os"
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 chansat
module chankat

go 1.25.0

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"chansat/internal/storage"
"chankat/internal/storage"
)

func Run(ctx context.Context, args []string, version string, stor *storage.Storage) error {
Expand All @@ -15,7 +15,7 @@ func Run(ctx context.Context, args []string, version string, stor *storage.Stora
case args[0] == "":
return fmt.Errorf("expected command, got nothing")
case args[0] == "version":
fmt.Printf("chansat %s\n", version)
fmt.Printf("chankat %s\n", version)
return nil
case args[0] == "rates" && len(args) == 1:
rates, err := stor.GetRates(ctx)
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/entries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestCreateEntry(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/payments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestCreatePayment(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestGetProjects(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/rates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestGetRates(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ func Open() (*Storage, error) {

func dataDir() (string, error) {
if dir := os.Getenv("XDG_DATA_HOME"); dir != "" {
return filepath.Join(dir, "chansat"), nil
return filepath.Join(dir, "chankat"), nil
}

home, err := os.UserHomeDir()
if err != nil {
return "", err
}

return filepath.Join(home, ".local", "share", "chansat"), nil
return filepath.Join(home, ".local", "share", "chankat"), nil
}

func (s *Storage) Migrate() error {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package storage_test
import (
"testing"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestOpenAndMigrate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestCreateTask(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/screens/payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"chansat/internal/storage"
"chansat/internal/tui/components"
"chankat/internal/storage"
"chankat/internal/tui/components"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/huh"
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/screens/payments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestPaymentItem(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/screens/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"chansat/internal/storage"
"chansat/internal/tui/components"
"chankat/internal/storage"
"chankat/internal/tui/components"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/huh"
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/screens/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"
)

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

"chansat/internal/storage"
"chansat/internal/tui/components"
"chankat/internal/storage"
"chankat/internal/tui/components"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/huh"
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/screens/rates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package screens
import (
"testing"

"chansat/internal/storage"
"chankat/internal/storage"
)

func TestRateItems(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/screens/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"chansat/internal/storage"
"chansat/internal/tui/components"
"chankat/internal/storage"
"chankat/internal/tui/components"

"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/bubbles/spinner"
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/screens/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"chansat/internal/storage"
"chankat/internal/storage"

tea "github.com/charmbracelet/bubbletea"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"chansat/internal/storage"
"chansat/internal/tui/screens"
"chankat/internal/storage"
"chankat/internal/tui/screens"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
Expand Down