mirror of
https://github.com/status-im/status-node-manager.git
synced 2025-02-19 16:04:20 +00:00
feat: Add an example confutils setup
This commit is contained in:
parent
734ffbef72
commit
d1ef092006
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
# Project
|
||||
status_node_manager
|
||||
status_node_manager.exe
|
||||
status_node_manager.out
|
||||
|
||||
# Nim cache
|
||||
nimcache
|
||||
|
@ -1,7 +0,0 @@
|
||||
# This is just an example to get you started. A typical hybrid package
|
||||
# uses this file as the main entry point of the application.
|
||||
|
||||
import status_node_manager/submodule
|
||||
|
||||
when isMainModule:
|
||||
echo(getWelcomeMessage())
|
13
src/status_node_manager.nim
Normal file
13
src/status_node_manager.nim
Normal file
@ -0,0 +1,13 @@
|
||||
# This is just an example to get you started. A typical hybrid package
|
||||
# uses this file as the main entry point of the application.
|
||||
|
||||
import
|
||||
confutils,
|
||||
status_node_manager/[
|
||||
config,
|
||||
helpers/submodule # TODO: remove me
|
||||
]
|
||||
|
||||
when isMainModule:
|
||||
let conf = load Config
|
||||
echo(getWelcomeMessage()) # TODO: remove me
|
9
src/status_node_manager/config.nim
Normal file
9
src/status_node_manager/config.nim
Normal file
@ -0,0 +1,9 @@
|
||||
import
|
||||
options,
|
||||
confutils/defs
|
||||
|
||||
type
|
||||
Config* = object
|
||||
wakuKeyPath* {.
|
||||
name: "waku-key"
|
||||
desc: "A path to Waku identity key" .}: Option[InputFile]
|
@ -7,6 +7,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
import status_node_manager/submodule
|
||||
import status_node_manager/helpers/submodule
|
||||
|
||||
test "correct welcome":
|
||||
check getWelcomeMessage() == "Hello, World!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user