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
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,17 @@ jobs:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
if: steps.release.outputs.release_created
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Run GoReleaser
if: steps.release.outputs.release_created
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
args: release --clean
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2

project_name: t

archives:
- files:
- LICENSE.md
- README.md
name_template: >-
t_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
wrap_in_directory: true

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
goarch:
- amd64
- arm64
goos:
- darwin
- linux
ldflags:
- -s -w -X github.com/unfunco/t/internal/version.SemanticVersion={{ .Version }}

checksum:
name_template: checksums.txt
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# t

Manage todo lists in the CLI.

## Getting started

### Installation and usage

Add an item to the general todo list.

```bash
t "Do something"
```

Add an item to today's todo list.

```bash
# --tomorrow works too
t "Do something today" --today
```

Open the TUI.

```bash
t
```

### Development and testing

#### Requirements
Expand All @@ -15,6 +36,10 @@ git clone git@github.com:unfunco/t.git
cd t
```

```bash
go build
```

## License

© 2025 [Daniel Morris]\
Expand Down
7 changes: 4 additions & 3 deletions internal/cmd/t.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ func NewTCommand(in io.Reader, out, errOut io.Writer) *cobra.Command {

t := &cobra.Command{
Use: "t [title] [--flags]",
Short: "Interactive TODO manager for the CLI.",
Short: "Manage todo lists in the CLI.",
Long: heredoc.Doc(`
Interactive TODO manager for the command line.
Run without arguments to open the interactive interface.
The t command manages todo lists directly from the command line.
Add new todos, or launch an interactive interface to view and manage
your todos.
`),
Args: cobra.MaximumNArgs(1),
Version: version.SemanticVersion,
Expand Down