Skip to content

Commit

Permalink
generator fixes - name is required
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Mar 15, 2023
1 parent 0ffe0e0 commit c7afd6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Genie"
uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e"
authors = ["Adrian Salceanu <[email protected]>"]
version = "5.15.1"
version = "5.15.2"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
12 changes: 6 additions & 6 deletions src/Generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
"""
Expand All @@ -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]
Expand Down Expand Up @@ -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)
Expand Down

2 comments on commit c7afd6c

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/79636

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.15.2 -m "<description of version>" c7afd6c1b90a82689cc22256c521db14e4393b5b
git push origin v5.15.2

Please sign in to comment.