Skip to content

Commit

Permalink
Added ext-refs flag to bundle command.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Feb 2, 2025
1 parent 892c4d5 commit 7f9164e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func GetBundleCommand() *cobra.Command {
noStyleFlag, _ := cmd.Flags().GetBool("no-style")
baseFlag, _ := cmd.Flags().GetString("base")
remoteFlag, _ := cmd.Flags().GetBool("remote")
extensionRefsFlag, _ := cmd.Flags().GetBool("ext-refs")

// disable color and styling, for CI/CD use.
// https://github.com/daveshanley/vacuum/issues/234
Expand Down Expand Up @@ -115,6 +116,7 @@ func GetBundleCommand() *cobra.Command {
ExtractRefsSequentially: true,
Logger: logger,
AllowRemoteReferences: remoteFlag,
ExcludeExtensionRefs: extensionRefsFlag,
}

bundled, err := bundler.BundleBytes(specBytes, docConfig)
Expand Down

0 comments on commit 7f9164e

Please sign in to comment.