diff options
| author | 2022-08-04 21:42:49 -0700 | |
|---|---|---|
| committer | 2022-08-04 21:42:49 -0700 | |
| commit | d034c004f99cb660b88ed95a851d92291c45b7cb (patch) | |
| tree | 8b6122581cf859cecf7e303fd9ba2a7c968faa8a /src/cli.zig | |
| parent | 7ba61bc98341c1a357a8b0a9323643d6162976e0 (diff) | |
| download | bun-d034c004f99cb660b88ed95a851d92291c45b7cb.tar.gz bun-d034c004f99cb660b88ed95a851d92291c45b7cb.tar.zst bun-d034c004f99cb660b88ed95a851d92291c45b7cb.zip | |
Implement `bun init` subcommand
Diffstat (limited to 'src/cli.zig')
| -rw-r--r-- | src/cli.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cli.zig b/src/cli.zig index e849d258f..5dc954be9 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -645,9 +645,8 @@ const AutoCommand = struct { try HelpCommand.execWithReason(allocator, .invalid_command); } }; -const InitCommand = struct { - pub fn exec(_: std.mem.Allocator) !void {} -}; +const InitCommand = @import("./cli/init_command.zig").InitCommand; + pub const HelpCommand = struct { pub fn exec(allocator: std.mem.Allocator) !void { @setCold(true); @@ -909,7 +908,7 @@ pub const Command = struct { switch (tag) { .DiscordCommand => return try DiscordCommand.exec(allocator), .HelpCommand => return try HelpCommand.exec(allocator), - .InitCommand => return try InitCommand.exec(allocator), + .InitCommand => return try InitCommand.exec(allocator, std.os.argv), else => {}, } |
