Feature: Source file matches project name

This commit is contained in:
2017-06-19 04:42:21 -07:00
parent 5abfc9fa1b
commit cda17bd6ef

10
src/jprog.jl Normal file → Executable file
View 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