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")
|
mkpath("$projectDir/$dirs")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
projectName = rsearchindex(projectDir, "/" )
|
||||||
|
|
||||||
|
print(projectName, "\n")
|
||||||
|
projectName = projectDir[projectName+1:length(projectDir)]
|
||||||
|
|
||||||
|
|
||||||
|
touch("$projectDir/src/$projectName.jl")
|
||||||
touch("$projectDir/README.md")
|
touch("$projectDir/README.md")
|
||||||
touch("$projectDir/LICENSE")
|
touch("$projectDir/LICENSE")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function help()
|
function help()
|
||||||
print("This will be help\n")
|
print("This will be help\n")
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user