forked from cinco/tmuxido
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2dc12e37c9 | ||
|
|
280a180d3e | ||
|
|
5f281b1f9e |
+41
-1
@@ -6,6 +6,9 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- badges
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
@@ -15,6 +18,41 @@ steps:
|
|||||||
- cargo clippy -- -D warnings
|
- cargo clippy -- -D warnings
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
- name: coverage
|
||||||
|
image: xd009642/tarpaulin
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
|
commands:
|
||||||
|
- apt-get update -qq && apt-get install -y -qq jq git curl
|
||||||
|
- cargo tarpaulin --out Json 2>/dev/null
|
||||||
|
- |
|
||||||
|
PCT=$(jq '.coverage | floor' tarpaulin-report.json)
|
||||||
|
if [ "$PCT" -ge 80 ]; then COLOR="brightgreen"
|
||||||
|
elif [ "$PCT" -ge 60 ]; then COLOR="yellow"
|
||||||
|
else COLOR="red"; fi
|
||||||
|
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
|
||||||
|
- |
|
||||||
|
git config --global user.email "ci@drone"
|
||||||
|
git config --global user.name "Drone CI"
|
||||||
|
REPO="https://cinco:${GITEA_TOKEN}@git.cincoeuzebio.com/cinco/Tmuxido.git"
|
||||||
|
if git clone --branch badges --single-branch "$REPO" _badges 2>/dev/null; then
|
||||||
|
cp coverage.svg _badges/
|
||||||
|
cd _badges
|
||||||
|
git add coverage.svg
|
||||||
|
git diff --cached --quiet || git commit -m "ci: update coverage badge [CI SKIP]"
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
mkdir _badges && cp coverage.svg _badges/
|
||||||
|
cd _badges && git init
|
||||||
|
git remote add origin "$REPO"
|
||||||
|
git checkout --orphan badges
|
||||||
|
git add coverage.svg
|
||||||
|
git commit -m "ci: add coverage badge"
|
||||||
|
git push origin badges
|
||||||
|
fi
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@@ -45,11 +83,13 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl jq
|
- apk add --no-cache curl jq
|
||||||
- |
|
- |
|
||||||
|
# Extract changelog entry for this tag (content between this and previous ## heading)
|
||||||
|
BODY=$(awk "/^## \[${DRONE_TAG}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
|
||||||
RELEASE_ID=$(curl -fsSL -X POST \
|
RELEASE_ID=$(curl -fsSL -X POST \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/releases" \
|
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/releases" \
|
||||||
-d "{\"tag_name\":\"$DRONE_TAG\",\"name\":\"$DRONE_TAG\",\"body\":\"Release $DRONE_TAG\"}" \
|
-d "{\"tag_name\":\"$DRONE_TAG\",\"name\":\"$DRONE_TAG\",\"body\":$(echo "$BODY" | jq -Rs .)}" \
|
||||||
| jq -r .id)
|
| jq -r .id)
|
||||||
for ASSET in tmuxido-x86_64-linux tmuxido-aarch64-linux; do
|
for ASSET in tmuxido-x86_64-linux tmuxido-aarch64-linux; do
|
||||||
curl -fsSL -X POST \
|
curl -fsSL -X POST \
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.2.2] - 2026-02-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Coverage badge generated by `cargo-tarpaulin` in CI, hosted on the `badges` branch
|
||||||
|
- CI status, coverage, version, and Rust edition badges in README
|
||||||
|
|
||||||
|
## [0.2.1] - 2026-02-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Drone CI pipeline (`ci`) that runs `cargo fmt --check`, `cargo clippy`, and `cargo test` on every push and pull request
|
||||||
|
|
||||||
|
## [0.2.0] - 2026-02-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Unit tests for `cache`, `session`, and `config` modules
|
||||||
|
- Integration tests for scan, session config, and cache lifecycle
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Refactored business logic into `lib.rs` for better testability; `main.rs` is now a thin entrypoint
|
||||||
|
|
||||||
|
## [0.1.1] - 2026-02-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Removed personal path references from default configuration and examples
|
||||||
|
|
||||||
|
## [0.1.0] - 2026-02-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Initial release of tmuxido
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# tmuxido
|
# tmuxido
|
||||||
|
|
||||||
|
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||||
|
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||||
|
[](https://git.cincoeuzebio.com/cinco/Tmuxido/releases)
|
||||||
|

|
||||||
|
|
||||||
A Rust-based tool to quickly find and open projects in tmux using fzf. No external dependencies except tmux and fzf!
|
A Rust-based tool to quickly find and open projects in tmux using fzf. No external dependencies except tmux and fzf!
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|||||||
Reference in New Issue
Block a user