feat: add devtools extract and decompile CLI commands#5
Closed
Arthurvdv wants to merge 1 commit into
Closed
Conversation
Add 'alcops devtools extract' command to download and extract BC DevTools from NuGet packages or VS Marketplace VSIX archives. Supports version resolution (latest/prerelease/specific), TFM selection for NuGet, and optional glob-based file filtering. Add 'alcops devtools decompile' command to decompile .NET assemblies using ILSpy CLI (ilspycmd via dotnet tool install). Configurable assembly list with sensible defaults (8 BC DevTools assemblies). Both commands output JSON to stdout with logs on stderr, matching existing CLI conventions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new CLI subcommands under
alcops devtools:alcops devtools extractDownload and extract BC DevTools from NuGet packages or VS Marketplace VSIX archives.
alcops devtools decompileDecompile .NET assemblies using ILSpy CLI for source analysis.
alcops devtools decompile --input ./DevTools/net8.0 --output ./DevTools/decompiled # Custom assembly list alcops devtools decompile --input ./DevTools/net8.0 --output ./decompiled \ --assemblies Microsoft.Dynamics.Nav.CodeAnalysis,Microsoft.Dynamics.Nav.CodeCopChanges
src/devtools/package-extractor.ts- Shared ZIP extraction utility with path prefix filtering and optional glob includesrc/devtools/extract-command.ts- NuGet + VSIX download and extraction orchestrationsrc/devtools/decompile-command.ts- ILSpy CLI orchestration (dotnet tool install + ilspycmd)src/cli.ts- Wired devtools command group with extract/decompile subcommandsTechnical notes