Rework build configuration to take advantage of new built-in docker build capabilities.
This commit is contained in:
@ -3,8 +3,7 @@ import cliutils, docopt, os, sequtils, strutils, tempfile, uuids
|
||||
import strawbosspkg/configuration
|
||||
import strawbosspkg/core
|
||||
import strawbosspkg/server
|
||||
|
||||
let SB_VER = "0.5.0"
|
||||
import strawbosspkg/version
|
||||
|
||||
proc logProcOutput*(outMsg, errMsg: TaintedString, cmd: string) =
|
||||
let prefix = if cmd.len > 0: cmd & ": " else: ""
|
||||
@ -26,7 +25,7 @@ Options
|
||||
(strawboss.config.json).
|
||||
"""
|
||||
|
||||
let args = docopt(doc, version = "strawboss v" & SB_VER)
|
||||
let args = docopt(doc, version = "strawboss v" & SB_VERSION)
|
||||
|
||||
let cfgFile = if args["--config-file"]: $args["--config-file"]
|
||||
else: "strawboss.config.json"
|
||||
|
@ -7,7 +7,7 @@ from asyncnet import send
|
||||
from re import re, find
|
||||
from timeutils import trimNanoSec
|
||||
|
||||
import ./configuration, ./core
|
||||
import ./configuration, ./core, ./version
|
||||
|
||||
type
|
||||
Session = object
|
||||
@ -166,8 +166,8 @@ proc start*(cfg: StrawBossConfig): void =
|
||||
|
||||
routes:
|
||||
|
||||
get "/ping":
|
||||
resp($(%"pong"), JSON)
|
||||
get "/version":
|
||||
resp($(%("strawboss v" & SB_VERSION)), JSON)
|
||||
|
||||
post "/auth-token":
|
||||
var uname, pwd: string
|
||||
|
2
src/main/nim/strawbosspkg/version.nim
Normal file
2
src/main/nim/strawbosspkg/version.nim
Normal file
@ -0,0 +1,2 @@
|
||||
const SB_VERSION* = "0.5.0"
|
||||
|
Reference in New Issue
Block a user