mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-10 23:28:58 +00:00
Modify tests to reflect addition of the branch flag.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user