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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ This file should contain a link to the maintainers of the Dockerfile.
131
131
132
132
## `metadata.json`
133
133
134
-
This file contains data about the repo for Docker Hub. The minimum file is defined below. `./metadata.sh [repo-name]` must be used to correctly format it (use `-f` to apply its suggested changes). There is a limit to the number of Docker Hub categories allowed; run with `-c` to check the limit and categories. `metadata.json` in the root contains the list of categories to choose from.
134
+
This file contains data about the repo for Docker Hub. The minimum file is defined below. `./metadata.sh [repo-name]` must be used to correctly format it (use `-w` to apply its suggested format changes). Only three sorted unique Docker Hub categories are allowed. `metadata.json` in the root contains the list of categories to choose from.
This script checks a repo's metadata.json and checks categories, diffs, or formats it.
21
+
This script checks a givens repo's metadata.json. It checks formating (providing a diff), checks categories, and can write the formatting changes.
23
22
24
-
-c, --categories Check that the categories are from the valid set of categories and that there are no more than $maxCategories. Exits non-zero if there are too many categories or they are unkown.
25
-
-d, --diff Check formatting of the '[repo]/metadata.json' and print a diff. Default action if no flags are supplied. Exits non-zero if there is a difference.
26
23
-h, --help Print this help output and exit.
27
-
-w, --write Apply the formatting that the '-d' flag would output.
24
+
-w, --write Apply json formatting (run without to see the diff that would be applied).
28
25
29
-
Arguments are the list of repos with a 'metadata.json' in them. 'metadata.json' is expected in every repo
26
+
Arguments are the list of repos with a 'metadata.json' in them. 'metadata.json' is expected in every repo.
30
27
'.' can also be passed to check the format of the canonical './metadata.json' at
31
28
the root of the repo, but the max categories of '-c' is skipped for it.
0 commit comments