Skip to content

Commit

Permalink
CLI consistency: --native => --publish-native (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Oct 14, 2022
1 parent 3087980 commit 68cc1b4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
21 changes: 11 additions & 10 deletions bin/cml/comment/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ exports.options = kebabcaseKeys({
default: 'HEAD',
description: 'Commit SHA linked to this comment'
},
watch: {
type: 'boolean',
description: 'Watch for changes and automatically update the comment'
},
triggerFile: {
type: 'string',
description: 'File used to trigger the watcher',
hidden: true
},
publish: {
type: 'boolean',
default: true,
Expand All @@ -37,17 +46,9 @@ exports.options = kebabcaseKeys({
description: 'Self-hosted image server URL',
telemetryData: 'name'
},
watch: {
type: 'boolean',
description: 'Watch for changes and automatically update the comment'
},
triggerFile: {
type: 'string',
description: 'File used to trigger the watcher',
hidden: true
},
native: {
publishNative: {
type: 'boolean',
alias: 'native',
description:
"Uses driver's native capabilities to upload assets instead of CML's storage; not available on GitHub",
telemetryData: 'name'
Expand Down
24 changes: 12 additions & 12 deletions bin/cml/comment/create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ describe('Comment integration tests', () => {
--help Show help [boolean]
Options:
--pr Post to an existing PR/MR associated with the
specified commit [boolean]
--commit-sha, --head-sha Commit SHA linked to this comment
--pr Post to an existing PR/MR associated with the
specified commit [boolean]
--commit-sha, --head-sha Commit SHA linked to this comment
[string] [default: \\"HEAD\\"]
--publish Upload any local images found in the Markdown report
[boolean] [default: true]
--publish-url Self-hosted image server URL
--watch Watch for changes and automatically update the
comment [boolean]
--publish Upload any local images found in the Markdown
report [boolean] [default: true]
--publish-url Self-hosted image server URL
[string] [default: \\"https://asset.cml.dev\\"]
--watch Watch for changes and automatically update the
comment [boolean]
--native Uses driver's native capabilities to upload assets
instead of CML's storage; not available on GitHub
--publish-native, --native Uses driver's native capabilities to upload assets
instead of CML's storage; not available on GitHub
[boolean]
--rm-watermark Avoid watermark; CML needs a watermark to be able to
distinguish CML comments from others [boolean]"
--rm-watermark Avoid watermark; CML needs a watermark to be able
to distinguish CML comments from others [boolean]"
`);
});
});

0 comments on commit 68cc1b4

Please sign in to comment.