Skip to content

Commit

Permalink
馃毟 Add aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe committed Mar 19, 2023
1 parent 8b61ff0 commit 3b8e3f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var (
Short: "Report on GitHub repositories",
Long: "Report on GitHub repositories",
RunE: GetRepos,
Aliases: []string{"repos"},
}

orgRepositoriesQuery struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func init() {
RootCmd.PersistentFlags().StringVarP(&owner, "owner", "o", "", "GitHub account (organization or user account)")
RootCmd.PersistentFlags().StringVarP(&repo, "repo", "r", "", "GitHub repository (owner/repo)")

RootCmd.PersistentFlags().StringVar(&token, "token", "", "GitHub Personal Access Token (default: gh auth token)")
RootCmd.PersistentFlags().StringVarP(&token, "token", "t", "", "GitHub Personal Access Token (default: gh auth token)")
RootCmd.PersistentFlags().StringVar(&hostname, "hostname", "", "GitHub Enterprise Server hostname")

RootCmd.PersistentFlags().StringVar(&csvPath, "csv", "", "Path to CSV file")
Expand Down
1 change: 1 addition & 0 deletions cmd/verified_emails.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var (
Short: "List enterprise/organization members' verified emails",
Long: "List enterprise/organization members' verified emails",
RunE: GetUserEmails,
Aliases: []string{"emails", "email"},
}

memberQuery struct {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Flags:
-r, --repo string GitHub repository (owner/repo)
--silent do not print any output (default: false)
--token string GitHub Personal Access Token (default: gh auth token)
-t, --token string GitHub Personal Access Token (default: gh auth token)
-v, --version version for gh-report
Use "gh-report [command] --help" for more information about a command.
Expand Down

0 comments on commit 3b8e3f7

Please sign in to comment.