You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Fatal("Please define GITHUB_TOKEN. See documentation to obtain one if needed: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line")
fmt.Printf("github version %s\nbuild date %s\ncommit %s\n", version, buildDate, commitHash)
86
+
},
87
+
}
88
+
75
89
funcinit() {
90
+
rootCmd.AddCommand(versionCmd)
91
+
rootCmd.Version=version
76
92
rootCmd.PersistentFlags().StringVarP(&githubRepository, "repository", "r", "", "the owner and repository name. For example, octocat/Hello-World. Environment variable GITHUB_REPOSITORY will be used as a fallback.")
0 commit comments