Skip to content

Commit 6da2df6

Browse files
Raj Nandan SharmaRaj Nandan Sharma
Raj Nandan Sharma
authored and
Raj Nandan Sharma
committed
fix(cmd): log output of okgit pl command
1 parent ed58641 commit 6da2df6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cmd/pull.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ var pullCmd = &cobra.Command{
4141

4242
gitPull := models.AllCommands["gitPull"]
4343
gitPull.Arguments = append(gitPull.Arguments, string(branch))
44-
utils.RunCommand(gitPull.Name, gitPull.Arguments, "")
44+
cmdOut, cmdErr = utils.RunCommand(gitPull.Name, gitPull.Arguments, "")
45+
if cmdErr != nil {
46+
utils.LogFatal(cmdErr)
47+
}
48+
utils.LogOutput(cmdOut)
4549

4650
},
4751
}

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var rootCmd = &cobra.Command{
1717
// Uncomment the following line if your bare application
1818
// has an action associated with it:
1919
// Run: func(cmd *cobra.Command, args []string) { },
20-
Version: "1.0.11",
20+
Version: "1.0.12",
2121
}
2222

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

0 commit comments

Comments
 (0)