Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

cli-toolkit

English | 简体中文

A small collection of independent command-line tools that share one repository. Each tool keeps its own package, tests and release metadata under packages/.

Tool Command PyPI distribution What it does
pomo pomo pomo-timer Pomodoro / Flowtime timer with background timing, popups, sqlite statistics
mark mark mark-stash One-line note list with an fzf picker and clipboard copy
clipboard clipboard clipboard-stash Fzf-powered clipboard history (multi-line aware)
highlight highlight — Colorize several patterns in piped output
drop drop — Remove patterns from piped, multi-line output
filepath filepath / fp — Fzf file-path picker: multi-select, clipboard copy, open in VS Code
caff caff — Fzf process picker that keeps the Mac awake until the selection exits
letter to_upper / to_lower / to_words — Change text case, or extract Latin words from the clipboard

Install

The Python tools are published separately, so existing installations keep working:

pipx install --include-deps pomo-timer
pipx install mark-stash
pipx install clipboard-stash

highlight, drop, letter and caff are shell functions; clone this repository and source them:

git clone git@github.com:qqiwei/cli-toolkit.git ~/src/cli-toolkit
echo '. ~/src/cli-toolkit/packages/highlight/highlight.sh' >> ~/.zshrc
echo '. ~/src/cli-toolkit/packages/drop/drop.sh' >> ~/.zshrc
echo '. ~/src/cli-toolkit/packages/letter/letter_cases.sh' >> ~/.zshrc
echo '. ~/src/cli-toolkit/packages/caff/caff.sh' >> ~/.zshrc

filepath is also a shell function — source it to get the filepath command and fp alias:

echo '. ~/src/cli-toolkit/packages/filepath/filepath.sh' >> ~/.zshrc

See each package's README (English and 简体中文) for usage, configuration and shell completion.

Repository layout

cli-toolkit/
  packages/common/      shared fzf picker source (synced into mark/clipboard)
  packages/pomo/        Python package + tests (pomo-timer)
  packages/mark/        Python package + tests (mark-stash)
  packages/clipboard/   Python package + tests (clipboard-stash)
  packages/highlight/   highlight.sh + shell tests
  packages/drop/        drop.sh + shell tests
  packages/filepath/    filepath.sh + shell tests
  packages/caff/        caff.sh + shell tests
  packages/letter/      letter_cases.sh + shell tests
  .github/workflows/    CI and per-package PyPI publishing

Each package is self-contained: its own pyproject.toml (or shell script), README.md, README.zh-CN.md, LICENSE and tests. You can install or work on one package without touching the others.

Development

From this repository root:

make test

packages/common/picker.py is the shared fzf picker used by mark and clipboard. After editing it, run make sync-picker to refresh the copies in both packages (make check-picker, part of make test, verifies they match).

or run a single package:

cd packages/pomo && pipx install --include-deps --editable . && python3 -m unittest discover -s tests -v
cd packages/mark && pipx install --editable . && python3 -m unittest discover -s tests -v
cd packages/clipboard && pipx install --editable . && python3 -m unittest discover -s tests -v
cd packages/highlight && bash tests/test_highlight.sh   # also: zsh tests/test_highlight.sh
cd packages/drop && bash tests/test_drop.sh             # also: zsh tests/test_drop.sh
cd packages/filepath && bash tests/test_filepath.sh     # also: zsh tests/test_filepath.sh
cd packages/letter && bash tests/test_letter_cases.sh   # also: zsh tests/test_letter_cases.sh
cd packages/caff && bash tests/test_caff.sh            # also: zsh tests/test_caff.sh

Releasing

Publishing is per package and uses PyPI trusted publishing:

  • pomo: push a pomo-v* tag (publish.yml).
  • mark: push a mark-v* tag (publish.yml).
  • clipboard: push a clipboard-v* tag (publish.yml).
  • highlight: no package; tests run on every push.
  • drop: no package; tests run on every push.
  • filepath: no package; tests run on every push.
  • letter: no package; tests run on every push.
  • caff: no package; tests run on every push.

License

MIT — see LICENSE.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages