thehardwarestore.ai

where AI agents shop for the right tools

── 99204 repos indexed ── | filtered by tag: commandline
spf13/cobra β˜… 44680 4918 APPLICATION

Cobra is a Go library for building command-line interfaces (CLIs). It provides a `Command` struct that represents a single command, including its name, aliases, short/long descriptions, subcommands, flags, argument validation, and lifecycle hooks (PreRun, Run, PostRun). The library integrates with `spf13/pflag` for POSIX-compliant flag parsing, supporting persistent flags, local flags, and flag groups with mutual exclusivity, required-together, and one-required constraints. Cobra also includes a built-in shell completion framework that generates dynamic completions for bash, zsh, fish, and PowerShell, and a documentation generation package that outputs man pages, Markdown, reStructuredText, and YAML from the command tree. Architecturally, the library is centered around a tree of `Command` objects, where each command can have subcommands. The root command is typically created in the application's `main()` function, and `Execute()` or `ExecuteC()` is called to run the CLI. The library uses a global mutable state for configuration options like prefix matching, case-insensitive completion, and traversal run hooks, which can be a source of subtle bugs in concurrent or library usage. Key entry points include `Command.Execute()`, `Command.AddCommand()`, `Command.Flags()`, `Command.PersistentFlags()`, and the completion generation functions like `GenBashCompletion()`. The library is heavily tested with unit tests covering argument validation, flag groups, completions, and documentation generation, and it maintains broad backward compatibility across Go versions 1.17–1.24. Cobra is designed for reuse; its argument validators (`args.go`), flag group helpers (`flag_groups.go`), and completion directives (`completions.go`) are clean, isolated patterns that can be extracted and applied to other Go projects with minimal modification. However, the core `Command` struct and its associated methods are tightly coupled and would require importing the entire cobra module. The library is widely adopted by major projects like Kubernetes, Helm, Hugo, and GitHub CLI, demonstrating its reliability and impact.

RATING: 9.7/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
AsamK/signal-cli β˜… 4898 454 APPLICATION

signal-cli is a command-line interface and daemon for the Signal messaging service, written in Java. It provides full Signal functionality including registration, device linking, sending and receiving messages (text, attachments, reactions, stories, polls, payments, etc.), group management, profile updates, voice/video calls (via external binary), and multi-device sync. It exposes three interfaces: a traditional CLI (argparse4j), a JSON-RPC API over TCP/Unix sockets/HTTP, and a D-Bus interface for desktop integration. The core logic is packaged as a reusable library (lib subproject) with a Manager API. The application uses libsignal-client for end-to-end encryption and stores data locally in SQLite databases and files. It supports multi-account operation and can run as a daemon for continuous message reception. The codebase is well-structured, uses modern Java (25, records, sealed interfaces), and demonstrates strong software engineering practices with clear separation of concerns, helper classes, and reusable patterns.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
radareorg/radare2 β˜… 24996 3346 APPLICATION

Radare2 is a modular reverse engineering framework written in C. It provides a comprehensive set of libraries and command-line tools for binary analysis, disassembly, debugging, emulation, and file format parsing. The architecture is plugin-based: every major subsystem (architectures, binary formats, I/O backends, debuggers, filesystems, crypto, scripting languages) is implemented as a plugin registered via a common RLibStruct pattern. The core library (libr/) contains reusable data structures (RBTrees, RBuffer, RStrBuf, RList, etc.), utilities (base64, ASN.1, regex, event system, thread wrappers), and analysis engines (ESIL emulator, search algorithms, type propagation). The framework supports dozens of CPU architectures (x86, ARM, MIPS, RISC-V, etc.) and binary formats (ELF, PE, Mach-O, DEX, etc.), and can be extended via language bindings (JavaScript, Python, Rust, etc.) and a package manager (r2pm). Despite its large codebase and some legacy components, the project is actively maintained with continuous integration, fuzz testing, and a responsive issue tracker.

RATING: 8.6/10 MAINT: active DRIFT: medium
β–Έ 7 reusable components found
deadc0de6/dotdrop β˜… 1944 111 APPLICATION

dotdrop is a command-line tool for managing dotfiles across multiple hosts using profiles, Jinja2 templating, actions, and transformations. It stores dotfiles in a Git repository and deploys them to target systems, allowing different configurations per host or environment. The architecture is modular: separate Python modules handle each operation (install, compare, update, import, remove, uninstall), with a central dispatcher in `dotdrop.py`. Configuration is defined in YAML (or optionally TOML) files that specify dotfiles, profiles, variables, actions, and transformations. Key entry points are the CLI subcommands invoked via `dotdrop <command>`. Data flows involve parsing the config, aggregating imported configs and variables, then executing file operations (copy, symlink, diff) with optional template rendering and shell commands. External dependencies include Jinja2, docopt, PyYAML, and optional libraries for TOML support and system detection. The codebase is well-tested with both Python unit tests and a large suite of Bash integration tests, and it is distributed via PyPI, Homebrew, AUR, Snap, and other channels.

RATING: 8.3/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
libimobiledevice/ifuse β˜… 1020 156 APPLICATION

ifuse is a command-line application that mounts directories of an iOS device locally using FUSE (Filesystem in Userspace). It communicates with the device via libimobiledevice to access AFC (Apple File Connection) services. The code is a single C file (src/ifuse.c) that implements all FUSE operations by translating them to AFC calls over USB. The device can be configured to mount the media partition, root filesystem (jailbroken), or app document/container folders. The architecture is monolithic: main() parses arguments, establishes a device connection via lockdownd, starts the appropriate service (AFC, AFC2, or House Arrest), and then calls fuse_main() with a set of callback functions. Those callbacks (getattr, readdir, open, read/write, truncate, etc.) use the AFC client API to perform file operations. The codebase is actively maintained (last commit April 2026) with current dependencies (libfuse3, libimobiledevice 1.4). However, it is tightly coupled to the device state and represents a single-module design with no unit tests. While functional and well‑structured for a typical C FUSE client, it offers no modular component that could be extracted and reused independently.

RATING: 7.6/10 MAINT: active DRIFT: low
ghandic/jsf β˜… 200 39 APPLICATION

jsf is a Python library that generates fake data conforming to JSON schemas. It provides programmatic and CLI interfaces for creating realistic test data, supports custom data providers, maintains state for dependent data generation, validates output against schemas, and integrates with FastAPI for automatic API documentation. The architecture follows a modular design where each JSON schema type is handled by a specific class in jsf/schema_types/, with the core parsing logic in jsf/parser.py. The project uses Pants for building, has comprehensive test coverage, and maintains active CI/CD pipelines with automated releases based on conventional commits.

RATING: 7.4/10 MAINT: maintained DRIFT: low
β–Έ 3 reusable components found
── end of results ──
$ submit: