Skip to content

Conversation

@daanbreur
Copy link
Collaborator

This PR contains commits that make functions

  • importVafConfig public:
    • return type VafConfigStructure
  • parseWordlist private:
    • parameter type JsonNode
    • returns type VafWordlist
  • parseVafConfig public:
    • parameter type JsonNode
    • returns type VafConfigStructure

daanbreur added 2 commits May 14, 2021 15:29
Return Type *VafConfigStructure*
Contains *parseWordlist* and *parseVafConfig* function

parseWordlist <private>:
 - parameter type *JsonNode*
 - returns type *VafWordlist*

 parseVafConfig <public>:
 - parameter type *JsonNode*
 - returns type *VafConfigStructure*
@daanbreur
Copy link
Collaborator Author

This pr is in relation with #7 and #8


import VafConfigStructure

var homeDir: string = os.getHomeDir()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe put this in a separate file? it gets quite repetitive

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should we put in a seperate file?

Copy link
Owner

@andreiverse andreiverse May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should we put in a seperate file?

not sure, maybe a constants.nim in src/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Idea! 👍 Lets refactor later tho

@daanbreur daanbreur marked this pull request as ready for review May 14, 2021 14:07
@andreiverse andreiverse merged commit 28c7504 into andreiverse:vaf-configfile May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants