Usually binaries are all lowercase. Oh well ...
This commit is contained in:
parent
3338fca044
commit
4647089494
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue