Skip to content

Commit

Permalink
refactor: integrate init.lua in cli.lua streamlining the project init…
Browse files Browse the repository at this point in the history
… command
  • Loading branch information
lnpotter committed Oct 9, 2024
1 parent bafc1e7 commit 20deb1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cli/commands/cli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ local function cli_dump(args)
return zeebo_bootstrap.dump(dist)
end

local function cli_init(args)
local project_name = args[1] or 'my_project'
init.init_project(project_name)
end

local P = {
['cli-build'] = cli_build,
['cli-test'] = cli_test,
['cli-dump'] = cli_dump
['cli-dump'] = cli_dump,
['cli-init'] = cli_init
}

return P

0 comments on commit 20deb1c

Please sign in to comment.