A small collection of CLI utilities.
https://pypi.org/project/tacklebox-cli/
- Python 86.5%
- Nix 13.5%
| .forgejo/workflows | ||
| .zed | ||
| tacklebox | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE.md | ||
| pyproject.toml | ||
| README.md | ||
| renovate.json | ||
| uv.lock | ||
tacklebox-cli
tacklebox-cli offers a suite of useful CLI tools.
Usage
tacklebox copy / paste
Cross-platform clipboard management tool. Uses system tools such as wl-copy on Linux Wayland or clip.exe on Windows, and OSC 52 escape codes when copying over SSH or when no other tools are available. See copy_with_tooling() for all supported tools.
$ echo "a" | tacklebox copy --trim && tacklebox paste
a
tacklebox prepend-to-file
Prepend the contents of one file to another, with support for adding a newline automatically and checking if the operation has already been performed on the destination file.
$ echo "template-example" > template
$ echo "hello world" > hello-world.txt
$ tacklebox prepend-to-file template hello-world.txt -n
$ cat hello-world.txt
template-example
hello world
tacklebox find-desktop-entry (Linux only)
Checks all of the paths under $XDG_DATA_DIRS for an application desktop file with the given name.
Prints the full path of the desktop file to stdout if found.
$ tacklebox find-desktop-entry kitty
kitty.desktop found in /etc/profiles/per-user/cswimr/share/applications
/etc/profiles/per-user/cswimr/share/applications/kitty.desktop
$ tacklebox find-desktop-entry --read kitty
kitty.desktop found in /etc/profiles/per-user/cswimr/share/applications
# /etc/profiles/per-user/cswimr/share/applications/kitty.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=kitty
GenericName=Terminal emulator
Comment=Fast, feature-rich, GPU based terminal
TryExec=kitty
StartupNotify=true
Exec=kitty
Icon=kitty
Categories=System;TerminalEmulator;
X-TerminalArgExec=--
X-TerminalArgTitle=--title
X-TerminalArgAppId=--class
X-TerminalArgDir=--working-directory
X-TerminalArgHold=--hold