Modify tests to reflect addition of the branch flag.

This commit is contained in:
2023-05-09 12:14:49 +01:00
parent 3859fe0469
commit 1bf33c3a65
2 changed files with 25 additions and 5 deletions
+3
View File
@@ -16,6 +16,8 @@ limitations under the License.
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
@@ -42,6 +44,7 @@ func (r *Setup) setupCobra() {
panic(err)
}
r.RepositoryBranch, err = rootCmd.Flags().GetString("branch")
fmt.Println(">>> branch", r.RepositoryBranch)
if err != nil {
panic(err)
}