mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Remove comand, not needed
This commit is contained in:
parent
eed0169437
commit
de48478c6d
@ -22,10 +22,6 @@ pub fn run(allocator: std.mem.Allocator, cwd: std.fs.Dir, args: [][]const u8, he
|
|||||||
}
|
}
|
||||||
|
|
||||||
const name = args[0];
|
const name = args[0];
|
||||||
const command = if (args.len > 1)
|
|
||||||
try std.mem.join(allocator, " ", args[1..])
|
|
||||||
else
|
|
||||||
null;
|
|
||||||
|
|
||||||
const seeders_dir = try cwd.makeOpenPath(
|
const seeders_dir = try cwd.makeOpenPath(
|
||||||
try std.fs.path.join(allocator, &.{ "src", "app", "database", "seeders" }),
|
try std.fs.path.join(allocator, &.{ "src", "app", "database", "seeders" }),
|
||||||
@ -36,7 +32,6 @@ pub fn run(allocator: std.mem.Allocator, cwd: std.fs.Dir, args: [][]const u8, he
|
|||||||
name,
|
name,
|
||||||
.{
|
.{
|
||||||
.seeders_path = try seeders_dir.realpathAlloc(allocator, "."),
|
.seeders_path = try seeders_dir.realpathAlloc(allocator, "."),
|
||||||
.command = command,
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const path = try seed.save();
|
const path = try seed.save();
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const jetquery = @import("jetquery");
|
|
||||||
|
|
||||||
pub fn run(repo: anytype) !void {
|
pub fn run(repo: anytype) !void {
|
||||||
try repo.insert(
|
try repo.insert(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user