Skip to content

Commit de848cd

Browse files
committed
renamed command
1 parent 77bcff1 commit de848cd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/ferric/src/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { describe, it } from "node:test";
33

4-
describe("", () => {
4+
describe("build", () => {
55
it("", () => {
66
assert.equal(1, 1);
77
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { describe, it } from "node:test";
33

4-
describe("", () => {
4+
describe("init", () => {
55
it("", () => {
66
assert.equal(1, 1);
77
});
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Command } from "@commander-js/extra-typings";
22

3-
export const generateCommand = new Command("generate")
3+
export const initCommand = new Command("init")
44
.description("Generate the project scaffold")
55
.argument("<name>", "Type the project name")
6-
.action((str, options) => {
6+
.action(() => {
77

88
})

packages/ferric/src/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Command } from "@commander-js/extra-typings";
22

33
import { printBanner } from "./banner.js";
44
import { buildCommand } from "./build.js";
5-
import { generateCommand } from "./generate.js";
5+
import { initCommand } from "./init.js";
66

77
export const program = new Command("ferric")
88
.hook("preAction", () => printBanner())
99
.description("Rust Node-API Modules for React Native")
1010
.addCommand(buildCommand)
11-
.addCommand(generateCommand);
11+
.addCommand(initCommand);

0 commit comments

Comments
 (0)