Skip to content

Commit

Permalink
Update: Flag order in -h
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebiano committed Jul 25, 2022
1 parent 2236977 commit 61526df
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,47 +46,47 @@ DESCRIPTION
Whenever you create a new repository, instead of manually uploading your labels, use this CLI to have it done automatically!
OPTIONS
-h, --help
Display this help page.
-b, --bulkUpdate
Update all repositories under GHE owner organization. Can only be used with a GitHub Enterprise host.
-c, --config
Launch interactive CLI to store data into config. Storing empty strings removes data from config.
-n, --newLabel
Launch interactive CLI to store new labels in the 'labels.json' file.
-r, --repository [REPOSITORY]
Specify GitHub repository name. If not specified uses values in config, else ignores config.
-o, --owner [OWNER]
Specify owner of repository. If not specified uses values in config, else ignores config.
-d, --deleteAllLabels
Delete all existing labels in repository.
-t, --token [TOKEN]
Specify personal access token. If not specified uses values in config, else ignores config.
-e, --emptyLabelsFile
Remove every label from the 'labels.json' file.
-f, --force
Ignore user confirmation.
-h, --help
Display this help page.
-H, --host [HOST]
Specify host. If not specified uses values in config, else ignores config.
-b, --bulkUpdate
Update all repositories under GHE owner organization. Can only be used with a GitHub Enterprise host.
-f, --force
Ignore user confirmation.
-n, --newLabel
Launch interactive CLI to store new labels in the 'labels.json' file.
-d, --deleteAllLabels
Delete all existing labels in repository.
-o, --owner [OWNER]
Specify owner of repository. If not specified uses values in config, else ignores config.
-u, --uploadLabels
Upload custom labels to repository. Skips already existing labels.
-p, --path
Return the path for 'labels.json' file.
-e, --emptyLabelsFile
Remove every label from the 'labels.json' file.
-r, --repository [REPOSITORY]
Specify GitHub repository name. If not specified uses values in config, else ignores config.
-R, --resetLabelsFile
Reset 'labels.json' by overwriting 'labels.json' with the default labels.
-p, --path
Return the path for 'labels.json' file.
-t, --token [TOKEN]
Specify personal access token. If not specified uses values in config, else ignores config.
-u, --uploadLabels
Upload custom labels to repository. Skips already existing labels.
EXAMPLES
Delete all labels from the repository and upload custom ones stored under 'labels.json' to the repository:
Expand Down
52 changes: 26 additions & 26 deletions labeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,47 @@ DESCRIPTION
Whenever you create a new repository, instead of manually uploading your labels, use this CLI to have it done automatically!
OPTIONS
-h, --help
Display this help page.
-b, --bulkUpdate
Update all repositories under GHE owner organization. Can only be used with a GitHub Enterprise host.
-c, --config
Launch interactive CLI to store data into config. Storing empty strings removes data from config.
-n, --newLabel
Launch interactive CLI to store new labels in the 'labels.json' file.
-r, --repository [REPOSITORY]
Specify GitHub repository name. If not specified uses values in config, else ignores config.
-o, --owner [OWNER]
Specify owner of repository. If not specified uses values in config, else ignores config.
-d, --deleteAllLabels
Delete all existing labels in repository.
-t, --token [TOKEN]
Specify personal access token. If not specified uses values in config, else ignores config.
-e, --emptyLabelsFile
Remove every label from the 'labels.json' file.
-f, --force
Ignore user confirmation.
-h, --help
Display this help page.
-H, --host [HOST]
Specify host. If not specified uses values in config, else ignores config.
-b, --bulkUpdate
Update all repositories under GHE owner organization. Can only be used with a GitHub Enterprise host.
-f, --force
Ignore user confirmation.
-n, --newLabel
Launch interactive CLI to store new labels in the 'labels.json' file.
-d, --deleteAllLabels
Delete all existing labels in repository.
-o, --owner [OWNER]
Specify owner of repository. If not specified uses values in config, else ignores config.
-u, --uploadLabels
Upload custom labels to repository. Skips already existing labels.
-p, --path
Return the path for 'labels.json' file.
-e, --emptyLabelsFile
Remove every label from the 'labels.json' file.
-r, --repository [REPOSITORY]
Specify GitHub repository name. If not specified uses values in config, else ignores config.
-R, --resetLabelsFile
Reset 'labels.json' by overwriting 'labels.json' with the default labels.
-p, --path
Return the path for 'labels.json' file.
-t, --token [TOKEN]
Specify personal access token. If not specified uses values in config, else ignores config.
-u, --uploadLabels
Upload custom labels to repository. Skips already existing labels.
EXAMPLES
Delete all labels from the repository and upload custom ones stored under 'labels.json' to the repository:
Expand Down Expand Up @@ -182,7 +182,7 @@ async function main() {
if (cli.flags.emptyLabelsFile) await helper.emptyLabelsFile(cli) // Delete all labels from labels.json

// This will delete and/or upload all labels to every repository under the owner organization in GHE
// ICEBOX: Currently only handles GHE instances, but could probably be adapted for a GitHub user
// TODO (#27): Currently only handles GHE instances, but could probably be adapted for a GitHub user
if (cli.flags.bulkUpdate) {
const repos = await helper.getRepositories(token, owner, host)
for (const repo of repos) {
Expand Down

0 comments on commit 61526df

Please sign in to comment.