Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 090ee61

Browse files
committed
telemetry for function:create
1 parent 790aaa4 commit 090ee61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commands/functions/create.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const fetch = require("node-fetch");
1111
const cp = require("child_process");
1212
const { createAddon } = require("netlify/src/addons");
1313
const ora = require("ora");
14+
const { track } = require("@netlify/cli-utils/src/utils/telemetry");
1415

1516
const templatesDir = path.resolve(__dirname, "../../functions-templates");
1617

@@ -29,6 +30,10 @@ class FunctionsCreateCommand extends Command {
2930
} else {
3031
await scaffoldFromTemplate.call(this, flags, args, functionsDir);
3132
}
33+
track("command", {
34+
command: "functions:create",
35+
url: flags.url
36+
});
3237
}
3338
}
3439

0 commit comments

Comments
 (0)