Feature: Source file matches project name
This commit is contained in:
10
src/jprog.jl
Normal file → Executable file
10
src/jprog.jl
Normal file → Executable file
@@ -23,10 +23,20 @@ function create_default_structure(projectDir)
|
||||
mkpath("$projectDir/$dirs")
|
||||
end
|
||||
|
||||
|
||||
projectName = rsearchindex(projectDir, "/" )
|
||||
|
||||
print(projectName, "\n")
|
||||
projectName = projectDir[projectName+1:length(projectDir)]
|
||||
|
||||
|
||||
touch("$projectDir/src/$projectName.jl")
|
||||
touch("$projectDir/README.md")
|
||||
touch("$projectDir/LICENSE")
|
||||
end
|
||||
|
||||
|
||||
|
||||
function help()
|
||||
print("This will be help\n")
|
||||
end
|
||||
|
Reference in New Issue
Block a user