Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2.2k
Import man pages#68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Import man pages #68
Changes from all commits
1afd87e4aa3cb7ca0d4107c854f4716f360b86510e422798e3049e5179c8a654b28c0533c90c28dbba9ebd7f6fcefe1db826b01ec3bb809d18b8b86c01cdd75c1eff2f8f3546ea42c4eae918a117172c9a567eaed15652cb3f4a8e9e09a07a678fd4439645f4eabc1bea40c964724a7e75f109ffcb77b2e13d00e6dc30c4332753945621c2230d30a28d962a8a1e318fefcd37b4e1d2c4a012e21573044f213a46c5bf50cf9d68cf6ac2ae555b4cf9c75e013d99e57f7ae694c7fbcc7b30095dce78c50588fd865bad2396039e36f077efc4120f2e4606e1ec771c5252aac6397cfb9b56d90b550463ed0abbe7f81ee546f654c4309c1934434b5428a76eba6c07971f2c6040a48596d9462a98eef1888bd9d458626d54d501cd7b91ec2501ced131776c1230fede72a8b50845b8194389aab0b23de2c3bcefba85725ca01fafb6ca9e57d0d205176d1b3ad56c66cc89317f6177283b473eab4d93f3e6d80c87fce57edd01119016c7a4bfc2f2bf4aeda31efcb1dbdf341ee43361ede6f8faf9a13ecf417cf6e7237d5bd205decb80f8c9ece3a2c45982b607ab6cf3e714abd38c4b439fbabb917515d54808e8de4c8ff32dd87ef584abcc4b7d85c86e796ed317e2a3ebb3ea66c95ed910f979bb3c768c6acc122d1864e3eef9a851e35e2a0e12713aded9ce4f2f37ffdddf62f83ff3362e142344d8e3069b3749d82b73afbe11f1bd005d05f19f6ac5e388d1ef1746e809276cc2646f9500fb3fc6116f1deddca729b5ad41732bd27f19f461f047149287e93c65e497a32e0a50321bd0564e99bc14f1cb18191c384d4bcf058378753864146a0a021d22d8ccb9e0c7ebaf4c9011ce68f143570611f3f4b7e58974422eb196fd8efb7eaabbfa4840c0ac2014c6220ef0a5f302221540528deaff191f407286aab64720e21d6199f76f2afbb4c1d821937ce4dff021af3ae04459c5c4243d0db94ed61f48bb334e2506a586dfbda88dce6a8bf70c8043ab52ea03d7ab79c286340ff95df58c291d906c53be61e7109988585227ce16e6244e313a9c28b70b72d001cc7a83f8e7f6e9cb014fb1816ec568032a376ca2a4f91c37e92b54b349155336c8a63d8721a24df13af9e95405c383f83dbc56b98860743289e528a1dd98759a39e5cafdb8a6eeec3464c687c24f769fbed3e2e2752b0fc4ad8c986fc33d5a19ef63003bfe2355cb1594c3564ae0e3947efe9019a052File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| .DS_Store | ||
| build | ||
| /man/man1 | ||
| /man/man5 | ||
| /man/man8 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -11,12 +11,13 @@ build: clean | ||
| .PHONY: clean | ||
| clean: | ||
| @rm -rf ./build/* | ||
| @rm -rf ./man/man[1-9] | ||
| # run go test | ||
| # the "-tags daemon" part is temporary | ||
| .PHONY: test | ||
| test: | ||
| @go test -tags daemon -v $(shell go list ./... | grep -v /vendor/) | ||
| @go test -tags daemon -v $(shell go list ./... | grep -vE '/vendor/|github.com/docker/cli/man$$') | ||
| # run linters | ||
| .PHONY: lint | ||
| @@ -32,10 +33,15 @@ cross: clean | ||
| .PHONY: vendor | ||
| vendor: vendor.conf | ||
| @vndr 2> /dev/null | ||
| @script/validate/check-git-diff vendor | ||
| @scripts/validate/check-git-diff vendor | ||
| ## Generate man pages from go source and markdown | ||
| .PHONY: manpages | ||
| manpages: | ||
| @man/generate.sh | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't need to be I believe something like this would be correct: Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you use wildcards in But be careful: this: Does not cause Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this would be easier to do if we wrote the man pages to Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not entirely sure how Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think that's how it works. I did it for | ||
| cli/compose/schema/bindata.go: cli/compose/schema/data/*.json | ||
| go generate github.com/docker/cli/cli/compose/schema | ||
| compose-jsonschema: cli/compose/schema/bindata.go | ||
| @script/validate/check-git-diff cli/compose/schema/bindata.go | ||
| @scripts/validate/check-git-diff cli/compose/schema/bindata.go | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2,7 +2,7 @@ | ||
| "Vendor": true, | ||
| "Deadline": "2m", | ||
| "Sort": ["linter", "severity", "path"], | ||
| "Exclude": ["cli/compose/schema/bindata.go"], | ||
| "Exclude": ["cli/compose/schema/bindata.go", "man/generate.go"], | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary? I don't think we should exclude it from linting CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because packages are missing when linting. | ||
| "DisableAll": true, | ||
| "Enable": [ | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to exclude the man directory from testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of missing packages, that are included only after the vendor-on-the-fly part of generate.sh