From c7afd6c1b90a82689cc22256c521db14e4393b5b Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Wed, 15 Mar 2023 14:58:09 +0100 Subject: [PATCH] generator fixes - name is required --- Project.toml | 2 +- src/Generator.jl | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Project.toml b/Project.toml index 82a3596c4..cab05f004 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Genie" uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" authors = ["Adrian Salceanu "] -version = "5.15.1" +version = "5.15.2" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" diff --git a/src/Generator.jl b/src/Generator.jl index 0287a0d02..34cd739da 100755 --- a/src/Generator.jl +++ b/src/Generator.jl @@ -267,11 +267,11 @@ end """ - fullstack_app(app_path::String = ".") :: Nothing + fullstack_app(app_name::String) :: Nothing Writes the files necessary to create a full stack Genie app. """ -function fullstack_app(app_name::String = ".", app_path::String = ".") :: Nothing +function fullstack_app(app_name::String, app_path::String = ".") :: Nothing cp(joinpath(@__DIR__, "..", NEW_APP_PATH), app_path) scaffold(app_name, app_path) @@ -298,7 +298,7 @@ end """ - scaffold(app_path::String = ".") :: Nothing + scaffold(app_name::String, app_path::String = "") :: Nothing Writes the file necessary to scaffold a minimal Genie app. """ @@ -325,11 +325,11 @@ end """ - microstack_app(app_path::String = ".") :: Nothing + microstack_app(app_name::String, app_path::String = ".") :: Nothing Writes the file necessary to create a microstack app. """ -function microstack_app(app_name::String = ".", app_path::String = ".") :: Nothing +function microstack_app(app_name::String, app_path::String = ".") :: Nothing isdir(app_path) || mkpath(app_path) for f in [Genie.config.path_bin, Genie.config.path_config, Genie.config.server_document_root] @@ -844,7 +844,7 @@ Template for scaffolding a new Genie app suitable for full stack web application (one of :MySQL, :SQLite, or :PostgreSQL). If `dbadapter` is `nothing`, an adapter will have to be selected interactivel at the REPL, during the app creation process. """ -function newapp_fullstack(name::String = "."; autostart::Bool = true, dbadapter::Union{String,Symbol,Nothing} = nothing, +function newapp_fullstack(name::String; autostart::Bool = true, dbadapter::Union{String,Symbol,Nothing} = nothing, testmode::Bool = false, interactive::Bool = true) :: Nothing newapp(name, autostart = autostart, fullstack = true, dbsupport = true, mvcsupport = true, dbadapter = dbadapter, testmode = testmode, interactive = interactive)