repowisehkuds/cli-anything

Architecture of hkuds/cli-anything

hkuds/cli-anything is 1,802 source files holding 20,835 symbols across 81 modules, written mainly in Python, Shell, JavaScript. The largest module is mailchimp, with 44 files, and 67 files are entry points into the dependency graph.

How cli-anything fits together

Each CLI is built as its own module, such as freecad or audacity, and its code sits under the cli_anything namespace. The agent-harness directory inside a generated CLI holds the package that pip install -e . puts on the PATH, so a command such as cli-anything-gimp can be run from anywhere. The shared repl_skin.py file gives every generated CLI the same interactive mode, with prompts, command history and progress indicators. Commands accept a --json flag for machine-readable output, and a bare command starts a REPL session instead of running a subcommand. Generated CLIs write valid project files such as ODF, MLT XML or SVG and hand rendering to the real application. HARNESS.md holds the standards a harness is validated against, and TEST.md records its test results.

Largest modules

  • mailchimp: 44 files and 9,293 lines of code
  • freecad: 32 files and 20,730 lines of code
  • audacity: 30 files and 4,991 lines of code
  • firefly-iii: 28 files and 3,378 lines of code
  • live2d: 28 files and 4,065 lines of code
  • macrocli: 27 files and 6,180 lines of code
  • rms: 27 files and 2,593 lines of code
  • sbox: 26 files and 9,917 lines of code

Languages

By file count: Python 1,266 files, Shell 18 files, JavaScript 8 files, C# 7 files, Swift 2 files, TypeScript 2 files.

Documentation

Repowise documents cli-anything in 1,384 pages generated from the source, 94 of them written explanations of the repository and its modules.

More on cli-anything: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos