Files
pmg/cmd/npm/npm.go
T

19 lines
349 B
Go
Raw Normal View History

2025-04-30 14:26:38 +05:30
package npm
import (
_ "embed"
"github.com/spf13/cobra"
)
func NewNpmCommand() *cobra.Command {
return &cobra.Command{
2025-04-30 14:26:38 +05:30
Use: "npm [action] [package]",
Short: "Guard npm package manager",
2025-04-30 14:26:38 +05:30
DisableFlagParsing: true,
RunE: func(cmd *cobra.Command, args []string) error {
return executeNpmFlow(args)
2025-04-30 14:26:38 +05:30
},
}
}