Skip to content

Commit ebd3018

Browse files
committed
Add bodyweights commands
1 parent d68e59d commit ebd3018

7 files changed

Lines changed: 439 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: 'Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: 'Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: 'Maintenance'
14+
labels:
15+
- 'chore'
16+
- 'maintenance'
17+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
version-resolver:
19+
major:
20+
labels:
21+
- 'major'
22+
minor:
23+
labels:
24+
- 'minor'
25+
patch:
26+
labels:
27+
- 'patch'
28+
default: patch
29+
template: |
30+
## Changes
31+
32+
$CHANGES
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@v7
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6.0.2
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@v6.4.0
20+
with:
21+
go-version-file: go.mod
22+
23+
- uses: goreleaser/goreleaser-action@v7.0.0
24+
with:
25+
version: latest
26+
args: release --clean
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
builds:
4+
- binary: liftoff
5+
env:
6+
- CGO_ENABLED=0
7+
goos:
8+
- darwin
9+
- linux
10+
- windows
11+
goarch:
12+
- amd64
13+
- arm64
14+
ignore:
15+
- goos: windows
16+
goarch: arm64
17+
ldflags:
18+
- -s -w
19+
20+
archives:
21+
- formats:
22+
- zip
23+
name_template: "liftoff_{{ .Os }}_{{ .Arch }}"
24+
25+
checksum:
26+
name_template: checksums.txt
27+
28+
release:
29+
draft: true
30+
replace_existing_draft: true
31+
replace_existing_artifacts: true

README.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# liftoff-cli
2+
3+
A command-line interface for the [Liftoff](https://getgymbros.com) fitness app.
4+
5+
## Install
6+
7+
Download the latest release for your platform from the [releases page](https://github.com/DTTerastar/liftoff-cli/releases/latest), unzip it, and place the binary in `~/bin`.
8+
9+
**macOS (Apple Silicon):**
10+
```sh
11+
curl -Lo /tmp/liftoff.zip https://github.com/DTTerastar/liftoff-cli/releases/latest/download/liftoff_darwin_arm64.zip
12+
unzip -jo /tmp/liftoff.zip -d ~/bin && rm /tmp/liftoff.zip
13+
chmod +x ~/bin/liftoff
14+
```
15+
16+
**macOS (Intel):**
17+
```sh
18+
curl -Lo /tmp/liftoff.zip https://github.com/DTTerastar/liftoff-cli/releases/latest/download/liftoff_darwin_amd64.zip
19+
unzip -jo /tmp/liftoff.zip -d ~/bin && rm /tmp/liftoff.zip
20+
chmod +x ~/bin/liftoff
21+
```
22+
23+
**Linux (amd64):**
24+
```sh
25+
curl -Lo /tmp/liftoff.zip https://github.com/DTTerastar/liftoff-cli/releases/latest/download/liftoff_linux_amd64.zip
26+
unzip -jo /tmp/liftoff.zip -d ~/bin && rm /tmp/liftoff.zip
27+
chmod +x ~/bin/liftoff
28+
```
29+
30+
Make sure `~/bin` is in your `PATH`. If not, add this to your `~/.zshrc` or `~/.bashrc`:
31+
```sh
32+
export PATH="$HOME/bin:$PATH"
33+
```
34+
35+
## Usage
36+
37+
**Log in:**
38+
```sh
39+
liftoff auth login
40+
```
41+
42+
**List workouts (fitdown format):**
43+
```sh
44+
liftoff workouts list
45+
```
46+
47+
**Filter by date:**
48+
```sh
49+
liftoff workouts list --since 30d
50+
liftoff workouts list --since 2025-01-01
51+
```
52+
53+
**Output as JSON:**
54+
```sh
55+
liftoff workouts list --json
56+
```
57+
58+
**Show a single workout:**
59+
```sh
60+
liftoff workouts show <id>
61+
```
62+
63+
**Log out:**
64+
```sh
65+
liftoff auth logout
66+
```
67+
68+
## Output Format
69+
70+
Workouts are printed in [fitdown](https://github.com/datavis-tech/fitdown) format by default:
71+
72+
```
73+
Workout January 30, 2025
74+
75+
Machine Tricep Extension
76+
12@110
77+
2x6@125
78+
79+
Assisted Pull Ups
80+
3@-100
81+
82+
Scapular Pull Ups
83+
10@+0
84+
85+
Walking
86+
1.00mi 18:00
87+
```

0 commit comments

Comments
 (0)