diff --git a/nimbusLaunch.nimble b/nimbus_launch.nimble similarity index 90% rename from nimbusLaunch.nimble rename to nimbus_launch.nimble index 25f2cbc..e7906ae 100644 --- a/nimbusLaunch.nimble +++ b/nimbus_launch.nimble @@ -1,11 +1,11 @@ -packageName = "nimbusLaunch" +packageName = "nimbus_launch" version = "0.0.1" author = "Status Research & Development GmbH" description = "Create a Status Nim project skeleton" license = "Apache License 2.0 or MIT" # This is a pure binary package, only install the binary -bin = @["src/nimbusLaunch"] +bin = @["src/nimbus_launch"] installDirs = @[""] ### Dependencies diff --git a/src/licensing/license.nim b/src/licensing/license.nim index d366008..848a70f 100644 --- a/src/licensing/license.nim +++ b/src/licensing/license.nim @@ -12,7 +12,7 @@ import times, strformat, tables, sequtils, ../private/[datatypes, format] const - # Embed the license at compile-time so that nimbusLaunch can be used standalone + # Embed the license at compile-time so that nimbus_launch can be used standalone # Unfortunately we can't use a table {"MIT": slurp"./license_MIT.txt", ...}.toTable as the procs don't work at compile-time license_MIT = slurp"./license_MIT.txt" license_APACHEv2 = slurp"./license_APACHEv2.txt" diff --git a/src/nimbusLaunch.nim b/src/nimbus_launch.nim similarity index 92% rename from src/nimbusLaunch.nim rename to src/nimbus_launch.nim index 5da3d89..8739067 100644 --- a/src/nimbusLaunch.nim +++ b/src/nimbus_launch.nim @@ -14,7 +14,7 @@ import cligen, # ############################## # Logic -proc nimbusLaunch(projectName: string, +proc nimbus_launch(projectName: string, githubName: string, nimbleName: string, licenses: Licenses = {MIT, Apachev2}): int = @@ -24,7 +24,7 @@ proc nimbusLaunch(projectName: string, # 1. Validity checks if projectName.isNil or githubName.isNil or nimbleName.isNil: - error "nimbusLaunch requires 3 arguments at minimum: projectName, githubName, nimbleName.\n Run nimbleLaunch --help for more information." + error "nimbus_launch requires 3 arguments at minimum: projectName, githubName, nimbleName.\n Run nimbleLaunch --help for more information." if not githubName.validGithub: error "The package name on Github (" & githubName & ") must consist of lowercase ASCII, numbers and hyphens (uppercase and underscores are not allowed)." if not nimbleName.validIdentifier: @@ -84,5 +84,5 @@ proc nimbusLaunch(projectName: string, ) when isMainModule: - dispatch nimbusLaunch + dispatch nimbus_launch