Skip to content

Commit

Permalink
fix(cmd): log output of okgit pl command
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Nandan Sharma authored and Raj Nandan Sharma committed May 7, 2024
1 parent ed58641 commit 6da2df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ var pullCmd = &cobra.Command{

gitPull := models.AllCommands["gitPull"]
gitPull.Arguments = append(gitPull.Arguments, string(branch))
utils.RunCommand(gitPull.Name, gitPull.Arguments, "")
cmdOut, cmdErr = utils.RunCommand(gitPull.Name, gitPull.Arguments, "")
if cmdErr != nil {
utils.LogFatal(cmdErr)
}
utils.LogOutput(cmdOut)

},
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var rootCmd = &cobra.Command{
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
Version: "1.0.11",
Version: "1.0.12",
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 6da2df6

Please sign in to comment.