@dysonic/dy-cli
v1.0.6
Published
CLI entry package for dy-cli, mounting built-in commands and exposing the public command-line interface
Downloads
641
Readme
@dysonic/dy-cli
Architecture
flowchart LR
binary["dy-cli executable"] --> cliPkg["cli package"]
cliPkg --> program["createProgram"]
program --> commands["built-in cmd-* packages"]
commands --> core["shared core contracts"]@dysonic/dy-cli is the public CLI entry package for the project.
Its responsibility is intentionally narrow:
- expose the
dy-cliexecutable - register built-in command packages
- provide a unified CLI entrypoint
The built-in commands currently mounted are:
createinstalladdbuildtestversionpublish
For the Chinese version, see README_ZH.md.
Role
If the repository is viewed as a command platform:
coreprovides shared contracts and helperscmd-*packages implement concrete commandscliassembles them into the executabledy-cli
This package is therefore an assembly layer, not a business implementation layer.
Main Contents
src/index.tscreates the commander program and mounts built-in commandssrc/cli.tsexecutable CLI entry
Dependencies
This package depends on:
@dysonic/dy-cli-core@dysonic/dy-cli-cmd-create@dysonic/dy-cli-cmd-install@dysonic/dy-cli-cmd-add@dysonic/dy-cli-cmd-build@dysonic/dy-cli-cmd-test@dysonic/dy-cli-cmd-version@dysonic/dy-cli-cmd-publish
It should not be depended on by cmd-* packages or core.
