indent to line with module block

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