refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
# core go mod graph
|
|
|
|
|
|
|
|
|
|
Print module dependency graph.
|
|
|
|
|
|
|
|
|
|
Wrapper around `go mod graph`. Outputs the module dependency graph in text form.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
core go mod graph
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## What It Does
|
|
|
|
|
|
|
|
|
|
- Prints module dependencies as pairs
|
|
|
|
|
- Each line shows: `module@version dependency@version`
|
|
|
|
|
- Useful for understanding dependency relationships
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Print dependency graph
|
|
|
|
|
core go mod graph
|
|
|
|
|
|
|
|
|
|
# Find who depends on a specific module
|
|
|
|
|
core go mod graph | grep "some/module"
|
|
|
|
|
|
|
|
|
|
# Visualise with graphviz
|
|
|
|
|
core go mod graph | dot -Tpng -o deps.png
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Output
|
|
|
|
|
|
|
|
|
|
```
|
2026-02-16 06:19:09 +00:00
|
|
|
forge.lthn.ai/core/cli github.com/stretchr/testify@v1.11.1
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
github.com/stretchr/testify@v1.11.1 github.com/davecgh/go-spew@v1.1.2
|
|
|
|
|
github.com/stretchr/testify@v1.11.1 github.com/pmezard/go-difflib@v1.0.1
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
|
|
|
|
|
- [tidy](../tidy/) - Clean up go.mod
|
|
|
|
|
- [dev impact](../../../dev/impact/) - Show repo dependency impact
|