mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
19 lines
349 B
Go
19 lines
349 B
Go
package npm
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewNpmCommand() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "npm [action] [package]",
|
|
Short: "Guard npm package manager",
|
|
DisableFlagParsing: true,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return executeNpmFlow(args)
|
|
},
|
|
}
|
|
}
|