feat: add version command (#26)

This commit is contained in:
Hanshal Mehta
2025-05-16 09:41:48 +05:30
committed by GitHub
parent d8d7bda8ca
commit 81d4875b8d
3 changed files with 43 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"github.com/safedep/dry/log"
"github.com/safedep/pmg/cmd/npm"
"github.com/safedep/pmg/cmd/version"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/internal/ui"
"github.com/spf13/cobra"
@@ -76,6 +77,7 @@ func main() {
cmd.AddCommand(npm.NewNpmCommand())
cmd.AddCommand(npm.NewPnpmCommand())
cmd.AddCommand(version.NewVersionCommand())
if err := cmd.Execute(); err != nil {
os.Exit(1)