indent to line with module block

This commit is contained in:
mollusk 2018-12-04 02:48:54 -07:00
parent 8ea5db169a
commit 4189916925

View File

@ -11,10 +11,10 @@ module LibJprog
DEBUG = false # enable for verbose messages
DEBUG = false # enable for verbose messages
# Generic directory checking with boolean returns
function check_dir(directory)
# Generic directory checking with boolean returns
function check_dir(directory)
if ispath(directory)
if DEBUG == true print("The directory: ", directory, " already exists\n") end
@ -26,10 +26,10 @@ function check_dir(directory)
end
end
end
# Generic file checking with boolean returns
function check_file(filePath)
# Generic file checking with boolean returns
function check_file(filePath)
if isfile(filePath)
@ -40,10 +40,10 @@ function check_file(filePath)
if DEBUG == false print("File: ", filePath, " does not exist\n") end
return false
end
end
end
# Somewhat automate creating directories
function create_default_structure(projectDir)
# Somewhat automate creating directories
function create_default_structure(projectDir)
local subDirs = ["src", "lib"]
for dirs in subDirs
@ -64,10 +64,10 @@ function create_default_structure(projectDir)
touch("$projectDir/src/$projectName.jl")
touch("$projectDir/README.md")
touch("$projectDir/LICENSE")
end
end
# Establish a Git repository in project root
function git_init(projectPath)
# Establish a Git repository in project root
function git_init(projectPath)
init("$projectPath", false)
@ -78,18 +78,18 @@ function git_init(projectPath)
else
print("Git repository initialized\n")
end
end
end
# Print a list of supported commands
function help()
# Print a list of supported commands
function help()
print("\n", "useage: jprog init <project name>", "\n", "\n")
print("init Create a new project\n")
end
end
# Get version information for this program
function version()
# Get version information for this program
function version()
print("\n", "Version 1\n\n")
end
end
end
end