Skip to content

Conversation

@harp-intel
Copy link
Contributor

This pull request introduces a new developer-facing CLI command to extract embedded script resources, and adds supporting utility code to handle resource extraction from the embedded filesystem. The changes are organized into two main themes: CLI enhancements and utility function additions.

CLI Enhancements:

  • Added a new extract command to the CLI (extractCmd in cmd/root.go). This command allows developers to extract all embedded script resources to a specified output directory for inspection or modification. [1] [2]
  • Registered the new command under the "Other Commands" group and imported the necessary internal/script package.

Utility Function Additions:

  • Implemented ExtractAllResources in internal/util/util.go, which recursively walks the embedded filesystem and extracts all resources as files into the specified directory, supporting the new extract command.

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
@harp-intel harp-intel linked an issue Jan 28, 2026 that may be closed by this pull request
@harp-intel harp-intel merged commit cfa9715 into main Jan 29, 2026
5 checks passed
@harp-intel harp-intel deleted the extract branch January 29, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

request option to extract all embedded binaries

2 participants