~mika/www.m1kadev.nl

ref: 1c5e50a88b88ab1d2e500cdec0ab3257da2dce11 www.m1kadev.nl/kethel/main.exs -rw-r--r-- 324 bytes
1c5e50a8 — m1kadev kethel: start stage 1 of build api: collect 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
args = System.argv()

folder = Enum.at(args, 1)

if folder != nil do
  project_root = Path.expand(folder) 
  context = %{
   project_root: project_root,
   bricks: Bricks.collect(project_root)
  }
  pages = Pages.collect(context)
else
  IO.puts(:stderr, "The root project folder should be provided on the command line")
end