-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More stuff removed for repo separation.
- Loading branch information
Showing
21 changed files
with
17 additions
and
690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
module Main where | ||
|
||
import App.GenConfigs (genConfigs) | ||
import App.Initialize (initialize) | ||
import Enecuum.Config (withConfig) | ||
import Enecuum.Assets.GenConfigs (genConfigs) | ||
import Enecuum.Assets.Initialization (initialize) | ||
import Enecuum.Config (withConfig) | ||
import Enecuum.Prelude | ||
|
||
defaultConfig :: IsString a => a | ||
defaultConfig = "configs/config.json" | ||
help :: IO () | ||
help = putStrLn @Text $ "Please, specify node config:" | ||
<> "\n\n$ enq-node-haskell singlenode configs/tst_graph_node_transmitter.json" | ||
<> "\n\nOr generate default configs (they will be placed to ./configs/default):" | ||
<> "\n\n$ enq-node-haskell generate-configs" | ||
|
||
main :: IO () | ||
main = do | ||
args <- getArgs | ||
case args of | ||
["singlenode", configFile] -> withConfig configFile initialize | ||
["generate-configs"] -> genConfigs | ||
_ -> withConfig defaultConfig initialize | ||
_ -> help |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,6 @@ dependencies: | |
- validation | ||
- silently | ||
- uuid | ||
- gd | ||
- resourcet | ||
- triplesec | ||
- yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/Enecuum/App/GenConfigs.hs → src/Enecuum/Assets/GenConfigs.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.