Skip to content

Commit 15f73d0

Browse files
authored
fix invalid deprecation warnings (#1288)
1 parent eb5cc77 commit 15f73d0

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

bin/cml/repo/prepare.test.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ describe('CML e2e', () => {
1717
environment]
1818
--repo Repository URL or slug[string] [default: infer from the environment]
1919
--token Personal access token [string] [default: infer from the environment]
20-
--help Show help [boolean]
21-
22-
Options:
23-
--fetch-depth Number of commits to fetch (use \`0\` for all branches & tags)
24-
[number]
25-
--user-email Git user email [string] [default: \\"[email protected]\\"]
26-
--user-name Git user name [string] [default: \\"Olivaw[bot]\\"]"
20+
--help Show help [boolean]"
2721
`);
2822
});
2923
});

bin/legacy/commands/ci.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
const { addDeprecationNotice } = require('../deprecation');
2-
const { builder, handler } = require('../../cml/repo/prepare');
1+
const { handler } = require('../../cml/repo/prepare');
32

43
exports.command = 'ci';
54
exports.description = 'Prepare Git repository for CML operations';
65
exports.handler = handler;
7-
exports.builder = addDeprecationNotice({
8-
builder,
9-
notice: '"cml ci" is deprecated, please use "cml repo prepare"'
10-
});

bin/legacy/commands/publish.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ exports.description = false;
66
exports.handler = handler;
77
exports.builder = addDeprecationNotice({
88
builder,
9-
notice: '"cml publish" is deprecated, please use "cml asset publish"'
9+
notice:
10+
'"cml publish" is deprecated since "cml comment" now supports "![inline](./asset.png)"'
1011
});

0 commit comments

Comments
 (0)