We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c41f812 + 9fe52f1 commit 379d310Copy full SHA for 379d310
1 file changed
bin/cli.js
@@ -4,10 +4,14 @@
4
const { gatherTelemetryForUrl, analyzeEmberObject } = require('ember-codemods-telemetry-helpers');
5
6
(async () => {
7
- let args = process.argv.slice(1);
+ // `NO_TELEMETRY=true npx ember-native-class-codemod path`
8
+ // => ['node', 'ember-native-class-codemod', 'path']
9
+ let args = process.argv.slice(2);
10
if (process.env['NO_TELEMETRY'] !== 'true') {
11
await gatherTelemetryForUrl(process.argv[2], analyzeEmberObject);
- args = process.argv.slice(2);
12
+ // `npx ember-native-class-codemod http://localhost path`
13
+ // => ['node', 'ember-native-class-codemod', 'http://localhost', 'path']
14
+ args = process.argv.slice(3);
15
}
16
17
require('codemod-cli').runTransform(__dirname, 'ember-object', args);
0 commit comments