package bundle import ( "github.com/MakeNowJust/heredoc/v2" "github.com/spf13/cobra" "gitlab.com/gitlab-org/cli/internal/cmdutils" "gitlab.com/gitlab-org/cli/internal/commands/df/dfcmd" "gitlab.com/gitlab-org/cli/internal/dependencyfirewall/pm" ) func NewCmd(f cmdutils.Factory) *cobra.Command { return dfcmd.NewProxyCmd(f, dfcmd.ProxySpec{ Manager: pm.Bundle, Use: "bundle ", Short: "Run Bundler through the GitLab Dependency Firewall.", Long: heredoc.Docf(` Run the Bundler binary (%[1]sbundle%[1]s) through the GitLab Dependency Firewall. The command checks each package download and upload against the policy for the current project, refuses blocked packages, and summarizes the results after the run. The command uses your package manager's registry or index configuration, and does not modify it. When a bundle is already vendored, Bundler installs from %[1]svendor/bundle/%[1]s and the firewall does not check those packages. Clear that directory, or run %[1]sbundle install --force%[1]s, to check them again. All arguments are forwarded to %[1]sbundle%[1]s verbatim. `, "`"), Example: heredoc.Doc(` # Install dependencies through the Dependency Firewall glab dependency-firewall bundle install # Update dependencies through the Dependency Firewall glab dependency-firewall bundle update `), }) }