src/happyx_native/cli/utils

Types

NativeConfig = object
  exists*: bool
  port*: int
  name*: string
  kind*: string
  androidSdk*: string
  androidPackage*: string
  appDirectory*: string
  version*: string

Consts

CONFIG_FILE = "happyx.native.cfg"

Procs

proc compileHpx(appDirectory: string) {....raises: [OSError, IOError, RegexError,
    JsonParsingError, ValueError, KeyError], tags: [ReadDirEffect, ReadIOEffect,
    RootEffect, WriteIOEffect, ExecIOEffect, WriteDirEffect], forbids: [].}
proc findClangBin(androidSdk: string): string {....raises: [OSError],
    tags: [ReadDirEffect], forbids: [].}
proc getAndroidFolder(): string {....raises: [OSError, IOError], tags: [
    ReadEnvEffect, ReadIOEffect, ReadDirEffect, RootEffect, WriteIOEffect],
                                  forbids: [].}
proc getFavicon(ext: string = ".ico"): string {.
    ...raises: [OSError, IOError, Exception, ValueError, KeyError], tags: [
    ReadDirEffect, WriteIOEffect, ReadIOEffect, RootEffect, ReadEnvEffect],
    forbids: [].}
proc readNativeConfig(): NativeConfig {....raises: [OSError, IOError, Exception,
    ValueError, KeyError], tags: [ReadDirEffect, WriteIOEffect, ReadIOEffect,
                                  RootEffect], forbids: [].}
proc readNativeConfigCompileTime(): NativeConfig {.compileTime,
    ...raises: [IOError, OSError, Exception, ValueError, KeyError],
    tags: [ReadDirEffect, ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}

Templates

template withOpen(filename: string; mode: FileMode; body: untyped)