feat: Add an example confutils setup

This commit is contained in:
Zahary Karadjov 2024-01-13 15:59:27 +02:00 committed by zah
parent 734ffbef72
commit d1ef092006
6 changed files with 25 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Project
status_node_manager
status_node_manager.exe
status_node_manager.out
# Nim cache
nimcache

View File

@ -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())

View 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

View 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]

View File

@ -7,6 +7,7 @@
import unittest
import status_node_manager/submodule
import status_node_manager/helpers/submodule
test "correct welcome":
check getWelcomeMessage() == "Hello, World!"