-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
280 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## report | ||
|
||
gh cli extension to generate reports | ||
|
||
### Synopsis | ||
|
||
gh cli extension to generate enterprise/organization/user/repository reports | ||
|
||
### Options | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
-h, --help help for report | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report actions](report_actions.md) - Report on GitHub Actions | ||
* [report billing](report_billing.md) - Report on GitHub billing | ||
* [report license](report_license.md) - Report on GitHub Enterprise licensing | ||
* [report repo](report_repo.md) - Report on GitHub repositories | ||
* [report verified-emails](report_verified-emails.md) - List enterprise/organization members' verified emails | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## report actions | ||
|
||
Report on GitHub Actions | ||
|
||
### Synopsis | ||
|
||
Report on GitHub Actions, requires `repo` scope | ||
|
||
``` | ||
report actions [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--exclude Exclude Github Actions authored by GitHub | ||
-h, --help help for actions | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report](report.md) - gh cli extension to generate reports | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## report billing | ||
|
||
Report on GitHub billing | ||
|
||
### Synopsis | ||
|
||
Report on GitHub billing, requires `read:enterprise` and/or `read:org` scope | ||
|
||
``` | ||
report billing [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--actions Get GitHub Actions billing | ||
--all Get all billing data (default true) | ||
-h, --help help for billing | ||
--packages Get GitHub Packages billing | ||
--security Get GitHub Advanced Security active committers | ||
--storage Get shared storage billing | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report](report.md) - gh cli extension to generate reports | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## report license | ||
|
||
Report on GitHub Enterprise licensing | ||
|
||
### Synopsis | ||
|
||
Report on GitHub Enterprise licensing, requires `read:enterprise` and `user:email` scope | ||
|
||
``` | ||
report license [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for license | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report](report.md) - gh cli extension to generate reports | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## report repo | ||
|
||
Report on GitHub repositories | ||
|
||
### Synopsis | ||
|
||
Report on GitHub repositories, requires `read:enterprise` and/or `read:org` scope | ||
|
||
``` | ||
report repo [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for repo | ||
--internal Show internal repositories only | ||
--private Show private repositories only | ||
--public Show public repositories only | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report](report.md) - gh cli extension to generate reports | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## report verified-emails | ||
|
||
List enterprise/organization members' verified emails | ||
|
||
### Synopsis | ||
|
||
List enterprise/organization members' verified emails, requires `user:email`, `read:enterprise` and/or `read:org` scope | ||
|
||
``` | ||
report verified-emails [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for verified-emails | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--csv string Path to CSV file, to save report to file | ||
-e, --enterprise read:enterprise GitHub Enterprise Cloud account (requires read:enterprise scope) | ||
--hostname string GitHub Enterprise Server hostname (default "github.com") | ||
--json string Path to JSON file, to save report to file | ||
--md string Path to MD file, to save report to file | ||
--no-cache Do not cache results for one hour (default "false") | ||
-o, --owner read:org GitHub account organization (requires read:org scope) or user account (requires `n/a` scope) | ||
-r, --repo repo GitHub repository (owner/repo), requires repo scope | ||
--silent Do not print any output (default: "false") | ||
-t, --token string GitHub Personal Access Token (default "gh auth token") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [report](report.md) - gh cli extension to generate reports | ||
|
||
###### Auto generated by spf13/cobra on 25-Mar-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
"os" | ||
|
||
"github.com/spf13/cobra/doc" | ||
"github.com/stoe/gh-report/cmd" | ||
) | ||
|
||
func main() { | ||
output := "./docs" | ||
|
||
if err := os.RemoveAll(output); err != nil { | ||
log.Fatal(fmt.Errorf("failed to remove existing dir: %w", err)) | ||
} | ||
|
||
if err := os.MkdirAll(output, 0755); err != nil { | ||
log.Fatal(fmt.Errorf("failed to mkdir: %w", err)) | ||
} | ||
|
||
if err := doc.GenMarkdownTree(cmd.RootCmd, output); err != nil { | ||
log.Fatal(fmt.Errorf("failed to generate markdown: %w", err)) | ||
} | ||
} |
Oops, something went wrong.