commit 098f8787c775a6e1e94d08a65da8e3b16bdcb97d
parent 435cda0f96bce1285684cc783daf2902b9f32616
Author: Hugo Soucy <hugo@soucy.cc>
Date: Mon, 3 Apr 2023 07:57:51 -0400
Remove unused variables
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/satelito/init.lua b/satelito/init.lua
@@ -23,12 +23,15 @@ local args
-- Set 'init' command
init = parser:command('init', 'Init the sample website in your $HOME folder.')
+
-- Set 'pipe' command
pipe = parser:command('pipe', 'Build the site by inputing one or more markdown files through the pipeline.')
pipe:flag('-e --export', 'Export the outputed HTML in the *config.paths.public_html* folder.')
+
-- Set 'make' command
make = parser:command('make', 'Build the site from his directory.')
make:flag('-e --export', 'Export the outputed HTML in the *config.paths.public_html* folder.')
+
-- Set the exec command
exec = parser:command('exec', 'Execute a script frome the bin directory')
exec:argument 'bin name'
@@ -145,9 +148,7 @@ end
-- Make command
-- Example: '$ satelito make --export'
if args['make'] then
- local config = _G.Satelito.config;
local contentdir = _G.Satelito.contentdir
- local templates = _G.Satelito.templates
local sitedata = {}
print('=> Fetching the markdown and HTML content ...')