You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.**Reduce** — Remove transitive edges to show only direct dependencies
167
170
3.**Layer** — Assign each package to a row based on its depth
168
171
4.**Order** — Minimize edge crossings using branch-and-bound with PQ-tree pruning
@@ -184,16 +187,16 @@ HTTP responses are cached in `~/.cache/stacktower/` with a 24-hour TTL. Use `--r
184
187
185
188
## Adding New Languages
186
189
187
-
To add support for a new package manager (e.g., Ruby/RubyGems):
190
+
To add support for a new package manager (e.g., Go/pkg.go.dev):
188
191
189
-
1.**Create a registry client** in `pkg/integrations/rubygems/client.go` — parse the registry API, extract dependencies, use `integrations.BaseClient` for HTTP + caching
192
+
1.**Create a registry client** in `pkg/integrations/<registry>/client.go` — parse the registry API, extract dependencies, use `integrations.BaseClient` for HTTP + caching
190
193
191
-
2.**Create a source parser** in `pkg/source/ruby/ruby.go` — implement the `source.PackageInfo` interface (`GetName`, `GetVersion`, `GetDependencies`, `ToMetadata`, `ToRepoInfo`)
194
+
2.**Create a source parser** in `pkg/source/<lang>/<lang>.go` — implement the `source.PackageInfo` interface (`GetName`, `GetVersion`, `GetDependencies`, `ToMetadata`, `ToRepoInfo`)
0 commit comments